08-29-2013 03:58 AM - edited 03-16-2019 07:06 PM
Dears
I want to configure a translation-pattern
for example
if extension 5555 dialed 66
it will automatically calls 123456789
in the voice gateway when i debug voip ccapi inout
the source number is 5555
how can i change it to 6666 so
if any one dial 66
in the debug result the source number will be 6666 instead of 5555
Thanks in advance
08-29-2013 04:31 AM
voice translation-rule 1
rule 1 /^5555/ /6666/
voice translation-profile CLI
translate calling 1
dial-peer voice 1 voip
destination-pattern 66
translation-profile outgoing CLI
Please rate all useful posts
"opportunity is a haughty goddess who waste no time with those who are unprepared"
08-29-2013 05:08 AM
HI
Maybe my question was not clear
The full scenario as follows
I created a translation-pattern that points to 123456789 if anyone dial 66
All extensions start with 5
in the voice gateway i did
voice translation-rule 5
rule 1 /5.../ /SIP NUMBER1/
voice translation-profile Admin-OUT
translate calling 5
dial-peer voice 111 voip
description **Outgoing Calls**
translation-profile outgoing Admin-OUT
etc.....
the current situation if anyone dial 66 he will call 123456789 through a SIP NUMBER1
NOW
What can i do if i want to let all extensions dial-plan to be the same but if any one dial 66 he will call 123456789 through SIP NUMBER2
Number 2 means any other number
5... calls outside through SIP NUMBER1
when 5... dial 66 the call will go through NUMBER2
08-29-2013 05:14 AM
You cant do that. Unless you are dialling a different number...
Please rate all useful posts
"opportunity is a haughty goddess who waste no time with those who are unprepared"
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