<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I found the problem. it is about Kamailio-master. When i test on 5.2 version, it can relay tcp sip request to other side. I think it is a bug for tcp connection.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
UAC:IPv6:TCP ---> Kamailio (5.2):IPv6:TCP ---> Kamailio:IPv6:TCP (works)</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> sr-users <sr-users-bounces@lists.kamailio.org> on behalf of YASIN CANER <caner_yaso@hotmail.com><br>
<b>Sent:</b> Thursday, January 31, 2019 3:01 PM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List<br>
<b>Subject:</b> [SR-Users] ERROR : EAGAIN and write queue full or failed for tcp Connection</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Kamailio gave this error that couldnt bind tcp connection other side. </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Yasin CANER</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Kamailio IPv6:TCP: -----> IPv6:TCP Kamailio -----> X ERROR XXXX IPv6:TCP Kamailio</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
IPv6::C IPv6::8 IPv6::5</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
LOGS: </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><br>
</span>
<div> 7(15781) DEBUG: <core> [core/msg_translator.c:2937]: create_via_hf(): id added: <;i=1>, rcv proto=2<br>
</div>
<div> 7(15781) DEBUG: <core> [core/msg_translator.c:162]: check_via_address(): (FD61:C23C:B3B6:0:0:0:0:C, [FD61:C23C:B3B6:0:0:0:0:C], 0)<br>
</div>
<div> 7(15781) DEBUG: <core> [core/tcp_main.c:1977]: tcp_send(): no open tcp connection found, opening new one<br>
</div>
<div> 7(15781) DEBUG: <core> [core/ip_addr.c:242]: print_ip(): tcpconn_new: new tcp connection: fd61:c23c:b3b6:0:0:0:0:5<br>
</div>
<div> <br>
</div>
<div> 7(15781) DEBUG: <core> [core/tcp_main.c:1229]: tcpconn_new(): on port 5060, type 2<br>
</div>
<div> 7(15781) DEBUG: <core> [core/tcp_main.c:1539]: tcpconn_add(): hashes: 507:2382:0, 2<br>
</div>
<div><u> 7(15781) DEBUG: <core> [core/tcp_main.c:2873]: tcpconn_1st_send(): pending write on new connection 0x7fd15b5e7c98 (-1/1483 bytes written) (err: 11 - Resource temporarily unavailable)</u><br>
</div>
<div> <u>7(15781) ERROR: <core> [core/tcp_main.c:2891]: tcpconn_1st_send(): [FD61:C23C:B3B6:0:0:0:0:5]:5060: EAGAIN and write queue full or failed for 0x7fd15b5e7c98</u><br>
</div>
<div> 7(15781) DEBUG: <core> [core/tcp_main.c:3153]: tcpconn_chld_put(): destroying connection 0x7fd15b5e7c98 (2, -1) flags 0060<br>
</div>
<div> <br>
</div>
<div> 7(15781) ERROR: tm [../../core/forward.h:251]: msg_send_buffer(): tcp_send failed<br>
</div>
<div> 7(15781) DEBUG: tm [t_fwd.c:1549]: t_send_branch(): send to FD61:C23C:B3B6:0:0:0:0:5:5060 (2) failed<br>
</div>
<span> 7(15781) WARNING: tm [t_fwd.c:1567]: t_send_branch(): sending request on branch 0 failed</span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span>CONF:</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><span>dns_try_ipv6=yes<br>
</span>
<div>dns_retr_time=1<br>
</div>
<div>dns_retr_no=1<br>
</div>
<div>dns_cache_flags=4<br>
</div>
<div>tcp_source_ipv6 = [fd61:c23c:b3b6::8]<br>
</div>
<div><br>
</div>
<div>tcp_async=yes<br>
</div>
<div>tcp_rd_buf_size=65536<br>
</div>
<span>tcp_wq_blk_size=3000</span><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><span>listen=tcp:[fd61:c23c:b3b6::8]:5060<br>
</span></span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><span>tcp_connection_lifetime=3605<br>
</span></span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><span><br>
</span></span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><span>listen=tcp:[fd61:c23c:b3b6::8]:5060<br>
</span></span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><span>.....</span></span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><span><br>
</span></span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><span>route[]{</span></span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><span><br>
</span></span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><span><span><br>
</span>
<div>remove_hf("Route");<br>
</div>
<div>#loose_route();<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>if (!is_method("INVITE")) return;<br>
</div>
<div>$du="sip: mykamailio1.test:5060;transport=tcp";<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>if(!t_newtran()){<br>
</div>
<div> xlog("L_WARN"," Couldnt create new transaction \r\n");<br>
</div>
<div> sl_send_reply("503", "Service not available");<br>
</div>
<div> exit;<br>
</div>
<div>}<br>
</div>
<div><br>
</div>
<div>if(!t_relay()){<br>
</div>
<div> send_reply("503", "Service not available");<br>
</div>
<div> exit;<br>
</div>
<span>}</span><br>
</span></span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><span><span>exit;</span></span></span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><span><span>}</span></span></span></div>
</div>
</div>
</body>
</html>