<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">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">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">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">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">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 class="" style="white-space:pre">        </span><a href="mailto:1572302163@192.168.41.198">1572302163@192.168.41.198</a></div><div>User:       <span class="" style="white-space:pre">        </span><a href="mailto:106@freeswitch.bashton.eu">106@freeswitch.bashton.eu</a></div><div>Contact:    <span class="" style="white-space:pre">        </span>&quot;&quot; &lt;<a href="http://sip:106@192.168.41.198:5060">sip:106@192.168.41.198:5060</a>&gt;</div><div>Agent:      <span class="" style="white-space:pre">        </span>qutecom/rev-g-trunk</div><div>Status:     <span class="" style="white-space:pre">        </span>Registered(UDP)(unknown) EXP(2014-10-10 10:32:04) EXPSECS(2796)</div><div>Host:       <span class="" style="white-space:pre">        </span>freeswitch</div><div>IP:         <span class="" style="white-space:pre">        </span>192.168.41.198</div><div>Port:       <span class="" style="white-space:pre">        </span>5060</div><div>Auth-User:  <span class="" style="white-space:pre">        </span>106</div><div>Auth-Realm: <span class="" style="white-space:pre">        </span><a href="http://freeswitch.bashton.eu">freeswitch.bashton.eu</a></div><div>MWI-Account:<span class="" style="white-space:pre">        </span><a href="mailto:106@freeswitch.bashton.eu">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 class="" style="white-space:pre">        </span>external</div><div>Domain Name      <span class="" style="white-space:pre">        </span>N/A</div><div>Auto-NAT         <span class="" style="white-space:pre">        </span>false</div><div>DBName           <span class="" style="white-space:pre">        </span>sofia_reg_external</div><div>Pres Hosts       <span class="" style="white-space:pre">        </span></div><div>Dialplan         <span class="" style="white-space:pre">        </span>XML</div><div>Context          <span class="" style="white-space:pre">        </span>public</div><div>Challenge Realm  <span class="" style="white-space:pre">        </span>auto_to</div><div>RTP-IP           <span class="" style="white-space:pre">        </span>192.168.196.101</div><div>SIP-IP           <span class="" style="white-space:pre">        </span>192.168.196.101</div><div>URL              <span class="" style="white-space:pre">        </span><a href="http://sip:mod_sofia@192.168.196.101:5060">sip:mod_sofia@192.168.196.101:5060</a></div><div>BIND-URL         <span class="" style="white-space:pre">        </span>sip:mod_sofia@192.168.196.101:5060;transport=udp,tcp</div><div>HOLD-MUSIC       <span class="" style="white-space:pre">        </span>N/A</div><div>OUTBOUND-PROXY   <span class="" style="white-space:pre">        </span>N/A</div><div>CODECS IN        <span class="" style="white-space:pre">        </span>PCMU,PCMA</div><div>CODECS OUT       <span class="" style="white-space:pre">        </span></div><div>TEL-EVENT        <span class="" style="white-space:pre">        </span>101</div><div>DTMF-MODE        <span class="" style="white-space:pre">        </span>rfc2833</div><div>CNG              <span class="" style="white-space:pre">        </span>13</div><div>SESSION-TO       <span class="" style="white-space:pre">        </span>0</div><div>MAX-DIALOG       <span class="" style="white-space:pre">        </span>0</div><div>NOMEDIA          <span class="" style="white-space:pre">        </span>false</div><div>LATE-NEG         <span class="" style="white-space:pre">        </span>false</div><div>PROXY-MEDIA      <span class="" style="white-space:pre">        </span>false</div><div>ZRTP-PASSTHRU    <span class="" style="white-space:pre">        </span>false</div><div>AGGRESSIVENAT    <span class="" style="white-space:pre">        </span>false</div><div>CALLS-IN         <span class="" style="white-space:pre">        </span>2</div><div>FAILED-CALLS-IN  <span class="" style="white-space:pre">        </span>1</div><div>CALLS-OUT        <span class="" style="white-space:pre">        </span>0</div><div>FAILED-CALLS-OUT <span class="" style="white-space:pre">        </span>0</div><div>REGISTRATIONS    <span class="" style="white-space:pre">        </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 class="" style="white-space:pre">        </span>internal</div><div>Domain Name      <span class="" style="white-space:pre">        </span>N/A</div><div>Auto-NAT         <span class="" style="white-space:pre">        </span>false</div><div>DBName           <span class="" style="white-space:pre">        </span>sofia_reg_internal</div><div>Pres Hosts       <span class="" style="white-space:pre">        </span></div><div>Dialplan         <span class="" style="white-space:pre">        </span>XML</div><div>Context          <span class="" style="white-space:pre">        </span>default</div><div>Challenge Realm  <span class="" style="white-space:pre">        </span>auto_to</div><div>RTP-IP           <span class="" style="white-space:pre">        </span>192.168.196.101</div><div>Ext-RTP-IP       <span class="" style="white-space:pre">        </span>192.168.196.101</div><div>SIP-IP           <span class="" style="white-space:pre">        </span>192.168.196.101</div><div>Ext-SIP-IP       <span class="" style="white-space:pre">        </span>192.168.196.101</div><div>URL              <span class="" style="white-space:pre">        </span><a href="http://sip:mod_sofia@192.168.196.101:5080">sip:mod_sofia@192.168.196.101:5080</a></div><div>BIND-URL         <span class="" style="white-space:pre">        </span>sip:mod_sofia@192.168.196.101:5080;maddr=192.168.196.101;transport=udp</div><div>HOLD-MUSIC       <span class="" style="white-space:pre">        </span>N/A</div><div>OUTBOUND-PROXY   <span class="" style="white-space:pre">        </span>N/A</div><div>CODECS IN        <span class="" style="white-space:pre">        </span>PCMU,PCMA</div><div>CODECS OUT       <span class="" style="white-space:pre">        </span>PCMU,PCMA</div><div>TEL-EVENT        <span class="" style="white-space:pre">        </span>101</div><div>DTMF-MODE        <span class="" style="white-space:pre">        </span>rfc2833</div><div>CNG              <span class="" style="white-space:pre">        </span>13</div><div>SESSION-TO       <span class="" style="white-space:pre">        </span>0</div><div>MAX-DIALOG       <span class="" style="white-space:pre">        </span>0</div><div>NOMEDIA          <span class="" style="white-space:pre">        </span>false</div><div>LATE-NEG         <span class="" style="white-space:pre">        </span>false</div><div>PROXY-MEDIA      <span class="" style="white-space:pre">        </span>false</div><div>ZRTP-PASSTHRU    <span class="" style="white-space:pre">        </span>false</div><div>AGGRESSIVENAT    <span class="" style="white-space:pre">        </span>false</div><div>CALLS-IN         <span class="" style="white-space:pre">        </span>0</div><div>FAILED-CALLS-IN  <span class="" style="white-space:pre">        </span>0</div><div>CALLS-OUT        <span class="" style="white-space:pre">        </span>2</div><div>FAILED-CALLS-OUT <span class="" style="white-space:pre">        </span>2</div><div>REGISTRATIONS    <span class="" style="white-space:pre">        </span>1</div><div><br></div><div>freeswitch@internal&gt; sofia status </div><div>                     Name<span class="" style="white-space:pre">        </span>   Type<span class="" style="white-space:pre">        </span>                                      Data<span class="" style="white-space:pre">        </span>State</div><div>=================================================================================================</div><div>                 external<span class="" style="white-space:pre">        </span>profile<span class="" style="white-space:pre">        </span>        <a href="http://sip:mod_sofia@192.168.196.101:5060">sip:mod_sofia@192.168.196.101:5060</a><span class="" style="white-space:pre">        </span>RUNNING (0)</div><div>      external::magrathea<span class="" style="white-space:pre">        </span>gateway<span class="" style="white-space:pre">        </span>           <a href="mailto:sip%3Abashton@sipgw.magrathea.net">sip:bashton@sipgw.magrathea.net</a><span class="" style="white-space:pre">        </span>REGED</div><div>                 internal<span class="" style="white-space:pre">        </span>profile<span class="" style="white-space:pre">        </span>        <a href="http://sip:mod_sofia@192.168.196.101:5080">sip:mod_sofia@192.168.196.101:5080</a><span class="" style="white-space:pre">        </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">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">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">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">sip:07951357XXX@freeswitch.bashton.eu</a>&gt;;tag=rBeB1Nv1Bampm</div><div>To: &lt;<a href="http://sip:106@192.168.41.198:5060">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">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">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>