cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2733
Views
5
Helpful
4
Replies

destination-pattern and regular expressions

admin_2
Level 3
Level 3

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?)$

4 Replies 4

Not applicable

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

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

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)#

mimckee
Level 1
Level 1

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

Thank you,

-Mckee

This is the correct solution.

Destination pattern should be

 

destination-pattern ....

 

But it seems strange for me.

What you need to do?

It does not specify a destination.