01-03-2014 09:54 AM - edited 03-16-2019 09:05 PM
Can Anyone help to explain why character \ is used in Route pattern. also if you could explain *11\+1.289201XXXX ?
Solved! Go to Solution.
01-04-2014 09:50 AM
You use the backslash ("\") character in a route pattern when you want CUCM to treat a wildcard pattern as a literal character. The "+" is a wildcard pattern that matches one or more occurrences of the preceding digit or wildcard value.
So,
9+11 would match 911, 9911, 999911, etc.
If you want to treat the "+" as a literal character then you need to use \+.
HTH
-Bill
(b) http://ucguerrilla.com
(t) @ucguerrilla
Please remember to rate helpful responses and identify helpful or correct answers.
Please remember to rate helpful responses and identify
01-04-2014 09:50 AM
You use the backslash ("\") character in a route pattern when you want CUCM to treat a wildcard pattern as a literal character. The "+" is a wildcard pattern that matches one or more occurrences of the preceding digit or wildcard value.
So,
9+11 would match 911, 9911, 999911, etc.
If you want to treat the "+" as a literal character then you need to use \+.
HTH
-Bill
(b) http://ucguerrilla.com
(t) @ucguerrilla
Please remember to rate helpful responses and identify helpful or correct answers.
Please remember to rate helpful responses and identify
01-05-2014 11:14 AM
+5 to Bill for correct answer, just to add a little background to it, when CUCM was initially releases I suppose nobody expected + character to be so widely used in the dial plan, so they shut themselves in the foot by assigning it as a wildcard, once Cisco realized few years back that + character should be a dialable digit rather than decommission the + wildcard that almost nobody uses anyway they decided to use \+ to depict literal dial character :-(
HTH,
Chris
01-05-2014 11:44 AM
Actually, I believe that comes from the fact that those patterns are based on regex, and not a decision from whoever designed the call engine.
Sent from Cisco Technical Support iPad App
01-05-2014 11:59 AM
Well, I think the proper characterization would be that the design is based on a loose interpretation of RegEx. For instance, the asterisk "*" is typically used as the directive for zero or more occurrences of the preceding character. In the UCM dial plan, the * is a valid digit and someone decided to avoid the nastiness of escaping asterisk every time it is needed. On a related point, in standard regex build the "?" is used for a 0 or 1 match. In UCM, the "?" is 0 or more (so, it is like the asterisk in that way).
That said, I get your point. Someone says "hey, we need wild cards" and the likely place to start pulling examples is RegEx.
HTH
-Bill
(b) http://ucguerrilla.com
(t) @ucguerrilla
Please remember to rate helpful responses and identify helpful or correct answers.
Please remember to rate helpful responses and identify
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