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

Anthony Holloway avholloway+cisco-voip at gmail.com
Thu Jan 17 12:56:11 EST 2013


Correct.  I should have noted that I tried that as well, which then lead me
to the number expansion based solution, which does allow escape characters.


On Wed, Jan 16, 2013 at 9:54 PM, Nick Matthews <matthnick at gmail.com> wrote:

> I tried escaping it in the destination-pattern, but since traditional
> regex isn't allowed you can't actually escape it there.
>
> AwesomeSauce(config-dial-peer)#destination-pattern \*\*47
> Incorrect format for E.164 Number
>         regular expression must be of the form
> ^[][^0-9,A-F#*.?+%()-]*T?(\$)?$
>
> -nick
>
>
>
> On Wed, Jan 16, 2013 at 9:46 PM, Anthony Holloway <
> avholloway+cisco-voip at gmail.com> wrote:
>
>> I just ran into this myself, and out of trial and error, I ended up with
>> the following:
>>
>> num-exp \*\*47 916125551212
>>
>>
>> Since number expansion happens before outgoing DP call leg matching, the
>> call ends up using the normal 91[2-9]..[2-9]...... PSTN dial peer.
>>
>> I would use these ** codes as global speed dials.  I'm happy to know more
>> than one method to solve this problem though, so thank you for sharing your
>> [*][*] solution.
>>
>>
>> On Wed, Jan 16, 2013 at 8:29 PM, Nick Matthews <matthnick at gmail.com>wrote:
>>
>>> 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
>>>
>>>
>>>  On Wed, Jan 16, 2013 at 6:50 PM, Norton, Mike <mikenorton at pwsd76.ab.ca>wrote:
>>>
>>>>   What am I doing wrong here?****
>>>>
>>>> ** **
>>>>
>>>> (config)#dial-peer voice 701 pots****
>>>>
>>>> (config-dial-peer)#destination-pattern **47..****
>>>>
>>>> ** **
>>>>
>>>> It gives me this error:****
>>>>
>>>> ** **
>>>>
>>>> % nested *?+Incorrect format for ^((\*)?*47..)$****
>>>>
>>>> ** **
>>>>
>>>> Huh? I am trying to match two stars followed by 47 followed by two
>>>> wildcard digits. (If I only do one star instead of two, it works fine.)
>>>> This is on a 2901 with 15.1(3)T4.****
>>>>
>>>> ** **
>>>>
>>>> -- ****
>>>>
>>>> Mike Norton****
>>>>
>>>> I.T. Specialist****
>>>>
>>>> Peace Wapiti School Division No. 76****
>>>>
>>>> Helpdesk: 780-831-3080****
>>>>
>>>> Direct: 780-831-3076****
>>>>
>>>> _______________________________________________
>>>> cisco-voip mailing list
>>>> cisco-voip at puck.nether.net
>>>> https://puck.nether.net/mailman/listinfo/cisco-voip
>>>>
>>>>
>>>
>>> _______________________________________________
>>> cisco-voip mailing list
>>> cisco-voip at puck.nether.net
>>> https://puck.nether.net/mailman/listinfo/cisco-voip
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20130117/90fc768b/attachment.html>


More information about the cisco-voip mailing list