Forums Read-only archive

DialPlan Name Replacement

15 posts · Brekeke SIP Server Forum

seetarc Original post
1. Brekeke Product Name and version: 2.1.6.6

2. Java version: 1.6.0.100

3. OS type and the version: Win2003 Server Standard

4. UA (phone), gateway or other hardware/software involved: RadiusCat and IVRCat

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html :

6. Your problem: I do Calling card call Thru and Call back. My call thru extension number on BSS 1111 and Call Back 2222

When userphone xxx want to call phone number yyy this is what happens;
xxx ==> 1111, then
1111 ==> yyy
then yyy see CallerID 1111 calling. How can i change the url to show xxx calling rather than 1111 ?


For CallBack, Same Senerio

xxx Calls 2222, then get busy tone

2222 calls xxx then
2222 calls yyy then yyy see CallerID 1111 calling. How can i change the url to show xxx calling rather than 2222 ?
james
Do you want to replace the From header (as caller-ID) to "xxx "?
seetarc
Yes i want to replace the From header "1111" or "2222" to show "xxx" when "yyy" recieved the call.
hope
matching patterns
$request=^INVITE
$geturi(From)=(sip:1111@.+)

deploy patterns
From="xxx" <%1>
$replaceuri=true
seetarc
I will have to test it tonight. However xxx and yyy always change and could be anything numbers. It is only 1111 and 2222 that always remains the same.
james
Did you try the DialPlan above which 'hope' suggested?


>> However xxx and yyy always change and could be anything numbers.

For this, Alias feature may meet your requirement..
http://www.brekeke-sip.com/wiki/index.p ... i=df05855a
seetarc
I tested now and it did not work.

I tried to used the url you sent me. But i could not see any [New Alias} page under [Dial Plan]


Please go to the [Dial Plan] -> [New Alias} page.
james
Try the latest version.. it is the version 2.2.
seetarc
I will upgrade at night and test tomorrow
seetarc
I upgraded overnight and unfortunatly i could not see any [New Alias} page under [Dial Plan] I am using Standard commercial, i guess its only the Pro version that have that feature.

Back to Square one.
Let me re-define my issue again;

Caller = xxx
Callee = yyy
IVR = IVRCAT

LEG1 of the Call, xxx ==> 1111 (IVRCAT),

LEG2 of the Call, 1111 (IVRCAT) ==> yyy


Callee(yyy) sees Caller as "1111" (IVRCAT)

How can i change the caller-ID so that the Callee will see xxx as the caller ?
james
Try this.

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

Deploy patterns
From = sip:xxx@%1
$replaceuri = true
--------------------
seetarc
Thanks James,

xxx always change. It could be any phone number

If i use "From = sip:xxx@%1 " it will only show what i define as "xxx" (Am i wrong ?)
james
I think you need to read the DialPlan tutorial guide.
You may find many sample DialPlan rules there.
seetarc
I have read the DialPlan tutorial guide over and over again and i dont know how to create the replacement dial plan for two different call legs "url-replacement". That is why i came to the forum for help.
james
>> Yes i want to replace the From header "1111" or "2222" to show "xxx" when "yyy" recieved the call.


Try this.
--------------------
[Matching Patterns]
$request = ^INVITE
From = sip:1111@|sip:2222@
To = sip:yyyy@
$geturi(From) = @(.+)

[Deploy patterns]
From = sip:xxx@%1
$replaceuri = true
--------------------