cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Community Helping Community

282
Views
0
Helpful
4
Replies
Beginner

Outgoing Dial-peer

Hello everyone,

I have a question about selection of outgoing dial-peer and strange behavior. This is my current config(CME=8.6):
R1#sh dial-peer voice summary
dial-peer hunt 0
             AD                                    PRE PASS                OUT
TAG    TYPE  MIN  OPER PREFIX    DEST-PATTERN      FER THRU SESS-TARGET    STAT PORT    KEEPALIVE
20001  pots  up   up             30022$             0                           50/0/1
20002  pots  up   up             3002$              0                           50/0/2
5      voip  up   up             2T                 0  syst ipv4:192.168.2.2    
15     voip  up   up             2...               0  syst ipv4:192.168.2.2    
R1#
!
dial-peer voice 5 voip
 destination-pattern 2T
 session protocol sipv2
 session target ipv4:192.168.2.2
!
dial-peer voice 15 voip
 destination-pattern 2...
 session protocol sipv2
 session target ipv4:192.168.2.2
!

When I am calling 200123424 (onhoook&dial or offhook), but it's cutting to 2001 and NO IDT.
Both dial-peers are used from time to time and it cuts to 2001 even with dial-peer 5.

R1#show voice call status                       
CallID     CID  ccVdb      Port        Slot/DSP:Ch  Called #   Codec    MLPP Dial-peers
0x3        11EE 0x31DB8858 50/0/2.0                 2002       g729r8   20002/5
1 active call found

R1#show voice call status
CallID     CID  ccVdb      Port        Slot/DSP:Ch  Called #   Codec    MLPP Dial-peers
0x9        1200 0x31DB8858 50/0/2.0                 2001       g729r8   20002/15
1 active call found

When I removed dial-peer 15, I was able to call 200123424 and it was IDT. What is the logic here? How dial-peer 15 can influence on dial-peer 5 :)?
Thank you in advance.

4 REPLIES 4
Rising star

This is the order of

This is the order of preference for dial-peer hunt 0 which you have.Longest match in phone number, explicit preference, random selection.

In this case as when you dial 2001XXXXX soon as 2001 is matched against 2... pattern it is taking that dial-peer.

If you dial only 2001 then  both dial-peer have a match and it is random selection.thanks

Beginner

Good day Deepak,

Good day Deepak,

thank you for you reply.

<< when you dial 2001XXXXX soon as 2001 is matched against 2... pattern it is taking that dial-peer.

I would agree with you, if I had two patterns: 2... and 2........  In my case I have one pattern: 2T, so I expect to see IDT after each digit.  But I have immediately dialing to 2001 after 4 digit.

<<If you dial only 2001 then  both dial-peer have a match and it is random selection

In my case I see random selection in case of dialing 2001XXXXX (onhook,dial) as well.

Anyway, thank you for your comments.

--

Dmitry

Hall of Fame Cisco Employee

Try 2...$

Try 2...$

HTH

java

if this helps, please rate
Highlighted
Beginner

Good day Jaime, thank you for

Good day Jaime, thank you for your message.
Let me give you more information.


R1#sh run | sec dial-peer
dial-peer voice 5 voip
 destination-pattern 2T
 session protocol sipv2
 session target ipv4:192.168.2.2
dial-peer voice 15 voip
 destination-pattern 2...$
 session protocol sipv2
 session target ipv4:192.168.2.2

R1#

Now, any time I call to 2001XXXX, it used only dial-peer 15 and terminate call on dn=2001:

Jul 13 06:59:17.139: ephone-2[1/2][SEP54781AE10097]:OFFHOOK with called party 20015555
Jul 13 06:59:17.139: ephone-2[1/2][SEP54781AE10097]:Fake redial to 20015555
Jul 13 06:59:17.139: ephone-2[1/2][SEP54781AE10097]:Normal ReDial press 20015555 line 1

I don't understand the logic in this case of overlapping.

It has to use dial-peer 5 for enblock, and in case of dialling in off-hook mode - IDT.

But when I have more specific dial-peer 15, it is just ignore another dial-peer 5 with T-symbol.

