CME - Appending a digit at the beginning of a calling number

Unanswered Question
Jun 27th, 2007
User Badges:

Hi!


How can I append a digit at the beginning of a calling number?

I would like users to see in their phones the digit "9" before the calling number when receiving an external call.


Thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Brandon Buffin Wed, 06/27/2007 - 09:17
User Badges:
  • Purple, 4500 points or more

One option is to use a voice translation rule/profile, such as:


voice translation-rule 1

rule 1 /\(.*\)/ /9\1/


voice translation-profile 1

translate calling 1


dial-peer voice 1 pots

incoming called-number .

translation-profile incoming 1


Hope this helps. If so, please rate the post.


Brandon

paolo bevilacqua Wed, 06/27/2007 - 09:27
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

Not to be pedantic :)

Rule above can be rewritten more concisely as:


rule 1 // /9/


This works because the // matches the "null string".

Brandon Buffin Wed, 06/27/2007 - 09:33
User Badges:
  • Purple, 4500 points or more

I'm not sure that // works for null. If it does, this rule would replace the string with 9, so you end up with a calling number of 9, not 9 followed by the original calling number.


Brandon

paolo bevilacqua Wed, 06/27/2007 - 09:53
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

It works :) The match is made on the null string only. The rest of the string, not being matched, is appended unchanged:


ccme#sh voice translation-rule 802

Translation-rule tag: 802


Rule 1:

Match pattern:

Replace pattern: 39

Match type: none Replace type: none

Match plan: none Replace plan: none


ccme#test voice translation-rule 802 5551234

Matched with rule 1

Original number: 5551234 Translated number: 395551234

Original number type: none Translated number type: none

Original number plan: none Translated number plan: none


Brandon Buffin Wed, 06/27/2007 - 09:57
User Badges:
  • Purple, 4500 points or more

That was not my understanding of the operation of voice translation rules. I stand corrected.


Brandon

Actions

This Discussion