06-24-2002 02:38 PM - edited 03-12-2019 07:22 PM
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?)$
06-24-2002 02:38 PM
dial-peer destination pattern do not support regular-expression.
http://www.cisco.com/warp/public/788/pkt-voice-general/dial_peers.html
06-25-2002 12:42 AM
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)#
06-25-2002 06:22 AM
[0-9] is the same thing as a "." If it want take [0-9] then just use the "."
Thank you,
-Mckee
03-04-2020 12:41 AM
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.
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