cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
770
Views
5
Helpful
5
Replies

how to create translation rule sign "+62" to "0"

Hi Everyone,

 

is possible to create translation rule for incoming call from mobile phone number with prefix +62 change into 0 number?

1 Accepted Solution

Accepted Solutions

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

View solution in original post

5 Replies 5

TONY SMITH
Spotlight
Spotlight

To remove "+62" from the beginning, and replace with "0", for example to translate +622180899217 into 02180899217

#rule 5 /^\+62/ /0/

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/

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

Hi, Tony

 

idk first i try that command it not works. but now it works. 

thank's for your help

+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.