Showing results for 
Search instead for 
Did you mean: 

Preference on Dial-Peers


Dear Netpros,

We have a Cisco AS5350 being used for termination in Laos. This gateway is connected to 4 E1s currently. Now we have a gateway to gateway setup with some customers whereas gatekeeper/H323 Proxy to gateway setup with the rest of the customers. Now we have configred the "preference" command on the dial-peer of each customer. With this command already setup does it mean that if the calls from a particular customer, who has first preference on the first E1, fills up the first E1 then the calls will automatically go to the second E1? If a particular call of a customer lands on the 1st E1 and if the channels on the 1E1 are all occupied then will the same call be transferred to the second E1? How does the gateway handle incoming calls based on the preference set on each dial-peer for each customer?

Any help in this area would be highly appreciated.



Senior Project Researcher

PP-Ontime Co., Ltd.

Cellular ~ 669-2047331



Preferences on dial peers are evaluated on outgoing call legs. For POTS dial-peers, the dial-peer hunting is done automatically. Calls are routed in the first phase by using the dial-peer with the lower preference and then using the dial-peers with a higher preference. Thus you can send all calls to a specific destination to one E1, when this one is full calls, will be routed to a second one if a dial-peer with a higher preference is found.

The incoming traffic is not handled based on preference on dial-peers but on different criteria (incoming called-number, answer-address etc...)

Well I would say that incoming traffic is routed via the other side of the E1. The originating side.

It is not very clear to me what the question is.

Just to help you understanding the IOS call processing you can have a look on those detailed documents:




I am trying to work around with my as5800 the following call flow :

customer---->telco house---->as5800------>Telco house

<232....> <160221>

This I want to do by sharing same E1 PRI for both inbound and outbound dial-peer.The config I did for dial-peer is :

translation-rule 1

rule 0 2055 160221

dial-peer voice 1 pots

numbering-type international

destination-pattern 2055

translate-outgoing called 1

port 1/0/2:D


dial-peer voice 2 pots

incoming called-number 2172721111

I dont have any voice feature card in as5800 and presently it used for only internet dial up access and no voice application.

The information I got from cisco site is :

"call hairpinning without the need of a Voice Feature Card (and its digital signal processor) is available only on the Cisco AS5800"

Till now no success for me.

The isdn q931 debug is

107472: 9w5d: ISDN Se1/0/2:15: RX <- SETUP pd = 8 callref = 0x7097

107473: 9w5d: Sending Complete

107474: 9w5d: Bearer Capability i = 0x8090A3

107475: 9w5d: Channel ID i = 0xA98394

107476: 9w5d: Progress Ind i = 0x8283 - Origination address is non-ISDN

107477: 9w5d: Calling Party Number i = 0x2183, '2172721111', Plan:ISDN,


107478: 9w5d: Called Party Number i = 0x81, '2055', Plan:ISDN, Type:Unkn


107479: 9w5d: ISDN Se1/0/2:15: TX -> RELEASE_COMP pd = 8 callref = 0xF097

107480: 9w5d: Cause i = 0x80AF - Quality of service unavailable

Pls help.

thanks and regds,


I got the problem.

You got a dial-peer matching problem:

dial-peer voice 2 pots

incoming called-number 2172721111 <-means DNIS not ANI!!!

Your call COMES FROM "2172721111" and NOT GOING TO "2172721111"!!!

Please have a look on the documents recommended already and try to use:

dial-peer voice 2 pots

incoming called-number 2055


answer-address 2172721111

and also add

port 1/0/2:D

Just be SURE you are matching correctly the INCOMING DIAL PEER.

Good luck