cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
844
Views
10
Helpful
11
Replies

Translation Rule

Ahmed habib
Level 3
Level 3

Hello,

I want to translate the DID number 35369750 to inbound extension 850 

I applied this rule and voice translate profile under the port and tried voice translation  rule test and it translated ok but when I tried a call it failed and get success only when I applied num expansion 50 850 command

Can anyone help me with that case ?

/^697\(.*\)/ /8\1/
1 Accepted Solution

Accepted Solutions

You can try something like this

/^\(..\)/ /8\1/

Please rate all useful posts

View solution in original post

11 Replies 11

Please do a debug voice translation and place an inbound call (without the num-exp in place). Then post the results.

R0g22
Cisco Employee
Cisco Employee
That translation rule will match numbers starting with 697. Your DID starts with 353.

But the test showed that the translation is successful but the call is fail

when I applied also this rule, The call fails again

/^50/ /850/
Can you tell me the right rule for this scenario.

Which test are you referring to. Your rule definition states that anything beginning with 50. But your DID begins with 353..(35369750), so how do you expect it to match?

Please rate all useful posts

So, If this rule isn't correct, What is the right rule for this scenario?

What is the number that is presented to your gateway from your provider? If its this..

35369750

Then thats the number you need to tel the gateway to change

rule 1 /^35369750/ /850/

 

If your provider is not sending the first 3 digits, then this rule is correct

/^697\(.*\)/ /8\1/

It all depends on what us been sent to you. If you are using E1/T1 PRI you can use debug isdn q931 to verify the digits you are receiving

Please rate all useful posts

Thanks, I will test and feedback you.

The provider sends the last two digits only
Is there any translation rule in one command can be applied to satisfy all the range

Note: I have the range 353697.. and I want to translate it to 8..

You can try something like this

/^\(..\)/ /8\1/

Please rate all useful posts

Thanks It works fine and I also tried this rule and worked fine

rule 1 // /8/

Ahmed -

 

Be careful of using // as your match string rather than /^\(..\)/ as was suggested.

 

Your version would prepend an 8 to everything. The other way would prepend an 8 to anything that has at least two digits. I would suggest making your match string /^\(..$\)/ to make it exactly a 2-digit number and nothing else.

 

rule 1 /^\(..$\)/ /8&/