[cisco-voip] dial-peer destination-pattern with **

Norton, Mike mikenorton at pwsd76.ab.ca
Thu Jan 17 14:53:42 EST 2013


It seems [*][*]47.. will do the trick. But according to the documentation, it is not actually allowed.

>From http://www.cisco.com/en/US/docs/ios-xml/ios/voice/vcr2/vcr-d1.html#GUID-32D33F3E-AFFC-4A5B-A305-56353A898C17
"Brackets ([ ]), which indicate a range. A range is a sequence of characters enclosed in the brackets; only numeric characters from 0 to 9 are allowed in the range."

Hmm. I think somebody was smoking something when they wrote the code to parse destination-patterns.

--
Mike Norton
I.T. Specialist
Peace Wapiti School Division No. 76
Helpdesk: 780-831-3080
Direct: 780-831-3076


From: matthn at gmail.com [mailto:matthn at gmail.com] On Behalf Of Nick Matthews
Sent: January-16-13 7:29 PM
To: Norton, Mike
Cc: cisco-voip at puck.nether.net
Subject: Re: [cisco-voip] dial-peer destination-pattern with **

Looks like it doesn't parse correctly. Even though I haven't seen * used as 0 or more in a destination-pattern, and I don't think it works as an operator, it appears IOS's parser pretends it is.

This would be an alternative: [*][*]47..
Though since [*] isn't a literal it will send all 6 numbers, so use forward-digits as necessary.
-nick

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20130117/314e8312/attachment.html>


More information about the cisco-voip mailing list