KAMAILIO tcp_send query, connection problem I have a KAMAILIO SIP server on a static IP from Comcast, using a modem/router Cisco DPC39412B.
I have a PC application server which is successfully signing on to the SIP server, via a LAN cable on the same network as the SIP server (Cisco).
In my second test, the PC application server is connected to the internet via a ZTE Falcon Z-917. In a third test, the PC application server is connected to the internet via a Talk-Talk fiber broadband. The connection does not occur.
From the log files, the successful connection says:
Apr 1 10:44:30 SIP-Server kamailio[7817]: DEBUG: <core> [tcp_main.c:2281]: tcpconn_send_put(): tcp_send: send from reader (7817 (14)), reusing fd
Apr 1 10:44:30 SIP-Server kamailio[7817]: DEBUG: <core> [tcp_main.c:2516]: tcpconn_do_send(): tcp_send: sending...
Apr 1 10:44:30 SIP-Server kamailio[7817]: DEBUG: <core> [tcp_main.c:2550]: tcpconn_do_send(): tcp_send: after real write: c= 0x7f6270b8a4a0 n=565 fd=1
On the failed connection:
Apr 1 09:41:23 SIP-Server kamailio[7816]: DEBUG: <core> [tcp_main.c:1818]: tcp_send(): tcp_send: no open tcp connection found, opening new one
Apr 1 09:41:23 SIP-Server kamailio[7816]: DEBUG: <core> [ip_addr.c:243]: print_ip(): tcpconn_new: new tcp connection: 192.168.0.146
Apr 1 09:41:23 SIP-Server kamailio[7816]: DEBUG: <core> [tcp_main.c:1073]: tcpconn_new(): tcpconn_new: on port 55133, type 3
Apr 1 09:41:23 SIP-Server kamailio[7816]: DEBUG: <core> [tcp_main.c:1382]: tcpconn_add(): tcpconn_add: hashes: 1776:802:0, 803
Apr 1 09:41:23 SIP-Server kamailio[7816]: DEBUG: tls [tls_server.c:184]: tls_complete_init(): Using TLS domain TLSc<default
A while later, I get:
Apr 1 09:41:37 SIP-Server kamailio[7804]: DEBUG: usrloc [urecord.c:357]: wb_timer(): Binding 'hvs_us_iphone','sip:hvs_us_iphone@172.56.8.182:44341;transport=TLS;line=75dc89bd64369c7' has expired
Apr 1 09:41:38 SIP-Server kamailio[7820]: DEBUG: <core> [tcp_main.c:4320]: tcpconn_main_timeout(): tcp_main: entering timer for 0x7f6270b8a4a0 (ticks=862851529, timeout=862909176 (3602 s), wr_timeout=862851529 (0 s)), write queue: 197 bytes
Apr 1 09:41:38 SIP-Server kamailio[7820]: ERROR: <core> [tcp_main.c:4338]: tcpconn_main_timeout(): connect 192.168.0.146:55133 failed (timeout)
Apr 1 09:41:38 SIP-Server kamailio[7820]: DEBUG: <core> [tcp_main.c:4362]: tcpconn_main_timeout(): tcp_main: timeout for 0x7f6270b8a4a
Any clues or tips would be greatly appreciated!
Ed
Hello,
opening the tcp connection failed due to timeout, indicating that no one was listening on the target address, which seems to be 172.56.8.182:44341 -- is any app listening at that address?
Cheers, Daniel
On 01/04/16 20:37, Ed Todd wrote:
KAMAILIO tcp_send query, connection problem
I have a KAMAILIO SIP server on a static IP from Comcast, using a modem/router Cisco DPC39412B.
I have a PC application server which is successfully signing on to the SIP server, via a LAN cable on the same network as the SIP server (Cisco).
In my second test, the PC application server is connected to the internet via a ZTE Falcon Z-917. In a third test, the PC application server is connected to the internet via a Talk-Talk fiber broadband. The connection does not occur.
From the log files, the successful connection says:
/Apr 1 10:44:30 SIP-Server kamailio[7817]: DEBUG: <core> [tcp_main.c:2281]: tcpconn_send_put(): tcp_send: send from reader (7817 (14)), reusing fd/
/Apr 1 10:44:30 SIP-Server kamailio[7817]: DEBUG: <core> [tcp_main.c:2516]: tcpconn_do_send(): tcp_send: sending.../
/Apr 1 10:44:30 SIP-Server kamailio[7817]: DEBUG: <core> [tcp_main.c:2550]: tcpconn_do_send(): tcp_send: after real write: c= 0x7f6270b8a4a0 n=565 fd=1/
On the failed connection:
/Apr 1 09:41:23 SIP-Server kamailio[7816]: DEBUG: <core> [tcp_main.c:1818]: tcp_send(): tcp_send: no open tcp connection found, opening new one/
/Apr 1 09:41:23 SIP-Server kamailio[7816]: DEBUG: <core> [ip_addr.c:243]: print_ip(): tcpconn_new: new tcp connection: 192.168.0.146/
/Apr 1 09:41:23 SIP-Server kamailio[7816]: DEBUG: <core> [tcp_main.c:1073]: tcpconn_new(): tcpconn_new: on port 55133, type 3/
/Apr 1 09:41:23 SIP-Server kamailio[7816]: DEBUG: <core> [tcp_main.c:1382]: tcpconn_add(): tcpconn_add: hashes: 1776:802:0, 803/
/Apr 1 09:41:23 SIP-Server kamailio[7816]: DEBUG: tls [tls_server.c:184]: tls_complete_init(): Using TLS domain TLSc<default/
A while later, I get:
/Apr 1 09:41:37 SIP-Server kamailio[7804]: DEBUG: usrloc [urecord.c:357]: wb_timer(): Binding 'hvs_us_iphone','sip:hvs_us_iphone@172.56.8.182:44341;transport=TLS;line=75dc89bd64369c7' has expired/
/Apr 1 09:41:38 SIP-Server kamailio[7820]: DEBUG: <core> [tcp_main.c:4320]: tcpconn_main_timeout(): tcp_main: entering timer for 0x7f6270b8a4a0 (ticks=862851529, timeout=862909176 (3602 s), wr_timeout=862851529 (0 s)), write queue: 197 bytes/
/Apr 1 09:41:38 SIP-Server kamailio[7820]: ERROR: <core> [tcp_main.c:4338]: tcpconn_main_timeout(): connect 192.168.0.146:55133 failed (timeout)/
/Apr 1 09:41:38 SIP-Server kamailio[7820]: DEBUG: <core> [tcp_main.c:4362]: tcpconn_main_timeout(): tcp_main: timeout for 0x7f6270b8a4a/
Any clues or tips would be greatly appreciated!
Ed
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users