<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><tt>Hi, Diego!<br>
<br>
According to your logs, OpenSIPS was unable to receive any data
because the client close the connection before sending any data.
You should try to investigate this on the client's side.<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
On 01/21/2015 06:07 PM, Diego Carvalho Domingos wrote:<br>
</div>
<blockquote
cite="mid:GRUPR80MB06663876FE734219C8E6C160A3480@GRUPR80MB0666.lamprd80.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi all, I’m trying to
set up opensips with TLS enabled. I followed the webnair to
install opensips and the advanced tutorial about TLS.
Everything seems to be configured correctly but when I try
to register using TLS it fails. I tried both latest LTS
version and the master version of opensips, Bria and
Linphone softphones and the default and customized TLS
certificates. For all tests I got this log:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3318]:
DBG:core:probe_max_sock_buff: getsockopt: snd is initially
262142<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3318]:
<a class="moz-txt-link-freetext" href="INFO:core:probe_max_sock_buff">INFO:core:probe_max_sock_buff</a>: using snd buffer of 255 kb<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3318]:
<a class="moz-txt-link-freetext" href="INFO:core:init_sock_keepalive">INFO:core:init_sock_keepalive</a>: -- TCP keepalive enabled on
socket<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3318]:
DBG:core:print_ip: tcpconn_new: new tcp connection to:
192.168.14.26<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3318]:
DBG:core:tcpconn_new: on port 50853, type 3<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3318]:
DBG:core:tls_tcpconn_init: entered: Creating a whole new ssl
connection<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3318]:
DBG:core:tls_tcpconn_init: looking up socket based TLS
server domain [192.168.14.23:5061]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3318]:
DBG:core:tls_find_server_domain: virtual TLS server domain
not found, Using default TLS server domain settings<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3318]:
DBG:core:tls_tcpconn_init: found socket based TLS server
domain [0.0.0.0:0]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3318]:
DBG:core:tls_tcpconn_init: Setting in ACCEPT mode (server)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3318]:
DBG:core:tcpconn_add: hashes: 613, 3<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3318]:
DBG:core:handle_new_connect: new connection: 0x7f3aeafa9eb8
25 flags: 0002<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3318]:
DBG:core:send2child: to tcp child 0 0(3314), 0x7f3aeafa9eb8
rw 1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:handle_io: We have received conn 0x7f3aeafa9eb8
with rw 1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:io_watch_add: io_watch_add op on 20 (0x84d120, 20,
2, 0x7f3aeafa9eb8,1), fd_no=1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:tcp_read_req: Using the global ( per process ) buff
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:tls_update_fd: New fd is 20<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:tcp_read_req: Using the global ( per process ) buff
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:tls_update_fd: New fd is 20<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
<a class="moz-txt-link-freetext" href="INFO:core:tls_accept">INFO:core:tls_accept</a>: New TLS connection from
192.168.14.26:50853 accepted<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:tls_accept: new TLS connection from
192.168.14.26:50853 using TLSv1/SSLv3 AES256-SHA 256<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:tls_accept: local socket: 192.168.14.23:5061<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
<a class="moz-txt-link-freetext" href="INFO:core:tls_accept">INFO:core:tls_accept</a>: Client did not present a TLS
certificate<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
<a class="moz-txt-link-freetext" href="INFO:core:tls_dump_cert_info">INFO:core:tls_dump_cert_info</a>: tls_accept: local TLS server
certificate subject: /C=XY/ST=Some State/O=My Large
Organization Name/OU=My Subunit of Large
<a class="moz-txt-link-abbreviated" href="mailto:Organization/CN=somename.somewhere.com/emailAddress=root@somename.somewhere.com">Organization/CN=somename.somewhere.com/emailAddress=root@somename.somewhere.com</a>,
issuer:
/CN=Your_NAME/ST=Your_STATE/C=CO/emailAddress=YOUR_EMAIL/O=YOUR_ORG_NAME<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:tls_update_fd: New fd is 20<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:tcp_read_req: read= 0 bytes, parsed=0, state=0,
error=1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:tcp_read_req: last char=0x00, parsed msg=#012<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:tcp_read_req: We didn't manage to read a full
request. Back to child poll<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:tcp_read_req: tcp_read_req end<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:tcp_read_req: Using the per connection buff
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:tls_update_fd: New fd is 20<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
<a class="moz-txt-link-freetext" href="INFO:core:_tls_read">INFO:core:_tls_read</a>: TLS connection to 192.168.14.26:50853
closed cleanly<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:tcp_read_req: read= 0 bytes, parsed=0, state=0,
error=1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:tcp_read_req: last char=0x00, parsed msg=#012<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:tcp_read_req: EOF<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:io_watch_del: io_watch_del op on index -1 20
(0x84d120, 20, -1, 0x10,0x3) fd_no=2 called<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:release_tcpconn: releasing con 0x7f3aeafa9eb8,
state -1, fd=20, id=3<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:release_tcpconn: extra_data 0x7f3aeafaa038<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3318]:
DBG:core:handle_tcp_child: reader response= 7f3aeafa9eb8, -1
from 0
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3318]:
DBG:core:tcpconn_destroy: destroying connection
0x7f3aeafa9eb8, flags 0002<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3318]:
DBG:core:tls_close: closing TLS connection<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3318]:
DBG:core:tls_update_fd: New fd is 25<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3318]:
DBG:core:tls_shutdown: shutdown successful<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3318]:
DBG:core:tls_tcpconn_clean: entered<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So it seems the TLS
connection was accepted:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
<a class="moz-txt-link-freetext" href="INFO:core:tls_accept">INFO:core:tls_accept</a>: New TLS connection from
192.168.14.26:50853 accepted<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:tls_accept: new TLS connection from
192.168.14.26:50853 using TLSv1/SSLv3 AES256-SHA 256<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">But then some error
occurs and the connection is closed:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:tcp_read_req: We didn't manage to read a full
request. Back to child poll<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:tcp_read_req: tcp_read_req end<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:tcp_read_req: Using the per connection buff
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
DBG:core:tls_update_fd: New fd is 20<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Jan 20 15:41:27
devmachine /usr/local/opensips/sbin/opensips[3314]:
<a class="moz-txt-link-freetext" href="INFO:core:_tls_read">INFO:core:_tls_read</a>: TLS connection to 192.168.14.26:50853
closed cleanly<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Any help is appreciated.
Thanks.<o:p></o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>