Forums Read-only archive

Need help to build Dialplan for SIP server

3 posts · Brekeke SIP Server Forum

summit Original post
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/ ... terns.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
janP
hi
have you read the tutorial? you may find good examples in the doc.
http://www.brekeke-sip.com/download/bss ... lan_en.pdf

if you still have questions, paste your current dialplan here.
james
>> 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
-------------------------------