How to create dial-peer that is similar to route pattern like this?

Answered Question
Feb 3rd, 2009
User Badges:

I have route pattern <font color=red>0[1234]</font> for urgent calls with MGCP gateways.


Now I have changed this numbering plan

from <font color=red>0[1234]</font> to <font color=red>#.10[1234]</font> with Predot Discard Digits for MGCP gateway.


But I also have H.323 gateways.


What right dial-peer should I use in this position?



The old dial-peer is below.

<b>

dial-peer voice 5 pots

tone ringback alert-no-PI

destination-pattern 0[1234]

no digit-strip

direct-inward-dial

port 0/0/0:15

</b>


How I should change it to receive same result that I described for Route Patter?




Correct Answer by Nicholas Matthews about 8 years 3 months ago

dial-peer terminator *



dial-peer voice 5 pots

tone ringback alert-no-PI

destination-pattern #10[1234]

forward-digits 3

direct-inward-dial

port 0/0/0:15



The # is the default terminator and would cause problems. You want 3 digits in this case, so you use forward-digits 3.


-nick

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Nicholas Matthews Tue, 02/03/2009 - 05:42
User Badges:
  • Red, 2250 points or more

dial-peer terminator *



dial-peer voice 5 pots

tone ringback alert-no-PI

destination-pattern #10[1234]

forward-digits 3

direct-inward-dial

port 0/0/0:15



The # is the default terminator and would cause problems. You want 3 digits in this case, so you use forward-digits 3.


-nick

webstd.design Tue, 02/03/2009 - 06:07
User Badges:

as I understood from this command dial-peer terminator * I should use #



Like this one dial-peer terminator #



Nicholas Matthews Tue, 02/03/2009 - 06:51
User Badges:
  • Red, 2250 points or more

You can try it - but I believe if you try using the terminator in your dial string, it may not act accordingly.


In this case we're changing the default terminator so that you can use it in your dial strings. I haven't tried it, so you may want to try it first without the change. You wouldn't need your command, because # is the default terminator.



hth,

nick

Actions

This Discussion