Author |
Message |
LeeFrederick Brekeke Member
![](images/spacer.gif)
Joined: 07 Mar 2011 Posts: 23
|
Posted: Mon Apr 29, 2013 6:45 am Post subject: about a dail 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's ip address is 192.168.228.***, the call will be tranfered to an appointed UA.
I have try the following dail plan:
Matching Patterns | $request = ^INVITE $addr = 192\.168\.228\.67$
|
Deploy Patterns | From = "%1"<%2> To = sip:8888999@192.168.66.23:5060
|
The result is that the call will be transfered to 8888999,but 88888999 can not receive the PSTN number the UA dailed.How can I modify the ruler?
And I also want to change "$addr=192\.168\.228\.67$" ,instead of a network segment(192.168.228.*),not only one ip address,How do I modify it?
Thank you very much! |
|
Back to top |
|
janP Brekeke Master Guru
![](images/spacer.gif)
Joined: 25 Nov 2007 Posts: 336
|
Posted: Mon Apr 29, 2013 8:00 am Post subject: |
|
|
> From = "%1"<%2>
Do you have definitions for %1 and %2 in Matching Patterns?
> but 88888999 can not receive the PSTN number the UA dailed.How can I modify the ruler?
Do you mean 88888999 can not receive a call from a PSTN?
> And I also want to change "$addr=192\.168\.228\.67$" ,instead of a network segment(192.168.228.*),not only one ip address
Do you want to define 192.168.228.*?
How about the following?
$addr = 192\.168\.228\.* |
|
Back to top |
|
LeeFrederick Brekeke Member
![](images/spacer.gif)
Joined: 07 Mar 2011 Posts: 23
|
Posted: Tue Apr 30, 2013 7:27 am Post subject: |
|
|
Thanks for your reply.
> From = "%1"<%2>
Do you have definitions for %1 and %2 in Matching Patterns?
I have no definitions for them.It seems doesn't need to define,My old dail plan can work normally.for example:
Matching Patterns | $request = ^INVITE To = sip:(1[0-9]{10})@ $geturi(From) = (.+)
|
Deploy Patterns | From = "%1"<%2> To = sip:8888999@192.168.66.23:5060
|
Have I define them?
> but 88888999 can not receive the PSTN number the UA dailed.How can I modify the ruler?
Do you mean 88888999 can not receive a call from a PSTN?
For example, When an UA dails 0081502239999,according to the dail plan,8888999 will receive and answer the call,At this time,8888999 can receive the call,but can not receive the number(0081502239999) now,It's empty. 88888999 is a pstn exchange, so it need to reveive 0081502239999 and call out.
How do I modify it?
thank you |
|
Back to top |
|
hope Brekeke Master Guru
![](images/spacer.gif)
Joined: 15 Jan 2008 Posts: 862
|
Posted: Tue Apr 30, 2013 10:50 am Post subject: |
|
|
Quote: |
for example:
Matching Patterns | $request = ^INVITE To = sip:(1[0-9]{10})@ $geturi(From) = (.+)
|
Deploy Patterns | From="%1"<%2>
To=sip:8888999@192.168.66.23:5060
Have I define them? |
|
yes, %1 is number matched To=sip:(1[0-9]{10})@
%2 is return in $geturi(From)=(.+)
http://wiki.brekeke.com/wiki/buffer-in-the-dial-plan-rule
try adding those two lines in current dial plan rule matching patterns
To=sip:(1[0-9]{10})@
$geturi(From)=(.+) |
|
Back to top |
|
LeeFrederick Brekeke Member
![](images/spacer.gif)
Joined: 07 Mar 2011 Posts: 23
|
Posted: Wed May 01, 2013 7:49 am Post subject: |
|
|
thank you
Now all problems are solved.
Thank you very much! ![Very Happy](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
Tata Brekeke Master Guru
![](images/spacer.gif)
Joined: 27 Jan 2008 Posts: 223
|
Posted: Wed May 01, 2013 11:17 am Post subject: |
|
|
LeeFrederick,
I don't recommend the following lines in the Matching Patterns.
To = sip:(1[0-9]{10})@
$geturi(From) = (.+)
This is because %1 and %2 are used for composing From header in Deploy Patterns in your DialPlan definition.
Do you have any reason to put callee phone number in From's display name?
If you don't have any reason, you don't have to have the following lines.
To = sip:(1[0-9]{10})@
$geturi(From) = (.+)
From="%1"<%2> |
|
Back to top |
|
|