04-12-2018 05:53 AM - edited 03-17-2019 12:36 PM
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 ?
Solved! Go to Solution.
04-16-2018 06:55 AM
You can try something like this
/^\(..\)/ /8\1/
04-12-2018 08:31 AM
Please do a debug voice translation and place an inbound call (without the num-exp in place). Then post the results.
04-12-2018 08:31 AM
04-15-2018 12:13 AM
But the test showed that the translation is successful but the call is fail
when I applied also this rule, The call fails again
04-15-2018 03:46 AM
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?
04-15-2018 03:53 AM
So, If this rule isn't correct, What is the right rule for this scenario?
04-15-2018 04:00 AM - edited 04-15-2018 04:02 AM
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
04-15-2018 04:12 AM
Thanks, I will test and feedback you.
04-16-2018 05:00 AM
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..
04-16-2018 06:55 AM
You can try something like this
/^\(..\)/ /8\1/
04-16-2018 07:54 AM
Thanks It works fine and I also tried this rule and worked fine
rule 1 // /8/
04-16-2018 08:20 AM
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&/
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