[OpenSIPS-Users] UDP vs TCP/TLS

Răzvan Crainea razvan at opensips.org
Thu Apr 17 14:34:24 CEST 2014


Hi, Leo!

 From the logs, for me it is pretty clear that the connection does not 
exist, therefore OpenSIPS cannot contact your client behind NAT.
After finally managing to call over TCP (after 10 seconds or so), 
placing another call succeeds? Or you can never call that client over TCP?

Best regards,

Razvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 04/17/2014 12:23 PM, leo wrote:
> Enabling debug, when i call the client, i see a lot of events like:
>
> Apr 17 11:15:50 sip-lab /usr/local/opensips110/sbin/opensips[21281]:
> ERROR:nathelper:msg_send: tcp_send failed
> Apr 17 11:15:50 sip-lab /usr/local/opensips110/sbin/opensips[21281]:
> ERROR:nathelper:nh_timer: sip msg_send failed!
>
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> ERROR:core:tcp_blocking_connect: timeout 10 s elapsed from 10 s
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> ERROR:core:tcpconn_connect: tcp_blocking_connect failed
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> ERROR:core:tcp_send: connect failed
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> ERROR:tm:msg_send: tcp_send failed
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> ERROR:tm:t_forward_nonack: sending request failed
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:tcp_send: no open tcp connection found, opening new one
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: getsockopt: snd is initially 16384
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: trying : 32768
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: setting snd: set=32768,verify=65536
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: trying : 65536
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: setting snd: set=65536,verify=131072
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: trying : 131072
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: setting snd: set=131072,verify=262142
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: trying : 262144
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: setting snd: set=262144,verify=262142
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: setting buf has no effect
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: trying : 133120
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: setting snd: set=133120,verify=262142
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: trying : 135168
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: setting snd: set=135168,verify=262142
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: trying : 137216
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: setting snd: set=137216,verify=262142
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: trying : 139264
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: setting snd: set=139264,verify=262142
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: trying : 141312
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: setting snd: set=141312,verify=262142
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: trying : 143360
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: setting snd: set=143360,verify=262142
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: trying : 145408
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: setting snd: set=145408,verify=262142
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: trying : 147456
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: setting snd: set=147456,verify=262142
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: trying : 149504
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: setting snd: set=149504,verify=262142
> Apr 17 11:15:56 sip-lab /usr/local/opensips110/sbin/opensips[21282]:
> DBG:core:probe_max_sock_buff: trying : 151552
>
>
>
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/UDP-vs-TCP-TLS-tp7590719p7590788.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



More information about the Users mailing list