Author |
Message |
summit Brekeke Newbie
![](images/spacer.gif)
Joined: 16 Jan 2010 Posts: 1
|
Posted: Sat Jan 16, 2010 8:05 pm Post subject: Need help to build Dialplan for SIP server |
|
|
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 |
|
janP Brekeke Master Guru
![](images/spacer.gif)
Joined: 25 Nov 2007 Posts: 336
|
|
Back to top |
|
james Brekeke Master Guru
![](images/spacer.gif)
Joined: 10 Dec 2007 Posts: 498
|
Posted: Mon Jan 25, 2010 11:38 pm Post subject: |
|
|
>> 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 |
|
|