06-27-2007 09:06 AM - edited 03-14-2019 10:17 PM
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
06-27-2007 09:17 AM
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
06-27-2007 09:27 AM
Not to be pedantic :)
Rule above can be rewritten more concisely as:
rule 1 // /9/
This works because the // matches the "null string".
06-27-2007 09:33 AM
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
06-27-2007 09:53 AM
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
06-27-2007 09:57 AM
That was not my understanding of the operation of voice translation rules. I stand corrected.
Brandon
06-27-2007 10:06 AM
It worked just fine.
Thank you!
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: