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

SRST Voice translation-rule

CiscoRunner
Level 1
Level 1

Hi Folks,

Need some help with a Voice-translation rule when SRST mode is activated on a gateway, here is the scenario

The inbound called party number is

When a call comes in I want to strip everything except the last 4 digits and prepend on my site code for the office which consists of 3 numbers. So for example, if a call comes to the DID number 212 123 4444, I want to strip everything and just use the 4444. Then prepend on 000 so that the new translated number becomes 0004444

The last query I have is what about when a call comes in locally and the called party number this time is just 123 444. So I need a rule that covers all possibilities i.e. strips everything except the last 4 digits and prepends on my site code...

Anyone help me out here?

Many thanks

3 Replies 3

Chris Deren
Hall of Fame
Hall of Fame

Easiest way is to use dialplan-pattern under SRST:

call-manager-fallback

dialplan-pattern 1 202555.... extension-length 7 extension-pattern 000....

HTH,

Chris

Anyone else got any suggestions for a translation rule that will strip all but last 4 digits and prepend another 3...?

Not had much luck so far finding the right expression...

Here is a rule that will do exactly what my posted dialplan-pattern does:

voice translation-rule 1

rule 1 /202555\(....\)/ /000\1/

any number in 202555XXXX will be changed to 000XXXX

HTH,

Chris