cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
621
Views
10
Helpful
6
Replies

Translation Rule

acarby1
Level 1
Level 1

I am trying to fully understand what I'm missing or need to modify with my currently translation-rule.  I'm trying to resolve an issue where incoming calls show a 9 at the beginning.  Here's the scenario...

 

Customer calls in to one of our DIDs.  The number that shows on the phone screen is 91234567890.  We want to remove the 9.  Here is the translation-rule.

 

voice translation-rule 201
rule 1 /^BAA\(.*\)/ /8\1/
rule 2 /^1\(.*\)/ /91\1/
rule 3 /^\+\(.*\)/ /9011\1/
rule 4 /^\(1.*\)/ /9\1/
rule 5 /\(.*\)/ /9\1/

1 Accepted Solution

Accepted Solutions

Btw Is not the 9 added to the calling number to make it possible to call back to the caller? What specifically is it that you’re customer want to achieve? Do they want to rid the 9 all together, knowing that the call can not be returned to the caller without modification, or do they not just want it to show in the display in the ringing state, but still be kept in the received or missed calls directory’s on the phone? Each option is doable, but have different configuration elements for how to achieve it.



Response Signature


View solution in original post

6 Replies 6

Rule number  5 add 9 before any number and 4 add 9 before any number starting with 1 but Just with translation rule we cannot answer your question. Need profile details and dial-peer to answer your question.

 

 



Response Signature


Look at what the telco sends you as the calling number, depending on what type of connection you use that would be done with different type of debugs, or just do a debug voip ccapi inout as that would fit the most options there is. Then in the gateway do a test voice translation 201 and the number that the telco send so you. For example if the telco sends 1234567890 to you do this test voice translation 201 1234567890.

This would show what rule is the rule set 201 that is used to modify the calling number. This would give an idea of what to change. Out of the rules you have 2, 4 or 5 would likely be the once that you should look at.



Response Signature


Your voice translation rule test result.

 

jlrvg#sh run | sec voice tran

voice translation-rule 201
rule 1 /^BAA\(.*\)/ /8\1/
rule 2 /^1\(.*\)/ /91\1/
rule 3 /^\+\(.*\)/ /9011\1/
rule 4 /^\(1.*\)/ /9\1/
rule 5 /\(.*\)/ /9\1/

jlrvg#test voice translation-rule 201 1234567890
Matched with rule 2
Original number: 1234567890 Translated number: 91234567890
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none

 

jlrvg#test voice translation-rule 201 123
Matched with rule 2
Original number: 123 Translated number: 9123
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none

 

jlrvg#test voice translation-rule 201 23456
Matched with rule 5
Original number: 23456 Translated number: 923456
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none

 

jlrvg#test voice translation-rule 201 789456

Matched with rule 5
Original number: 789456 Translated number: 9789456
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none

 

Test result removing Rule 5
Rule 4 add 9 if the number starts with 1. And Rule 2 add 91 and remove 1 if the number start with 1 .

 

voice translation-rule 201
rule 1 /^BAA\(.*\)/ /8\1/
rule 2 /^1\(.*\)/ /91\1/
rule 3 /^\+\(.*\)/ /9011\1/
rule 4 /^\(1.*\)/ /9\1/
jlrvg#test voice translation-rule 201 23456
23456 Didn't match with any of rules


jlrvg#test voice translation-rule 201 789456
789456 Didn't match with any of rules


jlrvg#test voice translation-rule 201 23456
23456 Didn't match with any of rules


jlrvg#test voice translation-rule 201 123
Matched with rule 2
Original number: 123 Translated number: 9123
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none

 

jlrvg#test voice translation-rule 201 1234567890
Matched with rule 2
Original number: 1234567890 Translated number: 91234567890
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none

 

 

 



Response Signature


Btw Is not the 9 added to the calling number to make it possible to call back to the caller? What specifically is it that you’re customer want to achieve? Do they want to rid the 9 all together, knowing that the call can not be returned to the caller without modification, or do they not just want it to show in the display in the ringing state, but still be kept in the received or missed calls directory’s on the phone? Each option is doable, but have different configuration elements for how to achieve it.



Response Signature


They don't want it to show on the display in the ringing state, is the best way to put it.

Then you would need to use calling transformations patterns in CUCM to drop the 9. This should result in the 9 not showing in ringing state, but keep it in the directory’s on the device.

Please see this article by the legend Vik Mahli over at Collabcert for more details. https://blog.collabcert.com/ucm/understanding-the-5-uses-of-calling-party-transformation-pattern-in-ucm/



Response Signature