[Solved] Peer Unreachable

Hi guys,

Need some help for this one. i am setting up a new asterisk server. Version 11.7.0

we have few Cisco Voice Gateway router. and i need to forward the call to the new asterisk server.

Asterisk Server IP: 172.16.2.58
Cisco Gateway IP: 172.16.2.79

Below is the output for sip show peers. it shows unreachable for all the cisco gateway

localhost*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status Description c2801_31020000 172.16.2.90 5060 UNREACHABLE c2801_67237600 172.16.2.79 5060 UNREACHABLE c2801_67238100 172.16.2.95 5060 UNREACHABLE c2801_68661900 172.16.2.90 5060 UNREACHABLE c3640_64911000 172.16.2.85 5060 UNREACHABLE 5 sip peers [Monitored: 0 online, 5 offline Unmonitored: 0 online, 0 offline]

sip.conf

[c2801_67237600]
type=friend
context=internal
host=172.16.2.79
qualify=500
disallow=all
allow=all
nat=no
canreinvite=no
dtmfmode=rfc2833
insecure=port,invite

Below is the dial-peer on Cisco Gateway. when i call 67237843, the call actually goes to 172.16.2.11 instead of 172.16.2.58

dial-peer voice 2 voip
 destination-pattern 6723....
 progress_ind setup enable 3
 progress_ind progress enable 8
 voice-class codec 1
 max-redirects 3
 session protocol sipv2
 session target ipv4:172.16.2.11
 incoming called-number .T
 dtmf-relay rtp-nte
 no vad
!


dial-peer voice 67237843 voip
 description New Asterisk Test 67237843
 destination-pattern 67237843
 progress_ind setup enable 3
 progress_ind progress enable 8
 max-redirects 3
 session protocol sipv2
 session target ipv4:172.16.2.58
 session transport udp
 incoming called-number .T
 dtmf-relay rtp-nte
 codec g711ulaw
 no vad
!

I have no issue to ping each other. let me know if any other info you guys need.

Have you tried disabling qualify?

Hi David55, yes, i did try that. Status changed to Unmonitored. and the call does not route to the Asterisk server from Cisco Voice Gateway.

Seems connection breaks somewhere. something need to configure on Cisco Gateway

here is the debug logs on Cisco Gateway.

T6000-SH-67237600#
Jan 14 15:25:30.647: //-1/F002EA098B2E/DPM/dpAssociateIncomingPeerCore:
   Calling Number=asterisk, Called Number=, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
Jan 14 15:25:30.647: //-1/F002EA098B2E/DPM/dpAssociateIncomingPeerCore:
   Result=NO_MATCH(-1) After All Match Rules Attempt
Jan 14 15:25:31.647: //-1/F09AE4F98B2F/DPM/dpAssociateIncomingPeerCore:
   Calling Number=asterisk, Called Number=, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
Jan 14 15:25:31.647: //-1/F09AE4F98B2F/DPM/dpAssociateIncomingPeerCore:
   Result=NO_MATCH(-1) After All Match Rules Attempt
Jan 14 15:25:36.895: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Calling Number=96275635, Called Number=67237843, Voice-Interface=0x648EE308,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOICE, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
Jan 14 15:25:36.895: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=10
Jan 14 15:25:36.895: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Calling Number=96275635, Called Number=67237843, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOICE, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_FAX
Jan 14 15:25:36.895: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=NO_MATCH(-1) After All Match Rules Attempt
Jan 14 15:25:36.895: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=67237843, Peer Info Type=DIALPEER_INFO_SPEECH
Jan 14 15:25:36.895: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=67237843
Jan 14 15:25:36.899: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
Jan 14 15:25:36.899: //-1/xxxxxxxxxxxx/DPM/dpMatchPeers:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=67237843
     2: Dial-peer Tag=1
     3: Dial-peer Tag=2
     4: Dial-peer Tag=10
Jan 14 15:25:36.907: //-1/F3BC4B0EADA3/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=67237843, Peer Info Type=DIALPEER_INFO_SPEECH
Jan 14 15:25:36.907: //-1/F3BC4B0EADA3/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=67237843
Jan 14 15:25:36.907: //-1/F3BC4B0EADA3/DPM/dpMatchPeersCore:
   Result=Success(0) after DP_MATCH_DEST
Jan 14 15:25:36.907: //-1/F3BC4B0EADA3/DPM/dpMatchPeersMoreArg:
   Result=SUCCESS(0)
   List of Matched Outgoing Dial-peer(s):
     1: Dial-peer Tag=67237843
     2: Dial-peer Tag=1
     3: Dial-peer Tag=2
     4: Dial-peer Tag=10
Jan 14 15:25:41.647: //-1/F690CABE8B36/DPM/dpAssociateIncomingPeerCore:
   Calling Number=asterisk, Called Number=, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
Jan 14 15:25:41.647: //-1/F690CABE8B36/DPM/dpAssociateIncomingPeerCore:
   Result=NO_MATCH(-1) After All Match Rules Attempt
Jan 14 15:25:42.647: //-1/F729613E8B37/DPM/dpAssociateIncomingPeerCore:
   Calling Number=asterisk, Called Number=, Voice-Interface=0x0,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
Jan 14 15:25:42.647: //-1/F729613E8B37/DPM/dpAssociateIncomingPeerCore:
   Result=NO_MATCH(-1) After All Match Rules Attempt

Status shows ok now after disable iptables on CentOS… :smiley: