<div dir="ltr"><div><div>Hi Gavin,<br><br></div>Could this be a firewall issue on the client side (is 5060 open)?<br></div><div>When doing tcpdump, do you see any provisional reply from the client? No packet filtering could help.<br></div><div><br>Do you see any log on the client side? (if no, then the INVITE might not reach the application layer, if yes, it could help to investigate)<br><br></div><div>Florent<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-10-10 12:11 GMT+02:00 Gavin Hamill <span dir="ltr">&lt;<a href="mailto:gavin@bashton.com" target="_blank">gavin@bashton.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I&#39;m running FS 1.4.9 on a CentOS 6.5 machine with a single NIC. The machine is behind NAT, and I have a working VPN so that internal calls work. The local IP of the machine is 192.168.196.101, and the remote VPN subnet (no NAT - clear routing) is <a href="http://192.168.41.0/24" target="_blank">192.168.41.0/24</a>.</div><div><br></div><div>I am using port 5080 for internal calls (auth-calls=true) and port 5060 for incoming calls from a SIP provider. The machine has an internal IP and port-forwarding handles public IP -&gt; private IP.</div><div><br></div><div><div>When I dial from a mobile phone to a number on the external SIP provider, I do get activity on the console:</div><div><br></div><div><div>2014-10-10 10:52:20.655471 [NOTICE] switch_channel.c:1055 New Channel sofia/external/<a href="mailto:07951357XXX@87.238.73.181" target="_blank">07951357XXX@87.238.73.181</a> [78cc73d0-e9d1-4d7d-9f22-f7adac8ba0c0]</div><div>2014-10-10 10:52:21.259045 [NOTICE] switch_ivr.c:1844 Transfer sofia/external/<a href="mailto:07951357xxx@87.238.73.181" target="_blank">07951357xxx@87.238.73.181</a> to XML[106@default]</div><div>2014-10-10 10:52:21.259045 [WARNING] mod_dptools.c:1628 incoming call from [07951357XXX] to [106]</div><div>2014-10-10 10:52:21.259045 [NOTICE] mod_sofia.c:2237 Pre-Answer sofia/external/<a href="mailto:07951357XXX@87.238.73.181" target="_blank">07951357XXX@87.238.73.181</a>!</div><div>2014-10-10 10:52:21.259045 [NOTICE] switch_channel.c:1055 New Channel sofia/internal/<a href="http://sip:106@192.168.41.198:5060" target="_blank">sip:106@192.168.41.198:5060</a> [a7aaa63b-fd85-4b1f-8855-180a218a388e]<br></div><div><br></div></div></div><div>At this point there is a pause and a timeout after 30 seconds.  There is a phone registered to extension &#39;106&#39; listening at that IP address on port 5060:</div><div><div><br></div><div>freeswitch@internal&gt; sofia status profile internal reg</div><div><br></div><div>Registrations:</div><div>=================================================================================================</div><div>Call-ID:    <span style="white-space:pre-wrap">        </span><a href="mailto:1572302163@192.168.41.198" target="_blank">1572302163@192.168.41.198</a></div><div>User:       <span style="white-space:pre-wrap">        </span><a href="mailto:106@freeswitch.bashton.eu" target="_blank">106@freeswitch.bashton.eu</a></div><div>Contact:    <span style="white-space:pre-wrap">        </span>&quot;&quot; &lt;<a href="http://sip:106@192.168.41.198:5060" target="_blank">sip:106@192.168.41.198:5060</a>&gt;</div><div>Agent:      <span style="white-space:pre-wrap">        </span>qutecom/rev-g-trunk</div><div>Status:     <span style="white-space:pre-wrap">        </span>Registered(UDP)(unknown) EXP(2014-10-10 10:32:04) EXPSECS(2796)</div><div>Host:       <span style="white-space:pre-wrap">        </span>freeswitch</div><div>IP:         <span style="white-space:pre-wrap">        </span>192.168.41.198</div><div>Port:       <span style="white-space:pre-wrap">        </span>5060</div><div>Auth-User:  <span style="white-space:pre-wrap">        </span>106</div><div>Auth-Realm: <span style="white-space:pre-wrap">        </span><a href="http://freeswitch.bashton.eu" target="_blank">freeswitch.bashton.eu</a></div><div>MWI-Account:<span style="white-space:pre-wrap">        </span><a href="mailto:106@freeswitch.bashton.eu" target="_blank">106@freeswitch.bashton.eu</a></div><div><br></div><div>Total items returned: 1</div><div>=================================================================================================</div></div><div><br></div><div><div>freeswitch@internal&gt; sofia status profile external </div><div>=================================================================================================</div><div>Name             <span style="white-space:pre-wrap">        </span>external</div><div>Domain Name      <span style="white-space:pre-wrap">        </span>N/A</div><div>Auto-NAT         <span style="white-space:pre-wrap">        </span>false</div><div>DBName           <span style="white-space:pre-wrap">        </span>sofia_reg_external</div><div>Pres Hosts       <span style="white-space:pre-wrap">        </span></div><div>Dialplan         <span style="white-space:pre-wrap">        </span>XML</div><div>Context          <span style="white-space:pre-wrap">        </span>public</div><div>Challenge Realm  <span style="white-space:pre-wrap">        </span>auto_to</div><div>RTP-IP           <span style="white-space:pre-wrap">        </span>192.168.196.101</div><div>SIP-IP           <span style="white-space:pre-wrap">        </span>192.168.196.101</div><div>URL              <span style="white-space:pre-wrap">        </span><a href="http://sip:mod_sofia@192.168.196.101:5060" target="_blank">sip:mod_sofia@192.168.196.101:5060</a></div><div>BIND-URL         <span style="white-space:pre-wrap">        </span>sip:mod_sofia@192.168.196.101:5060;transport=udp,tcp</div><div>HOLD-MUSIC       <span style="white-space:pre-wrap">        </span>N/A</div><div>OUTBOUND-PROXY   <span style="white-space:pre-wrap">        </span>N/A</div><div>CODECS IN        <span style="white-space:pre-wrap">        </span>PCMU,PCMA</div><div>CODECS OUT       <span style="white-space:pre-wrap">        </span></div><div>TEL-EVENT        <span style="white-space:pre-wrap">        </span>101</div><div>DTMF-MODE        <span style="white-space:pre-wrap">        </span>rfc2833</div><div>CNG              <span style="white-space:pre-wrap">        </span>13</div><div>SESSION-TO       <span style="white-space:pre-wrap">        </span>0</div><div>MAX-DIALOG       <span style="white-space:pre-wrap">        </span>0</div><div>NOMEDIA          <span style="white-space:pre-wrap">        </span>false</div><div>LATE-NEG         <span style="white-space:pre-wrap">        </span>false</div><div>PROXY-MEDIA      <span style="white-space:pre-wrap">        </span>false</div><div>ZRTP-PASSTHRU    <span style="white-space:pre-wrap">        </span>false</div><div>AGGRESSIVENAT    <span style="white-space:pre-wrap">        </span>false</div><div>CALLS-IN         <span style="white-space:pre-wrap">        </span>2</div><div>FAILED-CALLS-IN  <span style="white-space:pre-wrap">        </span>1</div><div>CALLS-OUT        <span style="white-space:pre-wrap">        </span>0</div><div>FAILED-CALLS-OUT <span style="white-space:pre-wrap">        </span>0</div><div>REGISTRATIONS    <span style="white-space:pre-wrap">        </span>0</div><div><br></div><div><br></div><div><br></div><div>freeswitch@internal&gt; sofia status profile internal </div><div>=================================================================================================</div><div>Name             <span style="white-space:pre-wrap">        </span>internal</div><div>Domain Name      <span style="white-space:pre-wrap">        </span>N/A</div><div>Auto-NAT         <span style="white-space:pre-wrap">        </span>false</div><div>DBName           <span style="white-space:pre-wrap">        </span>sofia_reg_internal</div><div>Pres Hosts       <span style="white-space:pre-wrap">        </span></div><div>Dialplan         <span style="white-space:pre-wrap">        </span>XML</div><div>Context          <span style="white-space:pre-wrap">        </span>default</div><div>Challenge Realm  <span style="white-space:pre-wrap">        </span>auto_to</div><div>RTP-IP           <span style="white-space:pre-wrap">        </span>192.168.196.101</div><div>Ext-RTP-IP       <span style="white-space:pre-wrap">        </span>192.168.196.101</div><div>SIP-IP           <span style="white-space:pre-wrap">        </span>192.168.196.101</div><div>Ext-SIP-IP       <span style="white-space:pre-wrap">        </span>192.168.196.101</div><div>URL              <span style="white-space:pre-wrap">        </span><a href="http://sip:mod_sofia@192.168.196.101:5080" target="_blank">sip:mod_sofia@192.168.196.101:5080</a></div><div>BIND-URL         <span style="white-space:pre-wrap">        </span>sip:mod_sofia@192.168.196.101:5080;maddr=192.168.196.101;transport=udp</div><div>HOLD-MUSIC       <span style="white-space:pre-wrap">        </span>N/A</div><div>OUTBOUND-PROXY   <span style="white-space:pre-wrap">        </span>N/A</div><div>CODECS IN        <span style="white-space:pre-wrap">        </span>PCMU,PCMA</div><div>CODECS OUT       <span style="white-space:pre-wrap">        </span>PCMU,PCMA</div><div>TEL-EVENT        <span style="white-space:pre-wrap">        </span>101</div><div>DTMF-MODE        <span style="white-space:pre-wrap">        </span>rfc2833</div><div>CNG              <span style="white-space:pre-wrap">        </span>13</div><div>SESSION-TO       <span style="white-space:pre-wrap">        </span>0</div><div>MAX-DIALOG       <span style="white-space:pre-wrap">        </span>0</div><div>NOMEDIA          <span style="white-space:pre-wrap">        </span>false</div><div>LATE-NEG         <span style="white-space:pre-wrap">        </span>false</div><div>PROXY-MEDIA      <span style="white-space:pre-wrap">        </span>false</div><div>ZRTP-PASSTHRU    <span style="white-space:pre-wrap">        </span>false</div><div>AGGRESSIVENAT    <span style="white-space:pre-wrap">        </span>false</div><div>CALLS-IN         <span style="white-space:pre-wrap">        </span>0</div><div>FAILED-CALLS-IN  <span style="white-space:pre-wrap">        </span>0</div><div>CALLS-OUT        <span style="white-space:pre-wrap">        </span>2</div><div>FAILED-CALLS-OUT <span style="white-space:pre-wrap">        </span>2</div><div>REGISTRATIONS    <span style="white-space:pre-wrap">        </span>1</div><div><br></div><div>freeswitch@internal&gt; sofia status </div><div>                     Name<span style="white-space:pre-wrap">        </span>   Type<span style="white-space:pre-wrap">        </span>                                      Data<span style="white-space:pre-wrap">        </span>State</div><div>=================================================================================================</div><div>                 external<span style="white-space:pre-wrap">        </span>profile<span style="white-space:pre-wrap">        </span>        <a href="http://sip:mod_sofia@192.168.196.101:5060" target="_blank">sip:mod_sofia@192.168.196.101:5060</a><span style="white-space:pre-wrap">        </span>RUNNING (0)</div><div>      external::magrathea<span style="white-space:pre-wrap">        </span>gateway<span style="white-space:pre-wrap">        </span>           <a href="mailto:sip%3Abashton@sipgw.magrathea.net" target="_blank">sip:bashton@sipgw.magrathea.net</a><span style="white-space:pre-wrap">        </span>REGED</div><div>                 internal<span style="white-space:pre-wrap">        </span>profile<span style="white-space:pre-wrap">        </span>        <a href="http://sip:mod_sofia@192.168.196.101:5080" target="_blank">sip:mod_sofia@192.168.196.101:5080</a><span style="white-space:pre-wrap">        </span>RUNNING (0)</div><div>=================================================================================================</div><div>2 profiles 0 aliases</div><div><br></div><div><br></div><div>The SIP client is definitely listening:<br></div></div><div><br></div><div><div>gdh@gdh-e7440:~$ netstat -anp | grep 5060</div><div>tcp        0      0 <a href="http://192.168.41.198:5060" target="_blank">192.168.41.198:5060</a>     0.0.0.0:*               LISTEN      17566/qutecom   </div><div>udp        0      0 <a href="http://192.168.41.198:5060" target="_blank">192.168.41.198:5060</a>     0.0.0.0:*                           17566/qutecom   </div></div><div><br></div><div>And I can see that when the call comes in, there is traffic received by the SIP client (tcpdump + wireshark):</div><div><br></div><div><div>INVITE <a href="http://sip:106@192.168.41.198:5060" target="_blank">sip:106@192.168.41.198:5060</a> SIP/2.0</div><div>Via: SIP/2.0/UDP 192.168.196.101:5080;rport;branch=z9hG4bKX71j6K414rQNa</div><div>Max-Forwards: 67</div><div>From: &quot;None</div><div>&quot; &lt;<a href="mailto:sip%3A07951357XXX@freeswitch.bashton.eu" target="_blank">sip:07951357XXX@freeswitch.bashton.eu</a>&gt;;tag=rBeB1Nv1Bampm</div><div>To: &lt;<a href="http://sip:106@192.168.41.198:5060" target="_blank">sip:106@192.168.41.198:5060</a>&gt;</div><div>Call-ID: f850b9a6-cb05-1232-7693-02b891c191f6</div><div>CSeq: 66131306 INVITE</div><div>Contact: &lt;<a href="http://sip:mod_sofia@192.168.196.101:5080" target="_blank">sip:mod_sofia@192.168.196.101:5080</a>&gt;</div><div>User-Agent: FreeSWITCH-mod_sofia/1.4.9~64bit</div><div>Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY</div><div>Supported: timer, path, replaces</div><div>Allow-Events: talk, hold, conference, refer</div><div>Content-Type: application/sdp</div><div>Content-Disposition: session</div><div>Content-Length: 253</div><div>X-CALLINFO: cdr=5437AC53=94F6B14;</div><div>X-FS-Support: update_display,send_info</div><div>Remote-Party-ID: &quot;None</div><div>&quot; &lt;<a href="mailto:sip%3A07951357XXX@freeswitch.bashton.eu" target="_blank">sip:07951357XXX@freeswitch.bashton.eu</a>&gt;;party=calling;screen=yes;privacy=off</div></div><div><br></div><div><br></div><div>The incoming call is handled in the public context with:</div><div><br></div><div><div>       &lt;action application=&quot;transfer&quot; data=&quot;106 XML default&quot;/&gt;</div></div><div><br></div><div>and in extension 106 in the default context, there&#39;s this:</div><div><br></div><div><div>        &lt;action application=&quot;bridge&quot; data=&quot;user/$1&quot;/&gt;</div></div><div><br></div><div>I have tried both qutecom and linphone with the same behaviour. Any ideas?<br></div><div><br></div><div>Cheers,</div><div>Gavin.</div><div><br></div><div><br></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>