Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Need help to build Dialplan for SIP server
Author Message
summit
Brekeke Newbie


Joined: 16 Jan 2010
Posts: 1

PostPosted: Sat Jan 16, 2010 8:05 pm    Post subject: Need help to build Dialplan for SIP server Reply with quote

1. Brekeke Product Name and version: 2.4.3.0 (SIP Server)

2. Java version: sun 1.5.0.11

3. OS type and the version: Linux (Centos) 2.6.x

4. UA (phone), gateway or other hardware/software involved:

regular SIP phone (hardware) or SIP softphone, Asterisk (for PBX function), Carrier to terminate call, DID provider

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html :

6. Your problem:


I need some help to build dial-plan for the following rules:

1. All client registered with phone number starting with 499xxxxxx

2. Client will have Mail box to Asterisk PBX which can be reached by dialing *98

3. Client can be reached by outside world via DID provider. All DID number starting pattern 442499xxxx or directly same as phone number of each client 499xxxxx

4. DID provider and user mail box in the same asterisk server IP 192.168.2.16

5. Any user want to reach other SIP phone will just dial 499xxxx if they want to dial outside number as follows

Within country 0xxxxx and call should be forwarded to host 192.168.2.17

International call will be dialed 00xxxxx and call should be forwarded to host 192.168.2.17 (same host)

Appreciate your help to build these rules with matching pattern and deploy pattern form

Thanks

Summit
Back to top
View user's profile
janP
Brekeke Master Guru


Joined: 25 Nov 2007
Posts: 336

PostPosted: Tue Jan 19, 2010 12:06 am    Post subject: Reply with quote

hi
have you read the tutorial? you may find good examples in the doc.
http://www.brekeke-sip.com/download/bss/v2_x/bss_tutorial_dialplan_en.pdf

if you still have questions, paste your current dialplan here.
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 498

PostPosted: Mon Jan 25, 2010 11:38 pm    Post subject: Reply with quote

>> 2. Client will have Mail box to Asterisk PBX which can be reached by dialing *98

Matching Patterns
$request = ^INVITE
To = sip:*98@
Deploy Patterns
To = sip:*98@192.168.2.16



>> 4. DID provider and user mail box in the same asterisk server IP 192.168.2.16

Matching Patterns
$request = ^INVITE
$registered = false
To = sip:(.+)@
Deploy Patterns
To = sip:%1@192.168.2.16



Matching Patterns
$request = ^INVITE
$addr = 192.168.2.16$|192.168.2.17$
Deploy Patterns
$auth = off




>> Within country 0xxxxx and call should be forwarded to host 192.168.2.17

Matching Patterns
$request = ^INVITE
$registered = false
To = sip:(0.+)@
Deploy Patterns
To = sip:%1@192.168.2.17



>> International call will be dialed 00xxxxx and call should be forwarded to host 192.168.2.17 (same host)

Matching Patterns
$request = ^INVITE
$registered = false
To = sip:(00.+)@
Deploy Patterns
To = sip:%1@192.168.2.17
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