09-11-2016 12:11 PM - edited 03-18-2019 12:07 PM
Hi guys,
I m fresh in VoIP and I found one CUBE connect with SIP and CUCM with this destination pattern:
dial-peer voice 9 voip
description **Outgoing Call to STC SIP Trunk**
destination-pattern 01[123456789].......
rtp payload-type comfort-noise 13
session protocol sipv2
session target ipv4:10.200.7.157
session transport udp
voice-class sip dtmf-relay force rtp-nte
dtmf-relay rtp-nte digit-drop
codec g711alaw
no vad
!
My question is 01[123456789]..... "I didn't find explanation for that way without comma or hyphen! what is it mean those number together [123456789] is it the same if i use it with commas [1,2,3,4,5,6,7,8,9]??
Thanks for all
Mohammad Saeed
Solved! Go to Solution.
09-12-2016 06:02 AM
As far as I know it means the same as 1 through 9 so the following three mean the same thing:
[1-9]
[123456789]
[1,2,3,4,5,6,7,8,9]
FYI, this is a destination pattern as opposed to a translation pattern.
You are not translating anything, you are matching based on the Called Number.
09-12-2016 06:01 AM
Yes, they are the same, but proper syntax is to use commas between them, though it works either way. You can also summarize it as [1-9].
09-12-2016 06:02 AM
As far as I know it means the same as 1 through 9 so the following three mean the same thing:
[1-9]
[123456789]
[1,2,3,4,5,6,7,8,9]
FYI, this is a destination pattern as opposed to a translation pattern.
You are not translating anything, you are matching based on the Called Number.
09-12-2016 06:06 AM
devils_advocate,
Comma should be used, see:
http://www.cisco.com/c/en/us/td/docs/ios/12_2/voice/configuration/guide/fvvfax_c/vvfpeers.html
09-12-2016 06:12 AM
My bad.
I edited my post straight after, I was thinking translation pattern initially.
09-12-2016 12:03 PM
So if I didn't use commas that means is wrong destination pattern?
09-12-2016 12:32 PM
It still works, though the proper syntax is to use commas, many folks miss that because it works both ways :-)
09-12-2016 12:01 PM
Good, but why choose [123456789] instead of [1-9] what is the benefit of that?
Thanks,
09-12-2016 12:31 PM
No benefit, you would want to change it to [1-9].
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide