Translating numbers beginning with +

Answered Question
Oct 4th, 2010
User Badges:

Hi,


I have a problem with a AS5400. I'm trying to translate incoming numbers that start with +, e.g. +4631123456.

The rule look like this:


voice translation-rule 3

rule 1 /^\+46/ /0/ type any national plan any isdn
voice translation-profile sip2pstn
translate called 3


The outcome I want is 031123456. The command    test voice translation-rule 3 +4631123456   shows that the rule works.

The problem is that the + seems to disappear right before the translation rule is applied, and added afterwards if there isn't a match.

If i remove the + from the rule I get 031123456, but that isn't a perfect solution, since I then can't match local or special numbers, e.g. 112 or 911.


What is removing the +, and how can I stop it from doing that?


/ Oscar Ekeroth

Correct Answer by paolo bevilacqua about 6 years 7 months ago

At the present, translation rules do not support the + character.

So, you can only make them work based on number lenght, patterns, type, etc.

The other alternative, would be a custom TCL/IVR script, that can do anything.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Correct Answer
paolo bevilacqua Mon, 10/04/2010 - 03:23
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

At the present, translation rules do not support the + character.

So, you can only make them work based on number lenght, patterns, type, etc.

The other alternative, would be a custom TCL/IVR script, that can do anything.

Zmegolaz_ Mon, 10/04/2010 - 04:06
User Badges:

Thank you for your fast answer.


I have some experience with TCL, so that might be a solution. But I've never used it in a Cisco gateway, so do you know any good help site where I might find examples of similar scripts?


/ Oscar Ekeroth

paolo bevilacqua Mon, 10/04/2010 - 04:14
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

I personally write TCL/IVR scripts for any purpose

www.ciscoscripts.com


The standard reference and examples, are the Cisco TCL/IVR documentation.

paolo bevilacqua Mon, 10/04/2010 - 03:31
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

I was also thinking you could try something with SIP profiles, but have no specific expereince.


Thanks for the nice rating and good luck!

Actions

This Discussion

Related Content