03-05-2012 07:04 AM - edited 03-16-2019 09:56 AM
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
03-05-2012 09:26 AM
Easiest way is to use dialplan-pattern under SRST:
call-manager-fallback
dialplan-pattern 1 202555.... extension-length 7 extension-pattern 000....
HTH,
Chris
03-22-2012 02:52 AM
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...
03-22-2012 05:29 AM
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
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