Dial-Peer with no port

Answered Question
Oct 14th, 2008

Hello people,

Recently, I posted a message asking if it was possible to create a dial-peer without specifying a port that works. I just created this inbound/outbound dial-peer and all my calls failed :

dial-peer voice 555774204 pots

application did_forward

incoming called-number 5557742023

destination-pattern 5557742023

direct-inward-dial

forward-digits 0

Now, if I add a port number it actually works:

dial-peer voice 555774204 pots

application did_forward

incoming called-number 5557742023

destination-pattern 5557742023

direct-inward-dial

forward-digits 0

port 0:D

I will appreciate any help.

I have this problem too.
0 votes
Correct Answer by a.gooding about 8 years 3 months ago

trunkgroups work fine. normally i used this to limit the amount of dial peers i configure. therefore, if i have 8 FXO ports, instead of creating DP for each port i create a trunk group assign the ports to the trunk group and then simply create the dial-peers and assign to the group instead of the port. its much cleaner. note that all the lines should be operational as ive noticed that if it is not you may have issues.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (3 ratings)
Loading.
slongewa Tue, 10/14/2008 - 11:46

From the dial-peer configuration guide:

"Calls cannot be routed through a voice gateway without at least one dial-peer being assigned to a voice port. This is what tells the router what physical connections will be routing traffic through the network."

Outside of this, the dial-peer configuration guide specifies that any dial-peer using the destination-pattern command, must also specify the port.

Have you tried removing the "destination-pattern" command to see if it works? I can't think of a time that I've ever configured a POTS dial peer without a port attached to it, so I would be interested to see what happens.

There's a couple ways to check and see if your dial-peer is working.

sh dial-peer voice summ

will show you the current state of your dial-peer in both the inbound and outbound directions.

debug voip dial-peer all

will allow you to look at the debug output and see where your dial-peers are being matched (if at all.)

CHRIS CHARLEBOIS Tue, 10/14/2008 - 11:54

Any outbound dial peer must include the destination for that call; ports for POTS dial peers and session targets for VoIP dial peers. Inbound dial peers can be matched on other criteria, but the outbound must indicate the next "hop".

guillermohurtado Wed, 10/15/2008 - 05:12

Thanks for your answer.

Is it a possible solution to specify a trunkgroup in the inbound/outbound dial-peer? for example:

dial-peer voice 555774204 pots

trunkgroup 110

application did_forward

incoming called-number 5557742023

destination-pattern 5557742023

direct-inward-dial

forward-digits 0

Thanks in advance.

CHRIS CHARLEBOIS Wed, 10/15/2008 - 07:05

I was not familiar with the trunkgroup command. My experience has been to create multiple dial-peers with preference numbers to simulate a trunkgroup. However, it appears as though this command does the same thing without all the repetition. It abstracts the ports into logical trunkgroups, which would be highly desirable if you are dealing with a large number of voice ports.

Correct Answer
a.gooding Wed, 10/15/2008 - 07:39

trunkgroups work fine. normally i used this to limit the amount of dial peers i configure. therefore, if i have 8 FXO ports, instead of creating DP for each port i create a trunk group assign the ports to the trunk group and then simply create the dial-peers and assign to the group instead of the port. its much cleaner. note that all the lines should be operational as ive noticed that if it is not you may have issues.

slongewa Fri, 10/17/2008 - 06:11

Agree fully here. I've found trunkgroups to be a great timesaver!

-Steve

Actions

This Discussion