R1#debug voice dialpeer inout
voip dialpeer inout debugging is on
R1#
Jul 13 06:51:37.131: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Calling Number=3002, Called Number=, Voice-Interface=0x2C11DC3C,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOICE, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
Jul 13 06:51:37.131: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=20002
Jul 13 06:51:37.131: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0
Jul 13 06:51:37.547: //-1/142000AB8056/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=2, Peer Info Type=DIALPEER_INFO_SPEECH
Jul 13 06:51:37.547: //-1/142000AB8056/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=2
Jul 13 06:51:37.547: //-1/142000AB8056/DPM/dpMatchPeersCore:
   Result=Partial Matches(1) after DP_MATCH_DEST
Jul 13 06:51:37.547: //-1/142000AB8056/DPM/dpMatchSafModulePlugin:
   dialstring=2, saf_enabled=1, saf_dndb_lookup=0, dp_result=1
Jul 13 06:51:37.547: //-1/142000AB8056/DPM/dpMatchPeersMoreArg:
   Result=MORE_DIGITS_NEEDED(1)
Jul 13 06:51:37.747: //-1/142000AB8056/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=20, Peer Info Type=DIALPEER_INFO_SPEECH
Jul 13 06:51:37.747: //-1/142000AB8056/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=20
Jul 13 06:51:37.747: //-1/142000AB8056/DPM/dpMatchPeersCore:
   Result=Partial Matches(1) after DP_MATCH_DEST
Jul 13 06:51:37.747: //-1/142000AB8056/DPM/dpMatchSafModulePlugin:
   dialstring=20, saf_enabled=1, saf_dndb_lookup=0, dp_result=1
Jul 13 06:51:37.747: //-1/142000AB8056/DPM/dpMatchPeersMoreArg:
   Result=MORE_DIGITS_NEEDED(1)
Jul 13 06:51:37.947: //-1/142000AB8056/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=200, Peer Info Type=DIALPEER_INFO_SPEECH
Jul 13 06:51:37.947: //-1/142000AB8056/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=200
Jul 13 06:51:37.947: //-1/142000AB8056/DPM/dpMatchPeersCore:
   Result=Partial Matches(1) after DP_MATCH_DEST
Jul 13 06:51:37.947: //-1/142000AB8056/DPM/dpMatchSafModulePlugin:
   dialstring=200, saf_enabled=1, saf_dndb_lookup=0, dp_result=1
Jul 13 06:51:37.947: //-1/142000AB8056/DPM/dpMatchPeersMoreArg:
   Result=MORE_DIGITS_NEEDED(1)
Jul 13 06:51:38.147: //-1/142000AB8056/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=2001, Peer Info Type=DIALPEER_INFO_SPEECH
Jul 13 06:51:38.147: //-1/142000AB8056/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=2001
Jul 13 06:51:38.147: //-1/142000AB8056/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
Jul 13 06:51:38.147: //-1/142000AB8056/DPM/dpMatchSafModulePlugin:
   dialstring=2001, saf_enabled=1, saf_dndb_lookup=0, dp_result=0
Jul 13 06:51:38.147: //-1/142000AB8056/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=15
Jul 13 06:51:38.147: //-1/142000AB8056/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=2001, Peer Info Type=DIALPEER_INFO_SPEECH
Jul 13 06:51:38.147: //-1/142000AB8056/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=2001
Jul 13 06:51:38.147: //-1/142000AB8056/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
Jul 13 06:51:38.147: //-1/142000AB8056/DPM/dpMatchSafModulePlugin:
   dialstring=2001, saf_enabled=0, saf_dndb_lookup=1, dp_result=0
Jul 13 06:51:38.147: //-1/142000AB8056/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=15
     2: Dial-peer Tag=5
Jul 13 06:51:38.147: //-1/142000AB8056/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=2001, Peer Info Type=DIALPEER_INFO_SPEECH
Jul 13 06:51:38.147: //-1/142000AB8056/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=2001
Jul 13 06:51:38.147: //-1/142000AB8056/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
Jul 13 06:51:38.147: //-1/142000AB8056/DPM/dpMatchSafModulePlugin:
   dialstring=2001, saf_enabled=0, saf_dndb_lookup=1, dp_result=0
Jul 13 06:51:38.147: //-1/142000AB8056/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=15
     2: Dial-peer Tag=5
