Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Callers Name in outgoing Caller ID
Author Message
ka2qhg
Brekeke Addict


Joined: 21 Nov 2006
Posts: 34

PostPosted: Wed Oct 29, 2008 10:41 am    Post subject: Callers Name in outgoing Caller ID Reply with quote

1. Brekeke Product Name and version:SIP Server 2.2.1.6/255

2. Java version:1.6.0_01

3. OS type and the version:Windows Vista 6.0
4. UA (phone), gateway or other hardware/software involved:
pap2 ect.
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html :4

6. Your problem:I am using Standard version of the Sip Server.
I want to be able to append the the user name from the User Authentication Database to the our going caller ID.
I have tried the following

Matching Patterns
$request = ^INVITE
From = sip:(.+)@
Deploy Patterns
From = "Name"<sip:%1@OSS_IP>

Matching Patterns
$request = ^INVITE
$geturi( From ) = @(.+)

Matching Patterns
$request = ^INVITE
Proxy-Authorization = username="(\\w+)"
Deploy Patterns
From = sip:%1@domain


Matching Patterns
$request = ^INVITE
$geturi( From ) = @(.+)
Deploy Patterns
From = "new_display_name" sip:15551212@%1
$replaceuri = true
$continue = true


The last one works, but I have to write a dial plan for each user.

_________________
Larry
Back to top
View user's profile
janP
Brekeke Master Guru


Joined: 25 Nov 2007
Posts: 336

PostPosted: Wed Oct 29, 2008 12:29 pm    Post subject: Reply with quote

I tested it with version 2.2.5.0.

Matching Patterns
$request = ^INVITE
Proxy-Authorization = username="(\\w+)"
$getUri(From) = (.+)
Deploy Patterns
From = "%1" %2
$continue = true
Back to top
View user's profile
ka2qhg
Brekeke Addict


Joined: 21 Nov 2006
Posts: 34

PostPosted: Wed Oct 29, 2008 5:13 pm    Post subject: Reply with quote

I tried it again and still can't get it to work
_________________
Larry
Back to top
View user's profile
lakeview
Brekeke Master Guru


Joined: 15 Nov 2007
Posts: 319
Location: Florida

PostPosted: Wed Oct 29, 2008 6:40 pm    Post subject: Reply with quote

Add "$replaceuri = true" in the Deploy Pattern.
Back to top
View user's profile
lakeview
Brekeke Master Guru


Joined: 15 Nov 2007
Posts: 319
Location: Florida

PostPosted: Wed Oct 29, 2008 6:42 pm    Post subject: Reply with quote

And you need to push [Applu Rules] button after you edit the DialPlan.
Back to top
View user's profile
ka2qhg
Brekeke Addict


Joined: 21 Nov 2006
Posts: 34

PostPosted: Wed Oct 29, 2008 7:59 pm    Post subject: Reply with quote

Thanks for your help.
But it still doesn't work.

_________________
Larry
Back to top
View user's profile
lakeview
Brekeke Master Guru


Joined: 15 Nov 2007
Posts: 319
Location: Florida

PostPosted: Wed Oct 29, 2008 8:57 pm    Post subject: Reply with quote

Do you have any other rule which may be matched instead of the above rule ?
If so, disable other rules.

Also..try the latest version 2.2.5.0
http://www.brekeke.com/download/download_sip_beta.php
Back to top
View user's profile
ka2qhg
Brekeke Addict


Joined: 21 Nov 2006
Posts: 34

PostPosted: Thu Oct 30, 2008 8:09 am    Post subject: Reply with quote

I tried version 2.2.5.0
I still can't get it to work.

_________________
Larry
Back to top
View user's profile
lakeview
Brekeke Master Guru


Joined: 15 Nov 2007
Posts: 319
Location: Florida

PostPosted: Thu Oct 30, 2008 10:38 am    Post subject: Reply with quote

For replacing Caller ID, try this.
Matching Patterns
$request = ^INVITE
Proxy-Authorization = username="(\\w+)"
$getUri(From) = @(.+)
Deploy Patterns
From = "%1" sip:%1@%2
Back to top
View user's profile
ka2qhg
Brekeke Addict


