Author |
Message |
ka2qhg Brekeke Addict
Joined: 21 Nov 2006 Posts: 34
|
Posted: Wed Oct 29, 2008 10:41 am Post subject: Callers Name in outgoing Caller ID |
|
|
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 |
|
janP Brekeke Master Guru
Joined: 25 Nov 2007 Posts: 336
|
Posted: Wed Oct 29, 2008 12:29 pm Post subject: |
|
|
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 |
|
ka2qhg Brekeke Addict
Joined: 21 Nov 2006 Posts: 34
|
Posted: Wed Oct 29, 2008 5:13 pm Post subject: |
|
|
I tried it again and still can't get it to work _________________ Larry |
|
Back to top |
|
lakeview Brekeke Master Guru
Joined: 15 Nov 2007 Posts: 319
Location: Florida
|
Posted: Wed Oct 29, 2008 6:40 pm Post subject: |
|
|
Add "$replaceuri = true" in the Deploy Pattern. |
|
Back to top |
|
lakeview Brekeke Master Guru
Joined: 15 Nov 2007 Posts: 319
Location: Florida
|
Posted: Wed Oct 29, 2008 6:42 pm Post subject: |
|
|
And you need to push [Applu Rules] button after you edit the DialPlan. |
|
Back to top |
|
ka2qhg Brekeke Addict
Joined: 21 Nov 2006 Posts: 34
|
Posted: Wed Oct 29, 2008 7:59 pm Post subject: |
|
|
Thanks for your help.
But it still doesn't work. _________________ Larry |
|
Back to top |
|
lakeview Brekeke Master Guru
Joined: 15 Nov 2007 Posts: 319
Location: Florida
|
|
Back to top |
|
ka2qhg Brekeke Addict
Joined: 21 Nov 2006 Posts: 34
|
Posted: Thu Oct 30, 2008 8:09 am Post subject: |
|
|
I tried version 2.2.5.0
I still can't get it to work. _________________ Larry |
|
Back to top |
|
lakeview Brekeke Master Guru
Joined: 15 Nov 2007 Posts: 319
Location: Florida
|
Posted: Thu Oct 30, 2008 10:38 am Post subject: |
|
|
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 |
|
ka2qhg Brekeke Addict
Joined: 21 Nov 2006 Posts: 34
|
Posted: Thu Oct 30, 2008 4:47 pm Post subject: |
|
|
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 |
|
lakeview Brekeke Master Guru
Joined: 15 Nov 2007 Posts: 319
Location: Florida
|
Posted: Mon Nov 03, 2008 5:53 pm Post subject: |
|
|
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 |
|
ka2qhg Brekeke Addict
Joined: 21 Nov 2006 Posts: 34
|
Posted: Mon Nov 03, 2008 7:43 pm Post subject: |
|
|
It still isn't working. I have even set it as the only dial plan. _________________ Larry |
|
Back to top |
|
lakeview Brekeke Master Guru
Joined: 15 Nov 2007 Posts: 319
Location: Florida
|
Posted: Tue Nov 04, 2008 11:29 am Post subject: |
|
|
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 |
|
ka2qhg Brekeke Addict
Joined: 21 Nov 2006 Posts: 34
|
Posted: Tue Nov 04, 2008 5:30 pm Post subject: |
|
|
The rule is displayed as registered=sip:1234(sip:1234@127.0.0.1)
I disabled all the other rules. _________________ Larry |
|
Back to top |
|
ka2qhg Brekeke Addict
Joined: 21 Nov 2006 Posts: 34
|
Posted: Wed Nov 05, 2008 5:36 am Post subject: |
|
|
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 |
|
lakeview Brekeke Master Guru
Joined: 15 Nov 2007 Posts: 319
Location: Florida
|
Posted: Thu Nov 06, 2008 11:56 am Post subject: |
|
|
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 |
|
ka2qhg Brekeke Addict
Joined: 21 Nov 2006 Posts: 34
|
Posted: Thu Nov 06, 2008 3:39 pm Post subject: |
|
|
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 |
|
lakeview Brekeke Master Guru
Joined: 15 Nov 2007 Posts: 319
Location: Florida
|
Posted: Mon Nov 10, 2008 11:22 am Post subject: |
|
|
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 |
|
|