Jul 13 06:51:38.147: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=2001, Called Number=2001, Peer Info Type=DIALPEER_INFO_SPEECH
Jul 13 06:51:38.147: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=2001
Jul 13 06:51:38.147: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
Jul 13 06:51:38.147: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=2001, saf_enabled=0, saf_dndb_lookup=1, dp_result=0
Jul 13 06:51:38.147: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=15
     2: Dial-peer Tag=5
Jul 13 06:51:38.147: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Calling Number=, Called Number=, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
Jul 13 06:51:38.147: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=NO_MATCH(-1) After All Match Rules Attempt
Jul 13 06:51:38.147: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=-1
Jul 13 06:51:38.147: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Calling Number=2001, Called Number=, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
Jul 13 06:51:38.147: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=15
Jul 13 06:51:38.147: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0
Jul 13 06:51:38.147: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=2001, Peer Info Type=DIALPEER_INFO_SPEECH
Jul 13 06:51:38.147: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=2001
Jul 13 06:51:38.147: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
Jul 13 06:51:38.147: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=2001, saf_enabled=0, saf_dndb_lookup=1, dp_result=0
Jul 13 06:51:38.147: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=15
     2: Dial-peer Tag=5
Jul 13 06:51:38.147: //-1/142000AB8056/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=2001, Peer Info Type=DIALPEER_INFO_SPEECH
Jul 13 06:51:38.147: //-1/142000AB8056/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=2001
Jul 13 06:51:38.147: //-1/142000AB8056/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
Jul 13 06:51:38.147: //-1/142000AB8056/DPM/dpMatchSafModulePlugin:
   dialstring=2001, saf_enabled=1, saf_dndb_lookup=1, dp_result=0
Jul 13 06:51:38.147: //-1/142000AB8056/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=15
     2: Dial-peer Tag=5
Jul 13 06:51:38.151: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=2001, Peer Info Type=DIALPEER_INFO_SPEECH
Jul 13 06:51:38.151: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=2001
Jul 13 06:51:38.151: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
Jul 13 06:51:38.151: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=2001, saf_enabled=0, saf_dndb_lookup=1, dp_result=0
Jul 13 06:51:38.151: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=15
     2: Dial-peer Tag=5
Jul 13 06:51:38.151: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=2001, Peer Info Type=DIALPEER_INFO_SPEECH
Jul 13 06:51:38.151: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=2001
Jul 13 06:51:38.151: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
Jul 13 06:51:38.151: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=2001, saf_enabled=0, saf_dndb_lookup=1, dp_result=0
Jul 13 06:51:38.151: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=15
     2: Dial-peer Tag=5
Jul 13 06:51:38.283: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=3002, Peer Info Type=DIALPEER_INFO_SPEECH
Jul 13 06:51:38.283: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=3002
Jul 13 06:51:38.283: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
Jul 13 06:51:38.283: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0
Jul 13 06:51:38.283: //-1/xxxxxxxxxxxx/DPM/dpMatchPeers:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=20002
Jul 13 06:51:38.283: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=2001, Peer Info Type=DIALPEER_INFO_SPEECH
Jul 13 06:51:38.283: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=2001
Jul 13 06:51:38.283: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
Jul 13 06:51:38.283: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0
Jul 13 06:51:38.283: //-1/xxxxxxxxxxxx/DPM/dpMatchPeers:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=15
     2: Dial-peer Tag=5
Jul 13 06:51:38.283: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=2001, Peer Info Type=DIALPEER_INFO_SPEECH
Jul 13 06:51:38.283: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=2001
Jul 13 06:51:38.283: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
Jul 13 06:51:38.283: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=2001, saf_enabled=0, saf_dndb_lookup=1, dp_result=0
Jul 13 06:51:38.283: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=15
     2: Dial-peer Tag=5
Jul 13 06:51:38.859: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=2001, Peer Info Type=DIALPEER_INFO_SPEECH
Jul 13 06:51:38.859: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=2001
Jul 13 06:51:38.859: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
Jul 13 06:51:38.859: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=2001, saf_enabled=0, saf_dndb_lookup=1, dp_result=0
Jul 13 06:51:38.859: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=15
     2: Dial-peer Tag=5
R1#

Thank you for your message.

--

Dmitry

CreatePlease to create content
Content for Community-Ad
FusionCharts will render here