Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

destination-pattern and regular expressions

I am trying to use a regular expression on the destination-pattern field for a VOIP port but get an error message as below.

Is there a way round it.

Code version Version 12.1(8)

Router6(config)#dial-peer voice 33 voip

Router(config-dial-peer)#destination-pattern [0-9][0-9][0-9][0-9]

Incorrect format for E.164 Number

must be of the form ^((\+)?[0-9,#_ABCD]_\._T?)$

3 REPLIES
Anonymous
N/A

Re: destination-pattern and regular expressions

dial-peer destination pattern do not support regular-expression.

http://www.cisco.com/warp/public/788/pkt-voice-general/dial_peers.html

New Member

Re: destination-pattern and regular expressions

Regexp was added sometime later then 12.1. I would nto recommend 12.1 for a voip GW anyway. Suggest you use 12.2(10a). Works here:

BrisVG200gwy01(config)#dial-peer voice 10000

BrisVG200gw(config-dial-peer)#destination-pattern [0-9][0-9][0-9][0-9][0-9]

BrisVG200gw(config-dial-peer)#

Cisco Employee

Re: destination-pattern and regular expressions

[0-9] is the same thing as a "." If it want take [0-9] then just use the "."

Thank you,

-Mckee

1455
Views
0
Helpful
3
Replies