Complicated Dial Plan Help

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
brad051380
Posts: 13
Joined: Fri Jul 10, 2009 6:39 am
Location: Indiana

Complicated Dial Plan Help

Post by brad051380 »

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/ ... terns.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.
lakeview
Posts: 319
Joined: Thu Nov 15, 2007 11:54 am
Location: Florida

Post by lakeview »

Are destinations (called-parties) registered in the SIP Server?
brad051380
Posts: 13
Joined: Fri Jul 10, 2009 6:39 am
Location: Indiana

Post by brad051380 »

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.
lakeview
Posts: 319
Joined: Thu Nov 15, 2007 11:54 am
Location: Florida

Post by lakeview »

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: Select all

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

Code: Select all

To = sip:([0-9]{6})([0-9]{4});.*@
brad051380
Posts: 13
Joined: Fri Jul 10, 2009 6:39 am
Location: Indiana

Post by brad051380 »

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.
lakeview
Posts: 319
Joined: Thu Nov 15, 2007 11:54 am
Location: Florida

Post by lakeview »

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

should be

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