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

Can Anyone help to explain why character \ is used in Route pattern.

Can Anyone help to explain why character \ is used in Route pattern. also if you could explain *11\+1.289201XXXX ?

1 Accepted Solution

Accepted Solutions

William Bell
VIP Alumni
VIP Alumni

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.

HTH -Bill (b) http://ucguerrilla.com (t) @ucguerrilla

Please remember to rate helpful responses and identify

View solution in original post

4 Replies 4

William Bell
VIP Alumni
VIP Alumni

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.

HTH -Bill (b) http://ucguerrilla.com (t) @ucguerrilla

Please remember to rate helpful responses and identify

+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

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

HTH

java

if this helps, please rate

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.

HTH -Bill (b) http://ucguerrilla.com (t) @ucguerrilla

Please remember to rate helpful responses and identify