Author |
Message |
zoldy Brekeke Member
Joined: 29 Jan 2010 Posts: 20
|
Posted: Tue Feb 17, 2015 12:47 pm Post subject: Dial Plan Nortel and Rauland R5 |
|
|
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 |
|
taitan Brekeke Master Guru
Joined: 15 Mar 2008 Posts: 237
|
Posted: Tue Feb 17, 2015 3:18 pm Post subject: |
|
|
> 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 |
|
zoldy Brekeke Member
Joined: 29 Jan 2010 Posts: 20
|
Posted: Wed Feb 18, 2015 6:11 am Post subject: |
|
|
That is correct here are more examples.
103882940
103*88294*0
1015642
101*564*2
19945159
199*4515*9
thanks |
|
Back to top |
|
taitan Brekeke Master Guru
Joined: 15 Mar 2008 Posts: 237
|
Posted: Wed Feb 18, 2015 12:09 pm Post subject: |
|
|
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 |
|
zoldy Brekeke Member
Joined: 29 Jan 2010 Posts: 20
|
Posted: Wed Feb 18, 2015 12:14 pm Post subject: |
|
|
okay great thank you |
|
Back to top |
|
zoldy Brekeke Member
Joined: 29 Jan 2010 Posts: 20
|
Posted: Tue Mar 10, 2015 10:45 am Post subject: |
|
|
Just trying this rule today finally. I get an error no matching pattern. |
|
Back to top |
|
zoldy Brekeke Member
Joined: 29 Jan 2010 Posts: 20
|
Posted: Thu Mar 12, 2015 1:04 pm Post subject: |
|
|
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 |
|
james Brekeke Master Guru
Joined: 10 Dec 2007 Posts: 501
|
Posted: Fri Mar 13, 2015 3:28 pm Post subject: |
|
|
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 |
|
zoldy Brekeke Member
Joined: 29 Jan 2010 Posts: 20
|
Posted: Mon Mar 16, 2015 5:34 am Post subject: |
|
|
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 |
|
zoldy Brekeke Member
Joined: 29 Jan 2010 Posts: 20
|
Posted: Mon Mar 16, 2015 5:52 am Post subject: |
|
|
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 |
|
zoldy Brekeke Member
Joined: 29 Jan 2010 Posts: 20
|
Posted: Mon Mar 16, 2015 6:13 am Post subject: |
|
|
Changed line in matching pattern to this and it works now.
To = sip:(...)(.+)(.)@ |
|
Back to top |
|
james Brekeke Master Guru
Joined: 10 Dec 2007 Posts: 501
|
Posted: Mon Mar 16, 2015 4:56 pm Post subject: |
|
|
Glad to know it.
It seems CS1000 doesn't put "phone-context" parameter in SIP-URI. |
|
Back to top |
|
|