×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

need some help with incoming sip call

Unanswered Question
Apr 25th, 2014
User Badges:

Here's my problem

call flow incoming from SIP trunk - CUBE- CUCM

my extension range is 33531XX

my incoming numbers from sip ends in 40441031XX

voice translation-rule 1
 rule 1 /^40441031\(..\)/ /33531\1/
!
voice translation-profile IncomingDID
 translate called 1
 

my dial peers are

dial-peer voice 1 voip
 description To CUCM Subscriber

translation-profile outgoing IncomingDID
 destination-pattern 40441031..
 session protocol sipv2
 session target ipv4:172.22.1.1
 voice-class codec 1
 voice-class sip early-offer forced
 dtmf-relay h245-alphanumeric
 ip qos dscp cs5 media
 ip qos dscp cs4 signaling
 no vad

dial-peer voice 1000 voip
 huntstop
 destination-pattern .T
 progress_ind setup enable 3
 no modem passthrough
 session protocol sipv2
 session target sip-server
 session transport udp
 voice-class codec 1
 dtmf-relay rtp-nte
 fax rate disable
 fax protocol pass-through g711ulaw
 ip qos dscp cs5 media
 no vad
!
dial-peer voice 1001 voip
 huntstop
 destination-pattern [2-9].........
 progress_ind setup enable 3
 session protocol sipv2
 session target sip-server
 session transport udp
 voice-class codec 1
 dtmf-relay rtp-nte
 fax protocol pass-through g711ulaw
 no vad
!
dial-peer voice 1002 voip
 huntstop
 destination-pattern 1[2-9].........
 progress_ind setup enable 3
 session protocol sipv2
 session target sip-server
 session transport udp
 voice-class codec 1
 dtmf-relay rtp-nte
 fax protocol pass-through g711ulaw
 no vad
 

 

Incoming calls do seem to hit the dial peer 1001 rather than 1 and fail

006223: *Apr 25 20:40:02.061 EDT: //-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
006224: *Apr 25 20:40:02.061 EDT: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=NO_MATCH(-1) After All Match Rules Attempt
006225: *Apr 25 20:40:02.061 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=-1
006226: *Apr 25 20:40:02.061 EDT: //-1/230A74CF8EFB/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
006227: *Apr 25 20:40:02.061 EDT: //-1/230A74CF8EFB/DPM/dpAssociateIncomingPeerCore:
   Result=NO_MATCH(-1) After All Match Rules Attempt
006228: *Apr 25 20:40:02.061 EDT: //-1/230A74CF8EFB/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=-1
006229: *Apr 25 20:40:03.057 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=4044103152, Called Number=4044103152, Peer Info Type=DIALPEER_INFO_SPEECH
006230: *Apr 25 20:40:03.057 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=4044103152
006231: *Apr 25 20:40:03.057 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
006232: *Apr 25 20:40:03.057 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=4044103152, saf_enabled=1, saf_dndb_lookup=1, dp_result=0
006233: *Apr 25 20:40:03.057 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=1
     2: Dial-peer Tag=1001
     3: Dial-peer Tag=1000
006234: *Apr 25 20:40:03.061 EDT: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Calling Number=447919697365, Called Number=, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
006235: *Apr 25 20:40:03.061 EDT: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=1001
006236: *Apr 25 20:40:03.061 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0
006237: *Apr 25 20:40:03.061 EDT: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Calling Number=447919697365, Called Number=, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
006238: *Apr 25 20:40:03.061 EDT: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=1001
006239: *Apr 25 20:40:03.061 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0
006240: *Apr 25 20:40:03.061 EDT: //-1/23A26E8F8EFC/DPM/dpAssociateIncomingPeerCore:
   Calling Number=447919697365, Called Number=4044103152, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
006241: *Apr 25 20:40:03.061 EDT: //-1/23A26E8F8EFC/DPM/dpAssociateIncomingPeerCore:
   Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=1001
006242: *Apr 25 20:40:03.061 EDT: //-1/23A26E8F8EFC/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0
006243: *Apr 25 20:40:03.065 EDT: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Calling Number=447919697365, Called Number=, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
006244: *Apr 25 20:40:03.065 EDT: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=1001
006245: *Apr 25 20:40:03.065 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0
006246: *Apr 25 20:40:04.317 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=4044103152, Called Number=4044103152, Peer Info Type=DIALPEER_INFO_SPEECH
006247: *Apr 25 20:40:04.317 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=4044103152
006248: *Apr 25 20:40:04.317 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
006249: *Apr 25 20:40:04.317 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=4044103152, saf_enabled=1, saf_dndb_lookup=1, dp_result=0
006250: *Apr 25 20:40:04.317 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=1
     2: Dial-peer Tag=1001
     3: Dial-peer Tag=1000
