Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Complicated Dial Plan Help
Author Message
brad051380
Brekeke Member


Joined: 10 Jul 2009
Posts: 13
Location: Indiana

PostPosted: Fri Oct 30, 2009 9:10 am    Post subject: Complicated Dial Plan Help Reply with quote

1. Brekeke Product Name and version:Brekeke SIP Server 2.3.8.2

2. Java version:1.6.0_16

3. OS type and the version: Windows 2003 R2 Standard

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

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

6. Your problem:
Apparently Nortel will not send special characters in a dial string. I need "*"'s in my dial string to call my end points.
here is my scenario:
3 different call pattern need to be established due to the nature of the system needing variable digits dialled:
From Nortel:
1. xxxxxxx
2. xxxxxxxx
3. xxxxxxxxx

When i receive this in Brekeke i want to translate the number from Nortel plus if i need to i need to match the number of dialled digits per dial plan
example 1:
from nortel:
2002201
when it hits brekeke i need to possibly say "i see a total of 7 digits" now i want to process this.
Then in the deploy pattern i want to translate it as such:
200*2201

example 2:
from nortel:
20022011
when it hits brekeke i need to possibly say "i see a total of 8 digits" now i want to process this.
Then in the deploy pattern i want to translate it as such:
200*2201*1

example 3:
from nortel:
200220110
when it hits brekeke i need to possibly say "i see a total of 9 digits" now i want to process this.
Then in the deploy pattern i want to translate it as such:
200*2201*10


Example 3 will be a rare exception in my system. but examples 1 and 2 are actual numbers to a patient room in the Rauland Responder5 system.
Back to top
View user's profile Send e-mail
lakeview
Brekeke Master Guru


Joined: 15 Nov 2007
Posts: 319
Location: Florida

PostPosted: Fri Oct 30, 2009 3:57 pm    Post subject: Reply with quote

Are destinations (called-parties) registered in the SIP Server?
Back to top
View user's profile
brad051380
Brekeke Member


Joined: 10 Jul 2009
Posts: 13
Location: Indiana

PostPosted: Mon Nov 02, 2009 8:27 am    Post subject: Reply with quote

Yes the destination URI's are registered.


here is the syntax i got working after working with Support using an X-Lite Phone:


Dial Plan 1
Matching:
$request=^INVITE
To=sip:([0-9]{6})([0-9]{4})@

Deploy
To=sip:%1*%2@IP Address


Dial Plan 2
matching:
$request=^INVITE
To=sip:([0-9]{3})([0-9]{4})([0-9]{1,2})@
Deploy:
To=sip:%1%2*%3@IP address

I am waiting for an onsite test from a Nortel Phone. Nortel's INVITE packet has a different look to than Cisco Call Manager has:
SIP/SDP Request: INVITE sip:1972212264;phone-context=cdp.udp@Domain.org:5060;maddr=10.230.100.251;transport=tcp;user=phone;x-nt-redirect=redirect-server, with session description (application/x-nt-mcdn-frag-hex) (application/x-nt-epid-frag-hex)
I am told that Brekeke supports this INVITE Packet so more to come on this hopefully later today.
Back to top
View user's profile Send e-mail
lakeview
Brekeke Master Guru


Joined: 15 Nov 2007
Posts: 319
Location: Florida

PostPosted: Mon Nov 02, 2009 6:44 pm    Post subject: Reply with quote

brad
it seems Nortel's INVITE has a parameter before '@' mark.
the above dialplan rule may not work with Nortel.
To line in Matching will be like this to ignore the parameter "phone-context=cdp.udp".

Code:
$getUri(To) = sip:([0-9]{6})([0-9]{4});

or
Code:
To = sip:([0-9]{6})([0-9]{4});.*@
Back to top
View user's profile
brad051380
Brekeke Member


Joined: 10 Jul 2009
Posts: 13
Location: Indiana

PostPosted: Wed Nov 04, 2009 9:26 am    Post subject: Reply with quote

i am able to establish the call based on this dial plan:
Matching:
$request=^INVITE
To=sip:([0-9]{3})([0-9]{4})([0-9]{1,2});.*@
Deploy:
To=sip:%1%2*%3@IP

Matching:
$request=^INVITE
To=To=sip:([0-9]{3})([0-9]{4});.*@
Deploy:
To=sip:%1%2@IP

however, no matter which order i place them the first near match wins and it stop there.
With the Variable dialed digits coming from the Nortel system i really need to accomodate this method it is almost like i need a statement that check the dial digit length in the matching patterns first somehow.
Back to top
View user's profile Send e-mail
lakeview
Brekeke Master Guru


Joined: 15 Nov 2007
Posts: 319
Location: Florida

PostPosted: Wed Nov 04, 2009 3:33 pm    Post subject: Reply with quote

To = To=sip:([0-9]{3})([0-9]{4});.*@

should be

To = sip:([0-9]{3})([0-9]{4});.*@
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