about a dail plan

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
LeeFrederick
Posts: 23
Joined: Mon Mar 07, 2011 7:48 am

about a dail plan

Post by LeeFrederick »

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/ ... terns.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!
janP
Posts: 336
Joined: Sun Nov 25, 2007 2:55 pm

Post by janP »

> 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\.*
LeeFrederick
Posts: 23
Joined: Mon Mar 07, 2011 7:48 am

Post by LeeFrederick »

:D 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
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

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- ... -plan-rule

try adding those two lines in current dial plan rule matching patterns
To=sip:(1[0-9]{10})@
$geturi(From)=(.+)
LeeFrederick
Posts: 23
Joined: Mon Mar 07, 2011 7:48 am

Post by LeeFrederick »

:D thank you
Now all problems are solved.
Thank you very much! :D
Tata
Posts: 223
Joined: Sun Jan 27, 2008 1:03 pm

Post by Tata »

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>
Post Reply