12-16-2009 07:33 AM - edited 03-15-2019 08:48 PM
I'm getting 8 digits from the Telco and we use 7, I'm having a hard time finding out how to remove the first digit.
Example - incoming DID number 47111309 extension number 7111309
Thanks for the help
12-16-2009 07:47 AM
Hi,
Use a voice translation-rule/profile and applyy it to an inbound dial-peer that is catching the DID or directly to the port (although this will trim it to 7 digits even when you are not in SRST).
Something like this:
voice translation-rule 1
rule 1 /4711..../ /711..../
voice translation-profile indid
translate called 1
dial-peer voice 1000 pots
incoming called .
direct-inward-dialing
translation-profile in indid
HTH
Art
12-16-2009 07:52 AM
I have tried that but I'm getting an error
(cfg-translation-rule)#rule 1 /4711..../ /711..../
^
% Invalid input detected at '^' marker.
12-16-2009 07:56 AM
Duh!
Sorry I'm rusty..
Try
rule 1 /4711\(....\)/ /711\1/
Art
12-16-2009 08:18 AM
Worked perfect, thanks
12-16-2009 08:25 AM
np - glad to hear it helped
Cheers!
Art
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: