Forums Read-only archive

Callers Name in outgoing Caller ID

18 posts · Brekeke SIP Server Forum

ka2qhg Original post
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/ ... terns.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 Pattern:
$request=^INVITE
From=sip:(.+)@

Deploy Pattern:
From="Name"<sip:%1@OSS_IP>

[Matching Pattern:]
$request = ^INVITE
$geturi( From ) = @(.+)

--------------------------------
[Matching Pattern:]
$request = ^INVITE
Proxy-Authorization = username="(\\w+)"

[Deploy Pattern:]
From = sip:%1@domain
--------------------------------

[Matching Pattern:]
$request = ^INVITE
$geturi( From ) = @(.+)

[Deploy Pattern:]
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.
janP
I tested it with version 2.2.5.0.

[Matching Pattern:]
$request = ^INVITE
Proxy-Authorization = username="(\\w+)"
$getUri(From) = (.+)

[Deploy Pattern:]
From = "%1" %2
$continue = true
ka2qhg
I tried it again and still can't get it to work
lakeview
Add "$replaceuri = true" in the Deploy Pattern.
lakeview
And you need to push [Applu Rules] button after you edit the DialPlan.
ka2qhg
Thanks for your help.
But it still doesn't work.
lakeview
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
ka2qhg
I tried version 2.2.5.0
I still can't get it to work.
lakeview
For replacing Caller ID, try this.
-------------------------------------------
[Matching Pattern:]
$request = ^INVITE
Proxy-Authorization = username="(\\w+)"
$getUri(From) = @(.+)

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

[Deploy Pattern:]
From="%1" sip:%1@%2

when I check the dialplan.tbl file it shows (\\w+)
is the missing black slash causing a problem?
lakeview
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.
ka2qhg
It still isn't working. I have even set it as the only dial plan.
lakeview
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.)
ka2qhg
The rule is displayed as registered=sip:1234(sip:1234@127.0.0.1)
I disabled all the other rules.
ka2qhg
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?
lakeview
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")
ka2qhg
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?
lakeview
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...