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

Post by hope »

is it sending dialing phone number as DTMF?
Brekeke PBX two-stage dialing can do it.
http://www.brekeke-sip.com/download/bpb ... sic_en.pdf
page 21
LeeFrederick
Posts: 23
Joined: Mon Mar 07, 2011 7:48 am

Post by LeeFrederick »

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

Post by hope »

Matching Patterns:
$request = ^INVITE
To = sip:(0.+)@
$geturi(From) = (.+)

Deploy Patterns:
From = "%1"<%2>
To = sip:6666666@192.168.99.2:5060
LeeFrederick
Posts: 23
Joined: Mon Mar 07, 2011 7:48 am

Post by LeeFrederick »

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

Post by hope »

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

Post by janP »

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

Post by LeeFrederick »

hope,thank you very much,it works normally now. :D
LeeFrederick
Posts: 23
Joined: Mon Mar 07, 2011 7:48 am

Post by LeeFrederick »

janP wrote:LeeFrederick,

You can learn how to write Regular expression.
http://en.wikipedia.org/wiki/Regular_expression
http://download.oracle.com/javase/6/doc ... ttern.html
thank you,I am new to sip,and I will learn the Regular expression. :D
Post Reply