cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
459
Views
5
Helpful
6
Replies

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

abartolomeu
Level 1
Level 1

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

6 Replies 6

Brandon Buffin
VIP Alumni
VIP Alumni

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

Not to be pedantic :)

Rule above can be rewritten more concisely as:

rule 1 // /9/

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

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

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

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

Brandon

It worked just fine.

Thank you!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: