I know there are many posts with this issue, I have tried all that is possible but it is still disconnecting.
Let me explain my setup.
I have a simple full cone NAT on a router which has an external IP and the internal LAN is 192.xx.xx.xx
Fusion PBX resides on a computer inside the LAN which doesn't know about the external IP.
I have setup an external sip profile and modified the external-rtp-ip host:hostname.com and external-sip-ip to host:hostname.com ----> Setting 1
This external sip runs on port 5090. On the router I have port forwarded tcp/udp from the internet to reach 5090 on the Fusion PBX.
With the above setting. When a sip client in the internet tries to register with the sip server using TCP, the registration never reaches fusion pbx.
I had to change the external-sip-ip to local-ip or nat.auto - for the registration to reach the freeswitch. ----> Setting 2
Now with the setting 2, SIP client from the internet registers via TCP, the client is able to make outgoing calls, but the call disconnects with a BYE from freeswitch to the SIP client, after 32 seconds saying Reason: SIP;cause=408;text="ACK Timeout"
I have seen everywhere people suggesting using TCP should solve this - I am using TCP but yet getting this.
Can you see a possible cause for this, when the server sends a BYE, the SIP client responds with a 200 OK
BYE sip:6002@externalipofsipclient:65073;transport=TCP SIP/2.0
Via: SIP/2.0/TCP internalipofpbx:5090;rport;branch=z9hG4bK52gXF5m5jSK8r
Max-Forwards: 70
From: <sip:mobilenumber@hostnameofpbx.com:11500>;tag=B306egDNBDZUm
To: <sip:6002@hostnameofpbx.com:11500;transport=TCP>;tag=dfd1fe6f
Call-ID: b4GrskLkTZZnXx7r063nsA..
CSeq: 39051233 BYE
Contact: <sip:mobilenumber@internaipofpbx:5090;transport=tcp>
User-Agent: FreeSWITCH
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
Supported: timer, path, replaces
Reason: SIP;cause=408;text="ACK Timeout"
Content-Length: 0
recv 421 bytes from tcp/[externalipofsipclientfrominternet]:65073 at 16:17:30.096517:
------------------------------------------------------------------------
SIP/2.0 200 OK
Via: SIP/2.0/TCP 192.168.1.14:5090;rport=11500;branch=z9hG4bK52gXF5m5jSK8r;received=externalIPofSIPserver
Contact: <sip:6002@externalIPofSIPclientfrominternet:65073;transport=TCP>
To: <sip:6002@hostnameofpbx.com:11500;transport=TCP>;tag=dfd1fe6f
From: <sip:mobile@hostnameofpbx.com:11500>;tag=B306egDNBDZUm
Call-ID: b4GrskLkTZZnXx7r063nsA..
CSeq: 39051233 BYE
User-Agent: Zoiper rv2.10.12.3-mod
Content-Length: 0
However the following is the message that is repeatedly sent by the PBX to client which fails to get a response
SIP/2.0 200 OK
Via: SIP/2.0/TCP internalipofsipclient:45899;branch=z9hG4bK-524287-1---af9f403efa5df485;rport=65073;received=externalipofsipclient
From: <sip:6002@hostnameofpbx.com:11500;transport=TCP>;tag=dfd1fe6f
To: <sip:mobilenumber@hostnameofpbx.com:11500>;tag=B306egDNBDZUm
Call-ID: b4GrskLkTZZnXx7r063nsA..
CSeq: 2 INVITE
Contact: <sip:mobilenumber@internalipofpbx:5090;transport=tcp>
User-Agent: FreeSWITCH
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, refer
Session-Expires: 120;refresher=uas
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 247
Remote-Party-ID: "Outbound Call" <sip:mobilenumber@hostnameofpbx.com>;party=calling;privacy=off;screen=no
Let me explain my setup.
I have a simple full cone NAT on a router which has an external IP and the internal LAN is 192.xx.xx.xx
Fusion PBX resides on a computer inside the LAN which doesn't know about the external IP.
I have setup an external sip profile and modified the external-rtp-ip host:hostname.com and external-sip-ip to host:hostname.com ----> Setting 1
This external sip runs on port 5090. On the router I have port forwarded tcp/udp from the internet to reach 5090 on the Fusion PBX.
With the above setting. When a sip client in the internet tries to register with the sip server using TCP, the registration never reaches fusion pbx.
I had to change the external-sip-ip to local-ip or nat.auto - for the registration to reach the freeswitch. ----> Setting 2
Now with the setting 2, SIP client from the internet registers via TCP, the client is able to make outgoing calls, but the call disconnects with a BYE from freeswitch to the SIP client, after 32 seconds saying Reason: SIP;cause=408;text="ACK Timeout"
I have seen everywhere people suggesting using TCP should solve this - I am using TCP but yet getting this.
Can you see a possible cause for this, when the server sends a BYE, the SIP client responds with a 200 OK
BYE sip:6002@externalipofsipclient:65073;transport=TCP SIP/2.0
Via: SIP/2.0/TCP internalipofpbx:5090;rport;branch=z9hG4bK52gXF5m5jSK8r
Max-Forwards: 70
From: <sip:mobilenumber@hostnameofpbx.com:11500>;tag=B306egDNBDZUm
To: <sip:6002@hostnameofpbx.com:11500;transport=TCP>;tag=dfd1fe6f
Call-ID: b4GrskLkTZZnXx7r063nsA..
CSeq: 39051233 BYE
Contact: <sip:mobilenumber@internaipofpbx:5090;transport=tcp>
User-Agent: FreeSWITCH
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
Supported: timer, path, replaces
Reason: SIP;cause=408;text="ACK Timeout"
Content-Length: 0
recv 421 bytes from tcp/[externalipofsipclientfrominternet]:65073 at 16:17:30.096517:
------------------------------------------------------------------------
SIP/2.0 200 OK
Via: SIP/2.0/TCP 192.168.1.14:5090;rport=11500;branch=z9hG4bK52gXF5m5jSK8r;received=externalIPofSIPserver
Contact: <sip:6002@externalIPofSIPclientfrominternet:65073;transport=TCP>
To: <sip:6002@hostnameofpbx.com:11500;transport=TCP>;tag=dfd1fe6f
From: <sip:mobile@hostnameofpbx.com:11500>;tag=B306egDNBDZUm
Call-ID: b4GrskLkTZZnXx7r063nsA..
CSeq: 39051233 BYE
User-Agent: Zoiper rv2.10.12.3-mod
Content-Length: 0
However the following is the message that is repeatedly sent by the PBX to client which fails to get a response
SIP/2.0 200 OK
Via: SIP/2.0/TCP internalipofsipclient:45899;branch=z9hG4bK-524287-1---af9f403efa5df485;rport=65073;received=externalipofsipclient
From: <sip:6002@hostnameofpbx.com:11500;transport=TCP>;tag=dfd1fe6f
To: <sip:mobilenumber@hostnameofpbx.com:11500>;tag=B306egDNBDZUm
Call-ID: b4GrskLkTZZnXx7r063nsA..
CSeq: 2 INVITE
Contact: <sip:mobilenumber@internalipofpbx:5090;transport=tcp>
User-Agent: FreeSWITCH
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, refer
Session-Expires: 120;refresher=uas
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 247
Remote-Party-ID: "Outbound Call" <sip:mobilenumber@hostnameofpbx.com>;party=calling;privacy=off;screen=no
Last edited: