Author |
Message |
sinlili2005 Brekeke Addict
Joined: 20 Sep 2006 Posts: 29
|
Posted: Wed Sep 24, 2008 7:31 am Post subject: Dial Plan issue |
|
|
1. Brekeke Product Name and version: 1.5
2. Java version: 1.5
3. OS type and the version: Redhat Linux 9.0
4. UA (phone), gateway or other hardware/software involved: Quintum, X-lite
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html : 1
6. Your problem:
My X-lite register 9123 to OSS, and I have a hunt number 9x in Quintum Gateway. Therefore my dial plan in OSS is
Matching Patterns Deploy Patterns
$request = ^INVITE To=sip:9%1@xxx.xxx.xxx.xxx
$To= sip:9(.+)@
If I call 9123, the OSS cannot route the call to my x-lite. It will route the call to Quintum Gateway. Can OSS support longer match pattern? and How can I solve the issue? Please advise.
Thank you. |
|
Back to top |
|
Andrey Brekeke Addict
Joined: 21 Apr 2008 Posts: 29
|
Posted: Wed Sep 24, 2008 10:11 am Post subject: |
|
|
Hi
Use $registered in Matching Pattern.
If it returns "true", the UAS is registered.
Anyway.. OSS version 1.5 is super old version.
Try the latest Brekeke SIP Server.
http://www.brekeke.com/download/download_sip_2_0.php |
|
Back to top |
|
sinlili2005 Brekeke Addict
Joined: 20 Sep 2006 Posts: 29
|
Posted: Wed Sep 24, 2008 6:48 pm Post subject: |
|
|
HI,
Thank you for your suggestion. I tried the below dial plan:-
Matching Patterns | $request = ^INVITE $registered("9123") = true
| Deploy Patterns | To = sip:9123@
|
If i put this Dial Plan in high Priority, then all the call will be routed to the x-lite, even if i call 9124, 9125 (seem the DINS will be changed to 9123 and routed to the dentination). |
|
Back to top |
|
Andrey Brekeke Addict
Joined: 21 Apr 2008 Posts: 29
|
Posted: Thu Sep 25, 2008 10:31 am Post subject: |
|
|
think it simple..
let you try the dialplan below..
you don't need any other dialplan rules..
Matching Patterns | $request = ^INVITE $To = sip:9(.+)@ $registered = false
| Deploy Patterns | To = sip:9%1@xxx.xxx.xxx.xxx (Gateway's IP address) |
if a dialed number is not registered, the call will be sent to the gateway. |
|
Back to top |
|
sinlili2005 Brekeke Addict
Joined: 20 Sep 2006 Posts: 29
|
Posted: Sun Sep 28, 2008 6:18 pm Post subject: |
|
|
Thanks. It is working now. |
|
Back to top |
|
|