10-18-2005 01:05 PM - edited 03-13-2019 10:55 AM
I want to add a translation-rule to strip digits from certain outgoing calls.
If, let's say, a user dials 15054611733 I want the call to go out as 4611733.
How do i go about doing this? I am using a 1760 router.
10-19-2005 10:07 AM
Hi
Try
voice translation-rule 1
rule 1 /^1505/ //
Then on your dial peer (assuming a VOIP dial-peer) use:
translate-outgoing called 1
If it's a POTS dial-peer, just match the 1505 bit with the destination-pattern command and it will be stripped automagically.
Aaron
11-18-2005 02:38 AM
Aaron,
I'm trying to work this out for a AS5350 but IOS 12.3(10) doesn't accept this. (
TMVS_PGW_E1(config-translate)#rule 1 /^103200/ //
Incorrect format for Translation Match Pattern
regular expression must be of the form ^(\^)?(\+)?([0-9,A-F.*%?#]+)$
Any suggestions ?
regards Bert
11-18-2005 07:18 AM
You may need to update your IOS, as the commands changed on the new IOS's.
But it is working for me on my 1760 router with IOS 12.2.15? Maybe it's different on the AS5350
I am translating the called number, but you can do the calling number buy changing the line "translate called 100" to "translate calling 100"
voice translation-rule 100
rule 1 /^1403/ //
!
voice translation-profile testy
translate called 100
!
dial-peer voice 201 voip
translation-profile outgoing testy
huntstop
destination-pattern 1403.T
session target ipv4:10.x.x.1
dtmf-relay cisco-rtp
fax rate 7200
ip qos dscp cs5 media
no vad
!
This strips 1403 for me and just sends out 7 digits.
Check out this link for a better understanding of the expressions.
Hope this gets you somewhere.
D
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