cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

AMA-CUCM Troubleshooting: Best Practices for Reading Trace Files

253
Views
5
Helpful
3
Replies
Beginner

Finiding out which dial-peer will be matched on a GW based on a pattern(not a number)

I am executing the command show dialplan number 912**2****** on my CUBE to find out which dial peer this pattern would match. The problem is that I had to hard-code the two number 2's instead of being able to use wild cards or regular expressions. My tested pattern matched two dial-peers on pattern 91[2-9]..[2-9]...... Those are the correct dial-peers/patterns that I want to match, but I do not want to have to hard-code a number instead of an expression in brackets. What is the proper syntax for achieving this?  when I tried: show dialplan number 912**[2-9]****** , I was not able to decipher the error message of: 

Incorrect format for E.164 Number 

regular expression must be of the form ^((\+)?([0-9,#*A-F])+)$

 

Thanks in advance. 

Everyone's tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Cisco Employee

Re: Finiding out which dial-peer will be matched on a GW based on a pattern(not a number)

You can't use a pattern like you want, and that's what the pattern from the error is telling you.

Incorrect format for E.164 Number 

regular expression must be of the form ^((\+)?([0-9,#*A-F])+)$

 

What does the above pattern tell you is a valid number for the command?

 

The documentation for the command also tells you:

dial-string

Particular destination pattern (E.164 telephone number).

HTH

java

if this helps, please rate
3 REPLIES 3
Hall of Fame Cisco Employee

Re: Finiding out which dial-peer will be matched on a GW based on a pattern(not a number)

Incorrect format for E.164 Number 

regular expression must be of the form ^((\+)?([0-9,#*A-F])+)$

 

See table 1, and read this document to understand what that regular expression means

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/fundamentals/configuration/15_sy/fundamentals-15-sy-book/cf-cli-search.html

HTH

java

if this helps, please rate
Highlighted
Beginner

Re: Finiding out which dial-peer will be matched on a GW based on a pattern(not a number)

Jaime,

While this is a very good document, it does not quite help for my purposes. I am working with the show dialplan number command to figure out which dial-peers a particular pattern will match. The fact that it must be a pattern and not an explicit number is essential. I see that some wilcards/expressions can be used with the show dialplan number command, but I cannot figure out which wildcards/expressions I can use for something like [2-9].  

Hall of Fame Cisco Employee

Re: Finiding out which dial-peer will be matched on a GW based on a pattern(not a number)

You can't use a pattern like you want, and that's what the pattern from the error is telling you.

Incorrect format for E.164 Number 

regular expression must be of the form ^((\+)?([0-9,#*A-F])+)$

 

What does the above pattern tell you is a valid number for the command?

 

The documentation for the command also tells you:

dial-string

Particular destination pattern (E.164 telephone number).

HTH

java

if this helps, please rate
CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards