I have a 2811 with PRI running SRST.
My telephone number range is 555-389-0800. I am recieving all 10 digits from telco, and am using 5 digit extensions. Since the first digit is a 9, I created a translations pattern in CCM so that extensions are 80800 rather than 90800. All works fine except I need to configure SRST.
Can anybody give me an example of a config translation rule for incoming that would ignore the first five digits and translate to 80800? Thanks
Try this one...
voice translation-rule 5
rule 1 /^555389\(....\)/ /8\1/
Use show voice translation-rule 5 xxxxxxxxxx
to verify.. x's are your 10d phone number
Should work a treat.
The /^555389 means match any number starting with 555389
the \(....\) means get the next 4 digits and treat them as a sub string
then the 2nd part is your replacement
8 to insert the 8
\1 to carry the substring from the matched pattern (your last 4 digits)