Joined: 21 Nov 2006
Posts: 34

PostPosted: Thu Oct 30, 2008 4:47 pm    Post subject: Reply with quote

when I save the dial plan this is how it displays
{Matching Pattern:]
$request=^INVITE
Proxy-Authorization=username="(\w+)"
$getUri(From)=@(.+)

Deploy Patterns
From = "%1" sip:%1@%2

when I check the dialplan.tbl file it shows (\\w+)
is the missing black slash causing a problem?

_________________
Larry
Back to top
View user's profile
lakeview
Brekeke Master Guru


Joined: 15 Nov 2007
Posts: 319
Location: Florida

PostPosted: Mon Nov 03, 2008 5:53 pm    Post subject: Reply with quote

Does the above DialPlan rule work as you want?

> when I check the dialplan.tbl file it shows (\\w+)
> is the missing black slash causing a problem?

One backslash will be encoded to two backslashes in the dialplan.tbl file.
Back to top
View user's profile
ka2qhg
Brekeke Addict


Joined: 21 Nov 2006
Posts: 34

PostPosted: Mon Nov 03, 2008 7:43 pm    Post subject: Reply with quote

It still isn't working. I have even set it as the only dial plan.
_________________
Larry
Back to top
View user's profile
lakeview
Brekeke Master Guru


Joined: 15 Nov 2007
Posts: 319
Location: Florida

PostPosted: Tue Nov 04, 2008 11:29 am    Post subject: Reply with quote

Which DialPlan rue is used when you make a call?

Check [rule] field at the [Session Details] page after you make a call.
(Goto [Active Sessions] and click the magnify icon. Then [Session Details] page will be shown.)
Back to top
View user's profile
ka2qhg
Brekeke Addict


Joined: 21 Nov 2006
Posts: 34

PostPosted: Tue Nov 04, 2008 5:30 pm    Post subject: Reply with quote

The rule is displayed as registered=sip:1234(sip:1234@127.0.0.1)
I disabled all the other rules.

_________________
Larry
Back to top
View user's profile
ka2qhg
Brekeke Addict


Joined: 21 Nov 2006
Posts: 34

PostPosted: Wed Nov 05, 2008 5:36 am    Post subject: Reply with quote

when I try my other dial plans it displays registered=sip:1234(sip:1234@127.0.0.1) ,rule name
Should my rule show up in the dialplan.patten_variables file?

_________________
Larry
Back to top
View user's profile
lakeview
Brekeke Master Guru


Joined: 15 Nov 2007
Posts: 319
Location: Florida

PostPosted: Thu Nov 06, 2008 11:56 am    Post subject: Reply with quote

I tested the following DialPlan without any problem..
Matching Patterns
$request = ^INVITE
Proxy-Authorization = username = "(\w+)"
$getUri(From) = @(.+)
Deploy Patterns
From = "%1" sip:%1@%2

This rule should be placed in the top of the DialPlan list.


Are you using the INVITE authentication?
If not, enable it.
([Configuration] -> [SIP] -> [Authentication] -> [INVITE] = "on")
Back to top
View user's profile
ka2qhg
Brekeke Addict


Joined: 21 Nov 2006
Posts: 34

PostPosted: Thu Nov 06, 2008 3:39 pm    Post subject: Reply with quote

I installed the server on a different computer and it seems to be working now.

I have the User Authentication user set as 1234 ( I assign the phone number as user) and Sales as name.

The PAP2 has
Subscriber Information
Display Name: Fred
User ID:1234
Auth ID:1234

The caller id on the target phone shows the the phone number as 1234 and the name as 1234.

Is this correct?

_________________
Larry
Back to top
View user's profile
lakeview
Brekeke Master Guru


Joined: 15 Nov 2007
Posts: 319
Location: Florida

PostPosted: Mon Nov 10, 2008 11:22 am    Post subject: Reply with quote

With the above DialPlan, the Display Name will be changed to the "1234".

Use "From = sip:%1@%2 " instead.
If so, the Display Name will not be changed.

I think you need to read the document...
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1