Multiple prefixe options in dial-peer?

Unanswered Question
Jan 18th, 2008

Is it possible to have multiple prefix options in a dial-peer? If so, can someone explain the logic on how correct prefix would be selected. In studying for cert I came accross below dial-peer. Please help me make sense of logic on how this would work. If you can give an example that would be greatly appreciated.

dial-peer voice 7844 pots

destination-pattern 7844

port 2/0:0

forward-digits 0

prefix 4429,4977,66

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
pcameron Fri, 01/18/2008 - 16:52

The can only be a single prefix. In this case, the comma character represents a pause, or delay of around 250msec. It does not mean punctuation seperator.

So for your example, the dial peer would match on the destination pattern of 7844. By default, a POTS dial peer will strip any explicitly matched digits - if the actual digit string was 7844, nothing would be sent out the voice port.

Which makes the next command 'forward-digits 0' irrelevant, since there will be no matched digits sent out the voice port!

The prefix command is used to prefix the digit string to any digits that would be sent out the voice port after matching on the destination pattern.

So in this case, the actual digit string that goes out the port would be 4429<250msec pause>4977<250msec pause>66

Sometimes a pause is needed to allow the recieving device to buffer digits, or play a new tone, or give it time to route the call before accepting IVR or DID digits.

Maybe a better example would be this -

dial-peer voice 1234 pots

destination-pattern 8446....

port 0/0/0

prefix 011,,,,6128446

In this case , if the called number 84467800 matches on dial peer 1234, we would match on all digits, send them out port 0/0/0 , but first we would dial 011, wait 1 second, then dial 612 and re-add the 8446 plus the 7800 string that matched via the '.' regular expression.

kshalavin Fri, 02/01/2008 - 06:57

Hi Paul.

Is there any possibilities to add a pause with MGCP configuration between CCM and VoIP GW?

I need to wait a new tone signal after first digit.

Thanks.

Regards.

pcameron Fri, 02/01/2008 - 16:53

Unfortunately with MGCP, there is no way to add a pause in the digit string. You will most likley have to use H323 and configure the ',' character under the prefix command as a 250 msec pause -

dial-peer voice 10 pots

destination-pattern 1800.......

port 0/0/0

prefix 1,,,,800

this would add a 1 second pause between the 1 and the rest of the digit string.

Actions

This Discussion