cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2285
Views
0
Helpful
3
Replies

Translation-rule - strip digits

vanagon2tdi
Level 1
Level 1

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.

3 Replies 3

Aaron Harrison
VIP Alumni
VIP Alumni

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

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

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

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.

http://www.cisco.com/en/US/customer/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml#simple

Hope this gets you somewhere.

D