Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

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

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

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

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

Hall of Fame Super Gold

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

Not to be pedantic :)

Rule above can be rewritten more concisely as:

rule 1 // /9/

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

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

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

Hall of Fame Super Gold

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

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

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

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

Brandon

New Member

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

It worked just fine.

Thank you!

149
Views
5
Helpful
6
Replies
CreatePlease to create content