006251: *Apr 25 20:40:04.317 EDT: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Calling Number=447919697365, Called Number=, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
006252: *Apr 25 20:40:04.317 EDT: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=1001
006253: *Apr 25 20:40:04.317 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0
006254: *Apr 25 20:40:04.317 EDT: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Calling Number=447919697365, Called Number=, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
006255: *Apr 25 20:40:04.321 EDT: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=1001
006256: *Apr 25 20:40:04.321 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0
006257: *Apr 25 20:40:04.321 EDT: //-1/2462B12A8F01/DPM/dpAssociateIncomingPeerCore:
   Calling Number=447919697365, Called Number=4044103152, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
006258: *Apr 25 20:40:04.321 EDT: //-1/2462B12A8F01/DPM/dpAssociateIncomingPeerCore:
   Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=1001
006259: *Apr 25 20:40:04.321 EDT: //-1/2462B12A8F01/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0
006260: *Apr 25 20:40:04.321 EDT: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Calling Number=447919697365, Called Number=, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
006261: *Apr 25 20:40:04.321 EDT: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=1001
006262: *Apr 25 20:40:04.321 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=0
006263: *Apr 25 20:40:07.989 EDT: //-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
006264: *Apr 25 20:40:07.989 EDT: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=NO_MATCH(-1) After All Match Rules Attempt
006265: *Apr 25 20:40:07.989 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=-1
006266: *Apr 25 20:40:07.989 EDT: //-1/2692FD318F06/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
006267: *Apr 25 20:40:07.989 EDT: //-1/2692FD318F06/DPM/dpAssociateIncomingPeerCore:
   Result=NO_MATCH(-1) After All Match Rules Attempt
006268: *Apr 25 20:40:07.989 EDT: //-1/2692FD318F06/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=-1
006269: *Apr 25 20:40:10.581 EDT: //-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
006270: *Apr 25 20:40:10.581 EDT: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=NO_MATCH(-1) After All Match Rules Attempt
006271: *Apr 25 20:40:10.581 EDT: //-1/xxxxxxxxxxxx/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=-1
006272: *Apr 25 20:40:10.581 EDT: //-1/281E7FD48F07/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
006273: *Apr 25 20:40:10.581 EDT: //-1/281E7FD48F07/DPM/dpAssociateIncomingPeerCore:
   Result=NO_MATCH(-1) After All Match Rules Attempt
006274: *Apr 25 20:40:10.581 EDT: //-1/281E7FD48F07/DPM/dpMatchSafModulePlugin:
   dialstring=NULL, saf_enabled=0, saf_dndb_lookup=0, dp_result=-1

 

any help appeciated

 


 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Jaime Valencia Fri, 04/25/2014 - 22:27
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    2011

Where's the DP that matches the translated number????

ReadersUK Sat, 04/26/2014 - 06:47
User Badges:

Hi

 

I removed the translation just to get a straight match but still not getting a match on the dial peer.

 

regards

Manish Prasad Sat, 04/26/2014 - 00:34
User Badges:

I would suggest create a separate incoming dial-peer from ITSP using  "incoming called number . "

From this debug its matching incoming dial-peer 1001 which is very weird.

 

Thanks

Manish

ReadersUK Sat, 04/26/2014 - 06:46
User Badges:

Hi

 

Appreciate the reply I tried a dial peer with the matching incoming called number but still no luck

 

regards

Suresh Subramanian Sat, 04/26/2014 - 10:00
User Badges:
  • Gold, 750 points or more
  • Community Spotlight Award,

    Mobile User, October 2015

Please collect debug voice ccapi inout &debug ccsip message for a test call and include calling and called numbers. Also add the related dialpeer and sip configuration snippets from running config.
ReadersUK Sun, 04/27/2014 - 11:45
User Badges:

I thought I would reply to my own post since it may help someone struggling with the same issue.

 

Below is my now working solution:

SIP peers work in pairs so I needed two for my incoming calls. Dial peer 1 is matched first since it has  incoming called-number set. My translation profile is there to change the incoming digits to my extension range 33531XX. Then dial peer 2 is matched with the destination-pattern set to look for 33531XX (the $ is for an exact match) and the call is sent to the callmanager.

dial-peer voice 1 voip
 description ## paired with dial peer 2 for calls to CUCM ##
 destination-pattern 33531[5-8].$
 session protocol sipv2
 session target ipv4:10.1.1.1
 voice-class codec 1
 voice-class sip early-offer forced
 dtmf-relay rtp-nte
 ip qos dscp cs5 media
 ip qos dscp cs4 signaling
 no vad
!
dial-peer voice 2 voip
 description ## paired with dial peer 1 for incoming calls ##
 translation-profile incoming IncomingDID
 session protocol sipv2
 session target sip-server
 incoming called-number .T
 voice-class codec 1
 dtmf-relay rtp-nte
 no vad
 

Actions

This Discussion