Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

SRST Translation Rule Inbound

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

1 ACCEPTED SOLUTION

Accepted Solutions
Silver

Re: SRST Translation Rule Inbound

Hi,

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)

Cheers,

Tim

5 REPLIES

Re: SRST Translation Rule Inbound

voice translation-rule 1

rule 1 /55538908../ /808../

voice translation-profile SRST-IN

translate called 1

voice-port x/x/x:23

translate called SRST-IN

Hope that helped.

Community Member

Re: SRST Translation Rule Inbound

Hmmm, I am getting a syntax error on this line

rule 1 /55538908../ /808../

at the /8 mark

thanks

Community Member

Re: SRST Translation Rule Inbound

Router(cfg-translation-rule)#rule 1 /55538908../ /808../

^

Re: SRST Translation Rule Inbound

OK...Im still somewhat new to translation rules, but if you have maybe 10 or 15 numbers at that site, you can do one to one translations, for example

voice translation-rule 1

rule 1 /5553890800/ /80800/

rule 2 /5553890801/ /80801/

rule 3 /5553890802/ /80802/

rule 4 /5553890803/ /80803/

and so on and so forth...then:

voice translation-profile SRST-IN

translate called 1

voice-port x/x/x:23

translate called SRST-IN

As I said before, if you have a large number of extensions at the site in question this may not work for you. But if you dont have that many extensions to translate you can give the above scenario a try.

Hope that helped.

Silver

Re: SRST Translation Rule Inbound

Hi,

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)

Cheers,

Tim

236
Views
0
Helpful
5
Replies
CreatePlease to create content