10-11-2006 07:46 AM
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
10-11-2006 10:40 AM
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
10-11-2006 11:33 AM
thanks for the post i will test it and i will send update..
10-13-2006 07:25 AM
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..
10-13-2006 01:29 PM
Hello,
try to debug it. You will see the translation result afrer:
debug translation detail
and dialpeer matching process:
debug dialpeer
Regards,
Vladimir
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