09-12-2018 12:15 PM - edited 03-17-2019 01:27 PM
Hi Guys,
I am testing any calls and to specific numbers the voice translation-rule don´t work.
!
voice translation-rule 40
rule 2 /^0\([2-9].......\)$/ /\1/
rule 3 /^0\([79]........\)$/ /\1/
rule 4 /^0\(19.\)$/ /\1/
rule 5 /^0\(181\)$/ /\1/
rule 6 /^0\(911\)$/ /\1/
rule 7 /^0\(112\)$/ /\1/
rule 8 /^00\([1-9][1-9][2-9].......\)$/ /024\1/
rule 9 /^00\([1-9][1-9][2-9]........\)$/ /024\1/
rule 10 /^00\([4-6][1-9]9[6-9].......\)$/ /024\1/
rule 11 /^00\([1-37-9][1-9][79]........\)$/ /024\1/
rule 12 /^00\([38]00.......\)$/ /0\1/
rule 13 /^000\([1-9].*\)$/ /0024\1/
rule 14 /^0\(.*\)$/ /\1/
!
BERRINI_BR500_VGW#test voice translation rule 40 194
^
% Invalid input detected at '^' marker.
BERRINI_BR500_VGW#test voice translation-rule 40 194
194 Didn't match with any of rules
BERRINI_BR500_VGW#test voice translation-rule 40 192
192 Didn't match with any of rules
BERRINI_BR500_VGW#test voice translation-rule 40 181
181 Didn't match with any of rules
BERRINI_BR500_VGW#test voice translation-rule 40 112
112 Didn't match with any of rules
BERRINI_BR500_VGW#test voice translation-rule 40 911
911 Didn't match with any of rules
BERRINI_BR500_VGW#test voice translation-rule 40 08007260090
Matched with rule 14
Original number: 08007260090 Translated number: 8007260090
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
BERRINI_BR500_VGW#test voice translation-rule 40 03001007575
Matched with rule 14
Original number: 03001007575 Translated number: 3001007575
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
BERRINI_BR500_VGW#test voice translation-rule 40 135
135 Didn't match with any of rules
BERRINI_BR500_VGW#test voice translation-rule 40 47011515
47011515 Didn't match with any of rules
BERRINI_BR500_VGW#
Any have idea about this?
Thanks,
Regards,
Wilson
09-12-2018 12:19 PM
09-12-2018 12:26 PM
Hi Nipun,
Thanks a lot for Your contact. Sorry, but, I didn´t understood Your explanation. This rule are all external number and in my invironment the all external calls start with "0" zero. For example:
Emergency services: 19x, I need that dial 0 + 191
Local number: 23456789, I need that dial 0 + 23456789
Thanks,
Regards,
Wilson
09-12-2018 12:28 PM
09-12-2018 12:34 PM
Hi Nipun,
For example to rule 19x, 193 worked and 194 not worked, and both are number valids.
112, 911 not worked And I see that the rule are with the same format (I don´t know if the best word to explain this).
Stay clear now?
Regards,
Wilson
09-12-2018 12:41 PM
09-12-2018 12:49 PM
Hi Nipun,
As I told for any external calls I need put "0" (emergency services, Utility Services, local call, mobile, 0800, 0300)
Emergency Services and Utility Public Services always have 03 digits
Number that not work: 112, 911, 914, 135, 1xxx
I have the CUCM (not CME).
The call flow is:
IP Phone > CUCM > Gateway > PSTN
Thanks,
Regards,
Wilson
09-12-2018 01:07 PM
09-12-2018 02:57 PM
I'm not sure about putting '0' in front of all number which you dial especially the likes of 911 but surely you'd need something similar to:
IC-ISR001(cfg-translation-rule)#rule 99 /^\(...\)$/ /0\1/
IC-ISR001(cfg-translation-rule)#do test voice translation-rule 1 999
Matched with rule 99
Original number: 999 Translated number: 0999
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
09-13-2018 05:15 AM
Hi evlla1990,
Thanks a lot for Your contact. I can to do this test, but, as I told previously in Brazil the all external calls start with "0". I don´t have problem to local call, mobile phone, long distance, international calls, etc...
Regards,
Wilson
09-13-2018 07:12 AM
Let me know how you get on with that rule added to TR 40.
09-13-2018 07:21 AM
Hi evlaa1990,
The User dialed 0+xxx, when the call arrived the gateway, it strip the zero and forward the call to Carrier.
Thanks,
Regards,
Wilson
09-17-2018 07:57 AM
Did you get this resolved?
Are you saying even with the translation rule i sent over you dial 911 the translation rule adds 0 to make 0911, but then something is removing the 0 and sending only 911?
09-17-2018 08:20 AM
Hi evlaa1990,
To number 911 the Carrier told me that not will to worked, because, not is the number regulated in Brazil. To another call to number of 03 digits, the Carrier was waiting receive before number a tech prefix (I don´t know this information), after apply the tech prefix in the gateway the call to 03 digits start work.
Thanks,
Regards,
Wilson
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide