Hello,
Kamailio gave this error that couldnt bind tcp connection other side.
Thanks
Yasin CANER
Kamailio IPv6:TCP: -----> IPv6:TCP Kamailio -----> X ERROR XXXX IPv6:TCP Kamailio IPv6::C IPv6::8 IPv6::5
LOGS:
7(15781) DEBUG: <core> [core/msg_translator.c:2937]: create_via_hf(): id added: <;i=1>, rcv proto=2 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) 7(15781) DEBUG: <core> [core/tcp_main.c:1977]: tcp_send(): no open tcp connection found, opening new one 7(15781) DEBUG: <core> [core/ip_addr.c:242]: print_ip(): tcpconn_new: new tcp connection: fd61:c23c:b3b6:0:0:0:0:5
7(15781) DEBUG: <core> [core/tcp_main.c:1229]: tcpconn_new(): on port 5060, type 2 7(15781) DEBUG: <core> [core/tcp_main.c:1539]: tcpconn_add(): hashes: 507:2382:0, 2 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) 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 7(15781) DEBUG: <core> [core/tcp_main.c:3153]: tcpconn_chld_put(): destroying connection 0x7fd15b5e7c98 (2, -1) flags 0060
7(15781) ERROR: tm [../../core/forward.h:251]: msg_send_buffer(): tcp_send failed 7(15781) DEBUG: tm [t_fwd.c:1549]: t_send_branch(): send to FD61:C23C:B3B6:0:0:0:0:5:5060 (2) failed 7(15781) WARNING: tm [t_fwd.c:1567]: t_send_branch(): sending request on branch 0 failed
CONF:
dns_try_ipv6=yes dns_retr_time=1 dns_retr_no=1 dns_cache_flags=4 tcp_source_ipv6 = [fd61:c23c:b3b6::8]
tcp_async=yes tcp_rd_buf_size=65536 tcp_wq_blk_size=3000 listen=tcp:[fd61:c23c:b3b6::8]:5060 tcp_connection_lifetime=3605
listen=tcp:[fd61:c23c:b3b6::8]:5060 .....
route[]{
remove_hf("Route"); #loose_route();
if (!is_method("INVITE")) return; $du="sip: mykamailio1.test:5060;transport=tcp";
if(!t_newtran()){ xlog("L_WARN"," Couldnt create new transaction \r\n"); sl_send_reply("503", "Service not available"); exit; }
if(!t_relay()){ send_reply("503", "Service not available"); exit; } exit; }
On Thu, Jan 31, 2019 at 12:01:26PM +0000, YASIN CANER wrote:
Kamailio gave this error that couldnt bind tcp connection other side.
No idea, what might be wrong with you conf. But you might start by making a packetdump (of all traffic except eg ssh on all interfaces) to see if the problem is related to kamailio or some network related config on the machine.
Hello,
it is default configuration works on TCP connection. Kamailio version is master ,also problem is tested on other versions. I tried to make call with sip-client and gives same error. in my search , EAGAIN error is about NIO connection problem in C that there isnt any room to write or any resource.
I will install another kamailio-node to test it .
Thanks
Yasin CANER
________________________________ From: sr-users sr-users-bounces@lists.kamailio.org on behalf of Daniel Tryba d.tryba@pocos.nl Sent: Thursday, January 31, 2019 5:07 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] ERROR : EAGAIN and write queue full or failed for tcp Connection
On Thu, Jan 31, 2019 at 12:01:26PM +0000, YASIN CANER wrote:
Kamailio gave this error that couldnt bind tcp connection other side.
No idea, what might be wrong with you conf. But you might start by making a packetdump (of all traffic except eg ssh on all interfaces) to see if the problem is related to kamailio or some network related config on the machine.
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hello,
not clear from your messages so far, is relaying from TCP/IPVv4 to TCP/IPv6 not working with master, or all TCP sending fails no matter if IPv4 or IPv6 in both sides?
Cheers, Daniel
On 01.02.19 07:12, YASIN CANER wrote:
Hello,
it is default configuration works on TCP connection. Kamailio version is master ,also problem is tested on other versions. I tried to make call with sip-client and gives same error. in my search , EAGAIN error is about NIO connection problem in C that there isnt any room to write or any resource.
I will install another kamailio-node to test it .
Thanks
Yasin CANER
*From:* sr-users sr-users-bounces@lists.kamailio.org on behalf of Daniel Tryba d.tryba@pocos.nl *Sent:* Thursday, January 31, 2019 5:07 PM *To:* Kamailio (SER) - Users Mailing List *Subject:* Re: [SR-Users] ERROR : EAGAIN and write queue full or failed for tcp Connection On Thu, Jan 31, 2019 at 12:01:26PM +0000, YASIN CANER wrote:
Kamailio gave this error that couldnt bind tcp connection other side.
No idea, what might be wrong with you conf. But you might start by making a packetdump (of all traffic except eg ssh on all interfaces) to see if the problem is related to kamailio or some network related config on the machine.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hello
Both of them , IPv4 and IPv6 tcp connection relaying cause error.
I compared master and 5.2 on github. There is a few changes on tcp_main.c file.
Regards.
Daniel-Constantin Mierla <miconda@gmail.commailto:miconda@gmail.com> şunları yazdı (7 Şub 2019 11:37):
Hello,
not clear from your messages so far, is relaying from TCP/IPVv4 to TCP/IPv6 not working with master, or all TCP sending fails no matter if IPv4 or IPv6 in both sides?
Cheers, Daniel
On 01.02.19 07:12, YASIN CANER wrote: Hello,
it is default configuration works on TCP connection. Kamailio version is master ,also problem is tested on other versions. I tried to make call with sip-client and gives same error. in my search , EAGAIN error is about NIO connection problem in C that there isnt any room to write or any resource.
I will install another kamailio-node to test it .
Thanks
Yasin CANER
________________________________ From: sr-users sr-users-bounces@lists.kamailio.orgmailto:sr-users-bounces@lists.kamailio.org on behalf of Daniel Tryba d.tryba@pocos.nlmailto:d.tryba@pocos.nl Sent: Thursday, January 31, 2019 5:07 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] ERROR : EAGAIN and write queue full or failed for tcp Connection
On Thu, Jan 31, 2019 at 12:01:26PM +0000, YASIN CANER wrote:
Kamailio gave this error that couldnt bind tcp connection other side.
No idea, what might be wrong with you conf. But you might start by making a packetdump (of all traffic except eg ssh on all interfaces) to see if the problem is related to kamailio or some network related config on the machine.
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.comhttp://www.asipto.com www.twitter.com/micondahttp://www.twitter.com/miconda -- www.linkedin.com/in/micondahttp://www.linkedin.com/in/miconda Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.comhttp://www.kamailioworld.com Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.comhttp://www.asipto.com
Hello,
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.
Thanks.
UAC:IPv6:TCP ---> Kamailio (5.2):IPv6:TCP ---> Kamailio:IPv6:TCP (works)
________________________________ From: sr-users sr-users-bounces@lists.kamailio.org on behalf of YASIN CANER caner_yaso@hotmail.com Sent: Thursday, January 31, 2019 3:01 PM To: Kamailio (SER) - Users Mailing List Subject: [SR-Users] ERROR : EAGAIN and write queue full or failed for tcp Connection
Hello,
Kamailio gave this error that couldnt bind tcp connection other side.
Thanks
Yasin CANER
Kamailio IPv6:TCP: -----> IPv6:TCP Kamailio -----> X ERROR XXXX IPv6:TCP Kamailio IPv6::C IPv6::8 IPv6::5
LOGS:
7(15781) DEBUG: <core> [core/msg_translator.c:2937]: create_via_hf(): id added: <;i=1>, rcv proto=2 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) 7(15781) DEBUG: <core> [core/tcp_main.c:1977]: tcp_send(): no open tcp connection found, opening new one 7(15781) DEBUG: <core> [core/ip_addr.c:242]: print_ip(): tcpconn_new: new tcp connection: fd61:c23c:b3b6:0:0:0:0:5
7(15781) DEBUG: <core> [core/tcp_main.c:1229]: tcpconn_new(): on port 5060, type 2 7(15781) DEBUG: <core> [core/tcp_main.c:1539]: tcpconn_add(): hashes: 507:2382:0, 2 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) 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 7(15781) DEBUG: <core> [core/tcp_main.c:3153]: tcpconn_chld_put(): destroying connection 0x7fd15b5e7c98 (2, -1) flags 0060
7(15781) ERROR: tm [../../core/forward.h:251]: msg_send_buffer(): tcp_send failed 7(15781) DEBUG: tm [t_fwd.c:1549]: t_send_branch(): send to FD61:C23C:B3B6:0:0:0:0:5:5060 (2) failed 7(15781) WARNING: tm [t_fwd.c:1567]: t_send_branch(): sending request on branch 0 failed
CONF:
dns_try_ipv6=yes dns_retr_time=1 dns_retr_no=1 dns_cache_flags=4 tcp_source_ipv6 = [fd61:c23c:b3b6::8]
tcp_async=yes tcp_rd_buf_size=65536 tcp_wq_blk_size=3000 listen=tcp:[fd61:c23c:b3b6::8]:5060 tcp_connection_lifetime=3605
listen=tcp:[fd61:c23c:b3b6::8]:5060 .....
route[]{
remove_hf("Route"); #loose_route();
if (!is_method("INVITE")) return; $du="sip: mykamailio1.test:5060;transport=tcp";
if(!t_newtran()){ xlog("L_WARN"," Couldnt create new transaction \r\n"); sl_send_reply("503", "Service not available"); exit; }
if(!t_relay()){ send_reply("503", "Service not available"); exit; } exit; }
Am Dienstag, 5. Februar 2019, 06:31:02 CET schrieb YASIN CANER:
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.
Thanks.
Hi Yasin,
did I understood you correctly, you think there is a bug in kamailio git master related to TCP handling? Would be great if then you could open an issue with more details about it.
Best regards,
Henning
UAC:IPv6:TCP ---> Kamailio (5.2):IPv6:TCP ---> Kamailio:IPv6:TCP (works)
From: sr-users sr-users-bounces@lists.kamailio.org on behalf of YASIN CANER caner_yaso@hotmail.com Sent: Thursday, January 31, 2019 3:01 PM To: Kamailio (SER) - Users Mailing List Subject: [SR-Users] ERROR : EAGAIN and write queue full or failed for tcp Connection
Hello,
Kamailio gave this error that couldnt bind tcp connection other side.
Thanks
Yasin CANER
Kamailio IPv6:TCP: -----> IPv6:TCP Kamailio -----> X ERROR XXXX IPv6:TCP Kamailio IPv6::C IPv6::8 IPv6::5
LOGS:
7(15781) DEBUG: <core> [core/msg_translator.c:2937]: create_via_hf(): id added: <;i=1>, rcv proto=2 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) 7(15781) DEBUG: <core> [core/tcp_main.c:1977]: tcp_send(): no open tcp connection found, opening new one 7(15781) DEBUG: <core> [core/ip_addr.c:242]: print_ip(): tcpconn_new: new tcp connection: fd61:c23c:b3b6:0:0:0:0:5
7(15781) DEBUG: <core> [core/tcp_main.c:1229]: tcpconn_new(): on port 5060, type 2 7(15781) DEBUG: <core> [core/tcp_main.c:1539]: tcpconn_add(): hashes: 507:2382:0, 2 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) 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 7(15781) DEBUG: <core> [core/tcp_main.c:3153]: tcpconn_chld_put(): destroying connection 0x7fd15b5e7c98 (2, -1) flags 0060
7(15781) ERROR: tm [../../core/forward.h:251]: msg_send_buffer(): tcp_send failed 7(15781) DEBUG: tm [t_fwd.c:1549]: t_send_branch(): send to FD61:C23C:B3B6:0:0:0:0:5:5060 (2) failed 7(15781) WARNING: tm [t_fwd.c:1567]: t_send_branch(): sending request on branch 0 failed
CONF:
dns_try_ipv6=yes dns_retr_time=1 dns_retr_no=1 dns_cache_flags=4 tcp_source_ipv6 = [fd61:c23c:b3b6::8]
tcp_async=yes tcp_rd_buf_size=65536 tcp_wq_blk_size=3000 listen=tcp:[fd61:c23c:b3b6::8]:5060 tcp_connection_lifetime=3605
listen=tcp:[fd61:c23c:b3b6::8]:5060 .....
route[]{
remove_hf("Route"); #loose_route();
if (!is_method("INVITE")) return; $du="sip: mykamailio1.test:5060;transport=tcp";
if(!t_newtran()){ xlog("L_WARN"," Couldnt create new transaction \r\n"); sl_send_reply("503", "Service not available"); exit; }
if(!t_relay()){ send_reply("503", "Service not available"); exit; } exit; }
Am Dienstag, 5. Februar 2019, 22:12:14 CET schrieb Henning Westerholt:
Am Dienstag, 5. Februar 2019, 06:31:02 CET schrieb YASIN CANER:
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.
Just found it, sorry.