02-06-2020 11:39 PM
Hi Everyone,
is possible to create translation rule for incoming call from mobile phone number with prefix +62 change into 0 number?
Solved! Go to Solution.
02-07-2020 01:39 AM
Here's the whole thing ...
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#voice translation-rule 10
R1(cfg-translation-rule)#rule 5 /^\+62/ /0/
R1(cfg-translation-rule)#
R1#sh run | s translation-rule voice translation-rule 10 rule 5 /^\+62/ /0/
R1#test voice translation-rule 10 +622180899217 Matched with rule 5 Original number: +622180899217 Translated number: 02180899217 Original number type: none Translated number type: none Original number plan: none Translated number plan: none
02-07-2020 12:06 AM
To remove "+62" from the beginning, and replace with "0", for example to translate +622180899217 into 02180899217
#rule 5 /^\+62/ /0/
02-07-2020 01:04 AM
Hi Tony,
i tried that command, but i got this notification
Incorrect format for Translation Match Pattern
regular expression must be of the form ^(\^)?(\+)?([0-9,A-F.*%?#]+)$
Invalid match pattern string input /^\+62/
02-07-2020 01:39 AM
Here's the whole thing ...
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#voice translation-rule 10
R1(cfg-translation-rule)#rule 5 /^\+62/ /0/
R1(cfg-translation-rule)#
R1#sh run | s translation-rule voice translation-rule 10 rule 5 /^\+62/ /0/
R1#test voice translation-rule 10 +622180899217 Matched with rule 5 Original number: +622180899217 Translated number: 02180899217 Original number type: none Translated number type: none Original number plan: none Translated number plan: none
02-07-2020 01:47 AM
Hi, Tony
idk first i try that command it not works. but now it works.
thank's for your help
02-07-2020 05:32 AM
+5 to Tony for correct answer.
Don't forget to apply the translation rule to translation profile and then apply the profile to dial-peer.
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