<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 21/01/2014, at 6:40 pm, David Cunningham <<a href="mailto:dcunningham@voisonics.com">dcunningham@voisonics.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div>Hi Paul,<br><br></div>Using ngrep/tcpdump shows the packet clearly going from the Kamailio server and arriving at the Asterisk server. This is why it's a mystery that Asterisk doesn't see the call coming in. We tried removing the firewall (so iptables -L shows no rules at all) but that didn't help unfortunately.<br>

<br></div></blockquote><div>Can you show a packet dump of the SIP invites arriving at the asterisk PBX , mostly just confirming the ip address that the server is receiving packets on </div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span style="color: #34bd26"><b>root@zespri</b></span>:<span style="color: #5330e1"><b>~</b></span># tcpdump udp port 5060 -A -n</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">tcpdump: verbose output suppressed, use -v or -vv for full protocol decode</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">18:52:23.063862 IP 192.168.51.7.5060 > 27.111.14.65.5060: SIP, length: 534</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">E`.2.L..@.....3..o.A......u.OPTIONS <a href="sip:sip.2talk.co.nz">sip:sip.2talk.co.nz</a> SIP/2.0</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Via: SIP/2.0/UDP 192.168.51.7:5060;branch=z9hG4bK45a08b58;rport</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Max-Forwards: 70</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">From: "Unknown" <<a href="sip:049343953@192.168.51.7">sip:049343953@192.168.51.7</a>>;tag=as32fe455a</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">To: <<a href="sip:sip.2talk.co.nz">sip:sip.2talk.co.nz</a>></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Contact: <<a href="sip:0412345678@192.168.51.7:5060">sip:0412345678@192.168.51.7:5060</a>></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Call-ID: <a href="mailto:10c0242d16529fff78572ef91ef47237@192.168.51.7">10c0242d16529fff78572ef91ef47237@192.168.51.7</a>:5060</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">CSeq: 102 OPTIONS</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">User-Agent: FPBX-2.10.1(10.6.1)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Date: Tue, 21 Jan 2014 05:52:23 GMT</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Supported: replaces, timer</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Content-Length: 0</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">18:52:23.084330 IP 27.111.14.65.5060 > 192.168.51.7.5060: SIP, length: 472</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">E.......9....o.A..3.......r.SIP/2.0 404 Not Found</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Via: SIP/2.0/UDP 192.168.51.7:5060;branch=z9hG4bK45a08b58;received=192.168.51.7;rport=5060</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">From: "Unknown" <<a href="sip:049343953@192.168.51.7:5060">sip:049343953@192.168.51.7:5060</a>>;tag=as32fe455a</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">To: <<a href="sip:sip.2talk.co.nz">sip:sip.2talk.co.nz</a>>;tag=as7b633145</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Call-ID: <a href="mailto:10c0242d16529fff78572ef91ef47237@192.168.51.7">10c0242d16529fff78572ef91ef47237@192.168.51.7</a>:5060</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">CSeq: 102 OPTIONS</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Server: 2talk PBX</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Supported: replaces</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Accept: application/sdp</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Content-Length: 0</div></div><div><br></div><div>Also the udp ports asterisk is listening on </div><div><br></div><div>e.g </div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">netstat -udpl</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Active Internet connections (only servers)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><div style="margin: 0px;">udp        0      0 0.0.0.0:4520            0.0.0.0:*                           1413/asterisk   </div><div style="margin: 0px;">udp        0      0 0.0.0.0:4569            0.0.0.0:*                           1413/asterisk   </div><div style="margin: 0px;">udp        0      0 0.0.0.0:5000            0.0.0.0:*                           1413/asterisk   </div><div style="margin: 0px;">udp        0      0 0.0.0.0:5060            0.0.0.0:*                           1413/asterisk   </div><div style="margin: 0px;"><br></div><div style="margin: 0px;"><br></div><div style="margin: 0px;"><br></div></div></div><blockquote type="cite"><div class="gmail_extra"><br><br><div class="gmail_quote">On 21 January 2014 15:29, Paul Belanger <span dir="ltr"><<a href="mailto:paul.belanger@polybeacon.com" target="_blank">paul.belanger@polybeacon.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Mon, Jan 20, 2014 at 4:24 PM, David Cunningham<br>
<<a href="mailto:dcunningham@voisonics.com">dcunningham@voisonics.com</a>> wrote:<br>
> Hi Paul,<br>
><br>
> The ngrep on the Asterisk server does show it being received. Have you any<br>
> idea what would prevent it getting from the network stack to Asterisk on<br>
> that machine?<br>
><br>
</div>Well, you need to use tcpdump on each hop across your network. If are<br>
Asterisk is not getting anything, either it is not receiving anything<br>
(check transmit side) or the firewall is dropping it.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Paul Belanger | PolyBeacon, Inc.<br>
Jabber: <a href="mailto:paul.belanger@polybeacon.com">paul.belanger@polybeacon.com</a> | IRC: pabelanger (Freenode)<br>
Github: <a href="https://github.com/pabelanger" target="_blank">https://github.com/pabelanger</a> | Twitter: <a href="https://twitter.com/pabelanger" target="_blank">https://twitter.com/pabelanger</a><br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>David Cunningham, Voisonics<br><a href="http://voisonics.com/" target="_blank">http://voisonics.com/</a><br>USA: +1 213 221 1092<br>UK: +44 (0) 20 3298 1642<br>

Australia: +61 (0) 2 8063 9019<br>
</div>
-- <br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br>               <a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div><br></body></html>