cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
691
Views
0
Helpful
4
Replies

Add digit to the dialed number..

xtam1
Level 1
Level 1

Hi all,

i would like to be able to add any digit let's say 5 before the dialed number recevied by the POTs call leg and then remove that number (5) after matching it to the outbound call leg PSTN in my case i would like to strip that digit and forward the original number..

My dial-peer config:

!

dial-peer voice 3 pots

tone ringback alert-no-PI

description "PRI 1 to PBX"

preference 1

destination-pattern .T

progress_ind setup enable 3

progress_ind alert enable 8

no digit-strip

direct-inward-dial

port 2/1:15

!

!

dial-peer voice 4 pots

description "PSTN"

preference 1

destination-pattern .T

no digit-strip

port 2/0/1:15

forward-digits all

!

I need to insert that digit just to be able to match the calls coming from the port 2/1:15 to be dialed out to the PSTN via port 2/0/1:15

So what are the modification needed to the above dial peers?

regards

4 Replies 4

vbilik
Level 1
Level 1

Hi,

try to use translation rule.

voice translation-profile ADD5

translate called 1

voice translation-rule 1

rule 1 /^\(.*\)/ /5\1/

dial-peer voice 3 pots

...

translation-profile outgoing ADD5

dial-peer voice 4 pots

...

destination-pattern 5

digit-strip

thanks for the post i will test it and i will send update..

Hello,

it did not work, i mean the translation is okay but in dial peer 4 it needs to match the original dialed number not the translated (with the digit 5 upfront) so after applying this setting nothing was matched to go out to the PSTN..

So what do you think is still needed?

Regards..

Hello,

try to debug it. You will see the translation result afrer:

debug translation detail

and dialpeer matching process:

debug dialpeer

Regards,

Vladimir