07-11-2019 07:49 AM
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.
Solved! Go to Solution.
07-11-2019 11:00 AM
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). |
07-11-2019 10:02 AM
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
07-11-2019 10:20 AM
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].
07-11-2019 11:00 AM
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). |
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