E.164+ Numbers and IOS Voice Translation Rules

Answered Question
Jan 30th, 2014
User Badges:
  • Blue, 1500 points or more

Hello,


I have a CUCM 9.x cluster with an E.164+ dial plan for internal extensions, route patterns etc.


I have an ISDN gateway (2911 ISR with IOS 15.3(3)M1) which connects to the PSTN.


The ISDN provider cannot accept E.164+ format destination numbers so I need to manipulate the called digits before sending them to the PSTN switch.


I can obviously do this using CUCM Called Party Translation Patterns but I am wondering whether it is possible to do the translation on the gateway instead?


The rule I have tried to use is shown below (United Kingdom Country Code).


rule 1 /^+44\(.*\)/ /0\1/


What I want it to do is strip +44 of the start of the number and replace it with 0


e.g.  +441234444666 would become 01234444666


The rule I have tried fails because the + symbol is identified as a wildcard rather than as part of the number string I want to match.


Is there any way around this?


Thanks

Correct Answer by Nadeem Ahmed about 3 years 6 months ago

Hello James


This is regular expression, have you tried putting (.) dot first then + followed by your number


let me try at lab






Br,
Nadeem 

Please rate all useful post.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (4 ratings)
Loading.
Correct Answer
Nadeem Ahmed Thu, 01/30/2014 - 10:11
User Badges:
  • Cisco Employee,

Hello James


This is regular expression, have you tried putting (.) dot first then + followed by your number


let me try at lab






Br,
Nadeem 

Please rate all useful post.

jamiedoherty Sat, 07/25/2015 - 18:52
User Badges:

I believe you got a bit lucky by using ".+" because that just matched any character.  What you should have done is use "\" to denote that the next character is an actual character and not an operator.  It should look like this:

rule 1 /^\+44\(.*\)/ /0\1/

I know this was answered previously, but I wanted to clarify.

Hermanus Janse ... Thu, 01/30/2014 - 10:22
User Badges:
  • Silver, 250 points or more

Hi James,


As Nadeem mentioned the /.+/ will do the trick.


Pattern Match with Wildcards


These tables define wildcard and wildcard combinations and show some       examples.


Wildcard Definition
.Any single digit
0 to 9,*,# Any specific character
[0-9]Any range or sequence of characters
*Modifier—match none or more occurrences
+Modifier—match one or more occurrences
?Modifier—match none or one occurrence




Wildcard Combination Definition
.*Any digit followed by none or more ocurrences. This is                     effectively anything, including null.
.+Any digit followed by one or more ocurrences. This is                     effectively anything, except null.
^$No digits, null

Actions

This Discussion

Related Content