<div dir="ltr"><div>Hi Duncan,<br><br></div>Thank you for your reply. Here's the netstat:<br><div><br>[root]# netstat -udpln | grep asterisk<br>udp        0      0 <a href="http://0.0.0.0:5000" target="_blank">0.0.0.0:5000</a>                0.0.0.0:*                               6672/asterisk       <br>


udp        0      0 <a href="http://0.0.0.0:4520" target="_blank">0.0.0.0:4520</a>                0.0.0.0:*                               6672/asterisk       <br>udp        0      0 <a href="http://0.0.0.0:5060" target="_blank">0.0.0.0:5060</a>                0.0.0.0:*                               6672/asterisk       <br>


udp        0      0 <a href="http://0.0.0.0:4569" target="_blank">0.0.0.0:4569</a>                0.0.0.0:*                               6672/asterisk       <br><br></div><div>Here's the tcpdump (tcpdump udp port 5060 -A -n -nn -i tun0) from the Kamailio server:<br>

<br>17:13:17.103771 IP 103.x.x.x.5060 > 172.y.y.y.5060: SIP, length: 1228<br>E.......@.>/g.v.............INVITE sip:*1@172.y.y.y:5060;transport=udp SIP/2.0<br>Record-Route: <sip:103.x.x.x;lr=on><br>Via: SIP/2.0/UDP 103.x.x.x;branch=z9hG4bK584f.d0387c07.0<br>

Via: SIP/2.0/UDP 192.168.1.40:5060;received=203.z.z.z;rport=5060;branch=z9hG4bK274588850<br>From: <sip:9067273@103.x.x.x>;tag=1880695235<br>To: <sip:*1@103.x.x.x><br>Call-ID: 1898224288<br><br><br>Here's the tcpdump (tcpdump udp port 5060 -A -n -nn -i tun0) from the Asterisk server:<br>

<br>17:13:17.093676 IP 103.x.x.x.5060 > 172.y.y.y.5060: SIP, length: 1228<br>E.......?.?/g.v.............INVITE sip:*1@172.y.y.y:5060;transport=udp SIP/2.0<br>Record-Route: <sip:103.x.x.x;lr=on><br>Via: SIP/2.0/UDP 103.x.x.x;branch=z9hG4bK584f.d0387c07.0<br>

Via: SIP/2.0/UDP 192.168.1.40:5060;received=203.z.z.z;rport=5060;branch=z9hG4bK274588850<br>From: <sip:9067273@103.x.x.x>;tag=1880695235<br>To: <sip:*1@103.x.x.x><br>Call-ID: 1898224288<br><br></div><div><br>
</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 21 January 2014 16:56, Duncan Turnbull <span dir="ltr"><<a href="mailto:duncan@e-simple.co.nz" target="_blank">duncan@e-simple.co.nz</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div class="im"><div>On 21/01/2014, at 6:40 pm, David Cunningham <<a href="mailto:dcunningham@voisonics.com" target="_blank">dcunningham@voisonics.com</a>> wrote:</div>

<br></div><blockquote type="cite"><div dir="ltr"><div>Hi Paul,<br><br></div><div class="im">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></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>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>sip:049343953@192.168.51.7</a>>;tag=as32fe455a</div>

<div style="margin:0px;font-size:11px;font-family:Menlo">To: <<a>sip:sip.2talk.co.nz</a>></div><div style="margin:0px;font-size:11px;font-family:Menlo">Contact: <<a>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" target="_blank">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>sip:049343953@192.168.51.7:5060</a>>;tag=as32fe455a</div>

<div style="margin:0px;font-size:11px;font-family:Menlo">To: <<a>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" target="_blank">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 <a href="http://0.0.0.0:4520" target="_blank">0.0.0.0:4520</a>            0.0.0.0:*                           1413/asterisk   </div><div style="margin:0px">udp        0      0 <a href="http://0.0.0.0:4569" target="_blank">0.0.0.0:4569</a>            0.0.0.0:*                           1413/asterisk   </div>

<div style="margin:0px">udp        0      0 <a href="http://0.0.0.0:5000" target="_blank">0.0.0.0:5000</a>            0.0.0.0:*                           1413/asterisk   </div><div style="margin:0px">udp        0      0 <a href="http://0.0.0.0:5060" target="_blank">0.0.0.0:5060</a>            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><div><div class="h5"><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>On Mon, Jan 20, 2014 at 4:24 PM, David Cunningham<br>
<<a href="mailto:dcunningham@voisonics.com" target="_blank">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><div><br>
--<br>
Paul Belanger | PolyBeacon, Inc.<br>
Jabber: <a href="mailto:paul.belanger@polybeacon.com" target="_blank">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: <a href="tel:%2B1%20213%20221%201092" value="+12132211092" target="_blank">+1 213 221 1092</a><br>

UK: <a href="tel:%2B44%20%280%29%2020%203298%201642" value="+442032981642" target="_blank">+44 (0) 20 3298 1642</a><br>

Australia: <a href="tel:%2B61%20%280%29%202%208063%209019" value="+61280639019" target="_blank">+61 (0) 2 8063 9019</a><br>
</div>
-- <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></blockquote>

</div></div></div><br></div><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></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>