×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

Add digit to the dialed number..

Unanswered Question
Oct 11th, 2006
User Badges:

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


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
vbilik Wed, 10/11/2006 - 10:40
User Badges:

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



xtam1 Wed, 10/11/2006 - 11:33
User Badges:

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

xtam1 Fri, 10/13/2006 - 07:25
User Badges:

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..

vbilik Fri, 10/13/2006 - 13:29
User Badges:

Hello,

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


debug translation detail


and dialpeer matching process:

debug dialpeer


Regards,

Vladimir

Actions

This Discussion