Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Dial Plan Nortel and Rauland R5
Author Message
zoldy
Brekeke Member


Joined: 29 Jan 2010
Posts: 20

PostPosted: Tue Feb 17, 2015 12:47 pm    Post subject: Dial Plan Nortel and Rauland R5 Reply with quote

1. Brekeke Product Name and Version:
SIP Server
2. Java version:

3. OS type and the version:
Windows 2008
4. UA (phone), gateway or other hardware/software involved:
CS1000
5. Your problem:

In past when dialing back from CS1000 to Rauland R5 we have needed to insert an asterisk in the dial string. In this particular case I need to insert 2 of them. I need to know if this is possible. Below is an example dial plan inserting one asterisk.

What I need to do now is insert one asterisk after the third digit. And one asterisk before the last digit. Is this possible? They will not always be the same number of digits but I always need them inserted in the same position each time.

Matching Patterns
$request = ^INVITE
To = sip:..(.+)(.);phone-context
Deploy Patterns
To = =sip:%1*%2@
$auth = false
&net.sip.replacesdp.multipart = true
$session = sdp
&sdp.audio.a.1 = ptime:20
Back to top
View user's profile
taitan
Brekeke Master Guru


Joined: 15 Mar 2008
Posts: 237

PostPosted: Tue Feb 17, 2015 3:18 pm    Post subject: Reply with quote

> What I need to do now is insert one asterisk after the third digit.
> And one asterisk before the last digit.

Any example?

How about this?
Before: 123456
After: 123*45*6
Back to top
View user's profile
zoldy
Brekeke Member


Joined: 29 Jan 2010
Posts: 20

PostPosted: Wed Feb 18, 2015 6:11 am    Post subject: Reply with quote

That is correct here are more examples.

103882940
103*88294*0

1015642
101*564*2

19945159
199*4515*9

thanks
Back to top
View user's profile
taitan
Brekeke Master Guru


Joined: 15 Mar 2008
Posts: 237

PostPosted: Wed Feb 18, 2015 12:09 pm    Post subject: Reply with quote

This rule will work.
Matching Patterns
$request = ^INVITE
To = sip:(...)(.*)(.);phone-context
Deploy Patterns
To = sip:%1*%2*%3@
$auth = false
&net.sip.replacesdp.multipart = true
$session = sdp
&sdp.audio.a.1 = ptime:20
Back to top
View user's profile
zoldy
Brekeke Member


Joined: 29 Jan 2010
Posts: 20

PostPosted: Wed Feb 18, 2015 12:14 pm    Post subject: Reply with quote

okay great thank you
Back to top
View user's profile
zoldy
Brekeke Member


Joined: 29 Jan 2010
Posts: 20

PostPosted: Tue Mar 10, 2015 10:45 am    Post subject: Reply with quote

Just trying this rule today finally. I get an error no matching pattern.
Back to top
View user's profile
zoldy
Brekeke Member


Joined: 29 Jan 2010
Posts: 20

PostPosted: Thu Mar 12, 2015 1:04 pm    Post subject: Reply with quote

Any ideas on this no matter what I try it says no matched rules. I tried changing the line to this below just as a test. Making it a fixed number of characters and even this says no matched rules.

$request = ^INVITE
To = sip:(...)(...)(.);phone-context
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 501

PostPosted: Fri Mar 13, 2015 3:28 pm    Post subject: Reply with quote

Can you find a call attempt in the [Dial Plan]->[History] page?
If you click the No.# filed, the packet will be shown.

Paste the "From" and "To" headers here.
Back to top
View user's profile
zoldy
Brekeke Member


Joined: 29 Jan 2010
Posts: 20

PostPosted: Mon Mar 16, 2015 5:34 am    Post subject: Reply with quote

I just placed a test call. Under the log file I see "No matched rules"... I checked under the history tab under the dial plan and there is nothing in there for this call.
Back to top
View user's profile
zoldy
Brekeke Member


Joined: 29 Jan 2010
Posts: 20

PostPosted: Mon Mar 16, 2015 5:52 am    Post subject: Reply with quote

I can see from the error log the To URI is ... I blanked out the actual IP address

sip:1102011@xx.xx.x.xx
Back to top
View user's profile
zoldy
Brekeke Member


Joined: 29 Jan 2010
Posts: 20

PostPosted: Mon Mar 16, 2015 6:13 am    Post subject: Reply with quote

Changed line in matching pattern to this and it works now.

To = sip:(...)(.+)(.)@
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 501

PostPosted: Mon Mar 16, 2015 4:56 pm    Post subject: Reply with quote

Glad to know it.
It seems CS1000 doesn't put "phone-context" parameter in SIP-URI.
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