Author |
Message |
LeeFrederick Brekeke Member
Joined: 07 Mar 2011 Posts: 23
|
Posted: Thu Jun 02, 2011 7:17 am Post subject: about dial plan |
|
|
1. Brekeke Product Name and version:
Version 2.4.7.3 Standard
2. Java version:
JRE 6 Update 23
3. OS type and the version:
win 2003
4. UA (phone), gateway or other hardware/software involved:
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html :
Pattern 3
6. Your problem:
I want to build a dial plan,When the UA dials a phone number begins with zero(for example,02188010000),at this time,the sip server will call an appointed UA(for example,8888888),and send the phone number(02188010000) to the appointed UA.
How do I build the dial rule? thank you! |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
|
Back to top |
|
LeeFrederick Brekeke Member
Joined: 07 Mar 2011 Posts: 23
|
Posted: Mon Jun 06, 2011 5:18 am Post subject: |
|
|
Thanks for you reply.
but I am using BSS,not PBX.
I mean when the sip phone dails a phone number begins with zero(for example,02188010000) ,the BSS will route the call to an appointed UA.and also send the phone number(02188010000) to it.
I have built the dail plan below:
Matching Patterns | $request = ^INVITE To = sip:(0.+)@
| Deploy Patterns | To = sip:6666666@192.168.99.2:5060
|
Under these circumstances,when an UA (9999999) dails 02188010000,the UA(6666666) will reveice the call.but the UA(6666666)'s caller ID display is 9999999,not 02188010000,how do I transfer the caller ID display?
I have read the bss_tutorial_dialplan_en.pdf,but I coundn't find the answer.
thank you for your help. |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Mon Jun 06, 2011 11:41 am Post subject: |
|
|
Matching Patterns | $request = ^INVITE To = sip:(0.+)@ $geturi(From) = (.+)
| Deploy Patterns | From = "%1"<%2> To = sip:6666666@192.168.99.2:5060
|
|
|
Back to top |
|
LeeFrederick Brekeke Member
Joined: 07 Mar 2011 Posts: 23
|
Posted: Sun Jul 10, 2011 8:41 pm Post subject: |
|
|
Thank you very much.
and I also want to limit the length of the phone number,for example,when the length of the phone number is eight and the prefix is "9",It matchs the Deploy Patterns.how do I change the Matching Patterns?
thanks |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Mon Jul 11, 2011 1:31 pm Post subject: |
|
|
do you want to limit phone number in To header?
try:
Matching Patterns | $request = ^INVITE To = sip:(9[0-9]{8})@ $geturi(From) = (.+)
| Deploy Patterns | From = "%1"<%2> To = sip:6666666@192.168.99.2:5060
|
To = sip:(9[0-9]{8})@ match dialing number with prefix 9 and followed by 8 more numbers after 9 |
|
Back to top |
|
janP Brekeke Master Guru
Joined: 25 Nov 2007 Posts: 336
|
|
Back to top |
|
LeeFrederick Brekeke Member
Joined: 07 Mar 2011 Posts: 23
|
Posted: Fri Jul 15, 2011 8:20 pm Post subject: |
|
|
hope,thank you very much,it works normally now. |
|
Back to top |
|
LeeFrederick Brekeke Member
Joined: 07 Mar 2011 Posts: 23
|
Posted: Fri Jul 15, 2011 8:56 pm Post subject: |
|
|
thank you,I am new to sip,and I will learn the Regular expression. |
|
Back to top |
|
|