cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
273
Views
0
Helpful
3
Replies

Translation-Pattern tiny issue

Zaher Juha
Level 1
Level 1

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

3 Replies 3

Ayodeji Okanlawon
VIP Alumni
VIP Alumni

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"

Please rate all useful posts

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

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"

Please rate all useful posts