Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
about dial plan
Author Message
LeeFrederick
Brekeke Member


Joined: 07 Mar 2011
Posts: 23

PostPosted: Thu Jun 02, 2011 7:17 am    Post subject: about dial plan Reply with quote

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
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Thu Jun 02, 2011 10:02 am    Post subject: Reply with quote

is it sending dialing phone number as DTMF?
Brekeke PBX two-stage dialing can do it.
http://www.brekeke-sip.com/download/bpbx/v2_x/bpbx_admin_basic_en.pdf
page 21
Back to top
View user's profile
LeeFrederick
Brekeke Member


Joined: 07 Mar 2011
Posts: 23

PostPosted: Mon Jun 06, 2011 5:18 am    Post subject: Reply with quote

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
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Mon Jun 06, 2011 11:41 am    Post subject: Reply with quote


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
View user's profile
LeeFrederick
Brekeke Member


Joined: 07 Mar 2011
Posts: 23

PostPosted: Sun Jul 10, 2011 8:41 pm    Post subject: Reply with quote

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
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Mon Jul 11, 2011 1:31 pm    Post subject: Reply with quote

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
View user's profile
janP
Brekeke Master Guru


Joined: 25 Nov 2007
Posts: 336

PostPosted: Tue Jul 12, 2011 2:25 pm    Post subject: Reply with quote

LeeFrederick,

You can learn how to write Regular expression.
http://en.wikipedia.org/wiki/Regular_expression
http://download.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html
Back to top
View user's profile
LeeFrederick
Brekeke Member


Joined: 07 Mar 2011
Posts: 23

PostPosted: Fri Jul 15, 2011 8:20 pm    Post subject: Reply with quote

hope,thank you very much,it works normally now. Very Happy
Back to top
View user's profile
LeeFrederick
Brekeke Member


Joined: 07 Mar 2011
Posts: 23

PostPosted: Fri Jul 15, 2011 8:56 pm    Post subject: Reply with quote

janP wrote:
LeeFrederick,

You can learn how to write Regular expression.
http://en.wikipedia.org/wiki/Regular_expression
http://download.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html


thank you,I am new to sip,and I will learn the Regular expression. Very Happy
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1