<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<H1 style="MARGIN: 12pt 0in 0pt; LINE-HEIGHT: 17pt"><FONT 
face="Calibri Light"><FONT style="FONT-SIZE: 16pt" color=#2e74b5><FONT 
style="FONT-WEIGHT: normal">KAMAILIO tcp_send query, connection 
problem</FONT></FONT></FONT></H1>
<P class=MsoNormal style="MARGIN: 0in 0in 8pt; LINE-HEIGHT: 12pt"><FONT 
style="FONT-SIZE: 11pt">I have a KAMAILIO SIP server on a static IP from 
Comcast, using a modem/router Cisco DPC39412B.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 8pt; LINE-HEIGHT: 12pt"><FONT 
style="FONT-SIZE: 11pt">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). </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 8pt; LINE-HEIGHT: 12pt"><FONT 
style="FONT-SIZE: 11pt">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.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 8pt; LINE-HEIGHT: 12pt"><FONT 
style="FONT-SIZE: 11pt">From the log files, the successful connection 
says:</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 8pt; LINE-HEIGHT: 12pt"><I 
style="mso-bidi-font-style: normal"><FONT style="FONT-SIZE: 11pt">Apr<SPAN 
style="mso-spacerun: yes">  </SPAN>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</FONT></I></P>
<P class=MsoNormal style="MARGIN: 0in 0in 8pt; LINE-HEIGHT: 12pt"><I 
style="mso-bidi-font-style: normal"><FONT style="FONT-SIZE: 11pt">Apr<SPAN 
style="mso-spacerun: yes">  </SPAN>1 10:44:30 SIP-Server kamailio[7817]: 
DEBUG: <core> [tcp_main.c:2516]: tcpconn_do_send(): tcp_send: 
sending...</FONT></I></P>
<P class=MsoNormal style="MARGIN: 0in 0in 8pt; LINE-HEIGHT: 12pt"><I 
style="mso-bidi-font-style: normal"><FONT style="FONT-SIZE: 11pt">Apr<SPAN 
style="mso-spacerun: yes">  </SPAN>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</FONT></I></P>
<P class=MsoNormal style="MARGIN: 0in 0in 8pt; LINE-HEIGHT: 12pt"><FONT 
style="FONT-SIZE: 11pt">On the failed connection:</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 8pt; LINE-HEIGHT: 12pt"><I 
style="mso-bidi-font-style: normal"><FONT style="FONT-SIZE: 11pt">Apr<SPAN 
style="mso-spacerun: yes">  </SPAN>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</FONT></I></P>
<P class=MsoNormal style="MARGIN: 0in 0in 8pt; LINE-HEIGHT: 12pt"><I 
style="mso-bidi-font-style: normal"><FONT style="FONT-SIZE: 11pt">Apr<SPAN 
style="mso-spacerun: yes">  </SPAN>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</FONT></I></P>
<P class=MsoNormal style="MARGIN: 0in 0in 8pt; LINE-HEIGHT: 12pt"><I 
style="mso-bidi-font-style: normal"><FONT style="FONT-SIZE: 11pt">Apr<SPAN 
style="mso-spacerun: yes">  </SPAN>1 09:41:23 SIP-Server kamailio[7816]: 
DEBUG: <core> [tcp_main.c:1073]: tcpconn_new(): tcpconn_new: on port 
55133, type 3</FONT></I></P>
<P class=MsoNormal style="MARGIN: 0in 0in 8pt; LINE-HEIGHT: 12pt"><I 
style="mso-bidi-font-style: normal"><FONT style="FONT-SIZE: 11pt">Apr<SPAN 
style="mso-spacerun: yes">  </SPAN>1 09:41:23 SIP-Server kamailio[7816]: 
DEBUG: <core> [tcp_main.c:1382]: tcpconn_add(): tcpconn_add: hashes: 
1776:802:0, 803</FONT></I></P>
<P class=MsoNormal style="MARGIN: 0in 0in 8pt; LINE-HEIGHT: 12pt"><I 
style="mso-bidi-font-style: normal"><FONT style="FONT-SIZE: 11pt">Apr<SPAN 
style="mso-spacerun: yes">  </SPAN>1 09:41:23 SIP-Server kamailio[7816]: 
DEBUG: tls [tls_server.c:184]: tls_complete_init(): Using TLS domain 
TLSc<default</FONT></I></P>
<P class=MsoNormal style="MARGIN: 0in 0in 8pt; LINE-HEIGHT: 12pt"><FONT 
style="FONT-SIZE: 11pt">A while later, I get:</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 8pt; LINE-HEIGHT: 12pt"><I 
style="mso-bidi-font-style: normal"><FONT style="FONT-SIZE: 11pt">Apr<SPAN 
style="mso-spacerun: yes">  </SPAN>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</FONT></I></P>
<P class=MsoNormal style="MARGIN: 0in 0in 8pt; LINE-HEIGHT: 12pt"><I 
style="mso-bidi-font-style: normal"><FONT style="FONT-SIZE: 11pt">Apr<SPAN 
style="mso-spacerun: yes">  </SPAN>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</FONT></I></P>
<P class=MsoNormal style="MARGIN: 0in 0in 8pt; LINE-HEIGHT: 12pt"><I 
style="mso-bidi-font-style: normal"><FONT style="FONT-SIZE: 11pt">Apr<SPAN 
style="mso-spacerun: yes">  </SPAN>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)</FONT></I></P>
<P class=MsoNormal style="MARGIN: 0in 0in 8pt; LINE-HEIGHT: 12pt"><I 
style="mso-bidi-font-style: normal"><FONT style="FONT-SIZE: 11pt">Apr<SPAN 
style="mso-spacerun: yes">  </SPAN>1 09:41:38 SIP-Server kamailio[7820]: 
DEBUG: <core> [tcp_main.c:4362]: tcpconn_main_timeout(): tcp_main: timeout 
for 0x7f6270b8a4a</FONT></I></P>
<P class=MsoNormal style="MARGIN: 0in 0in 8pt; LINE-HEIGHT: 12pt"><FONT 
style="FONT-SIZE: 11pt">Any clues or tips would be greatly 
appreciated!</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 8pt; LINE-HEIGHT: 12pt"><FONT 
style="FONT-SIZE: 11pt"></FONT> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 8pt; LINE-HEIGHT: 12pt"><FONT 
style="FONT-SIZE: 11pt">Ed</FONT></P></DIV></DIV></BODY></HTML>