<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Daniel,<br>
    <br>
    Thanks for your reply.<br>
    <br>
    <br>
    <blockquote cite="mid:50A42F4D.2050505@gmail.com" type="cite"> -
      what is the ssl lib version?<br>
    </blockquote>
    OpenSSL 0.9.8o<br>
    <blockquote cite="mid:50A42F4D.2050505@gmail.com" type="cite"> - it
      is happening all the time you try?<br>
    </blockquote>
    as soon as the phone send package on port 5061 the server crashes. <br>
    <br>
    openssl s_client -debug -connect HOSTNAME:5061 -tls1 <br>
    crashes Kamailio as well.<br>
    <blockquote cite="mid:50A42F4D.2050505@gmail.com" type="cite"> -
      what are the log messages printed in syslog before the crash?<br>
    </blockquote>
    <br>
    /opt/kamailio/sbin/kamailio[30278]: ALERT: &lt;core&gt;
    [main.c:785]: child process 30293 exited by a signal 11<br>
    /opt/kamailio/sbin/kamailio[30278]: ALERT: &lt;core&gt;
    [main.c:788]: core was not generated<br>
    /opt/kamailio/sbin/kamailio[30278]: INFO: &lt;core&gt; [main.c:800]:
    INFO: terminating due to SIGCHLD<br>
    /opt/kamailio/sbin/kamailio[30289]: INFO: &lt;core&gt; [main.c:851]:
    INFO: signal 15 received<br>
    ...<br>
    &nbsp;kernel: [4198986.968458] kamailio[30293]: segfault at 7fdca1334ba4
    ip 0000000000519856 sp 00007fffe7b6fbf0 error 4 in
    kamailio[400000+236000]<br>
    <br>
    <blockquote cite="mid:50A42F4D.2050505@gmail.com" type="cite"> - can
      you enable core dumping per process, just to be sure this core is
      not caused by a kill or children processes?<br>
    </blockquote>
    Can you please advise how I can do that?<br>
    <blockquote cite="mid:50A42F4D.2050505@gmail.com" type="cite"> <br>
      Can you try with the default configuration file? Kamailio comes
      with tls support you just have to enable it -- in kamailio.cfg
      just add after the first line:<br>
      <br>
      #!define WITH_TLS<br>
    </blockquote>
    I tried and the result is the same.<br>
    <br>
    I just added:<br>
    listen=tls:IP.ADDRESS:5061<br>
    <br>
    <blockquote cite="mid:50A42F4D.2050505@gmail.com" type="cite"> I am
      trying to isolate the situation and the cause of the issue. Few
      hours ago I used tls on ubuntu 12.04 and all went fine.<br>
    </blockquote>
    I think of trying on the newer OS in the evening.<br>
    <br>
    Thanks,<br>
    Den<br>
    <br>
    <blockquote cite="mid:50A42F4D.2050505@gmail.com" type="cite"> <br>
      Cheers,<br>
      Daniel<br>
      <br>
      <div class="moz-cite-prefix">On 11/14/12 3:00 PM, Denis wrote:<br>
      </div>
      <blockquote cite="mid:50A3F87B.90109@gmail.com" type="cite">
        <meta http-equiv="content-type" content="text/html;
          charset=ISO-8859-1">
        Hi,<br>
        I am using kamailio-3.3.2 on Ubuntu 11.04 x64 and when trying to
        connect via TLS from my Yealink phone kamailio crashes with the
        following backtrace:<br>
        <br>
        Loaded symbols for /lib/x86_64-linux-gnu/libnss_files.so.2<br>
        Core was generated by `/opt/kamailio/sbin/kamailio'.<br>
        Program terminated with signal 11, Segmentation fault.<br>
        #0&nbsp; handle_ser_child (p=0x7fcbaea2eba0, fd_i=-1) at
        tcp_main.c:3575<br>
        3575&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if (unlikely(p-&gt;unix_sock&lt;=0)){<br>
        (gdb) bt<br>
        #0&nbsp; handle_ser_child (p=0x7fcbaea2eba0, fd_i=-1) at
        tcp_main.c:3575<br>
        #1&nbsp; 0x000000000051e5bc in send2child (tcpconn=0x7f8c001597d8,
        ev=&lt;value optimized out&gt;, fd_i=-1) at tcp_main.c:3975<br>
        #2&nbsp; handle_tcpconn_ev (tcpconn=0x7f8c001597d8, ev=&lt;value
        optimized out&gt;, fd_i=-1) at tcp_main.c:4310<br>
        #3&nbsp; 0x0000000000527dbc in io_wait_loop_epoll () at
        io_wait.h:1092<br>
        #4&nbsp; tcp_main_loop () at tcp_main.c:4656<br>
        #5&nbsp; 0x00000000004726f5 in main_loop () at main.c:1727<br>
        #6&nbsp; 0x000000000047402e in main (argc=&lt;value optimized
        out&gt;, argv=&lt;value optimized out&gt;) at main.c:2546<br>
        (gdb) <br>
        <br>
        The manual I am following is
        <meta http-equiv="content-type" content="text/html;
          charset=ISO-8859-1">
        <a moz-do-not-send="true"
          href="http://www.kamailio.org/dokuwiki/doku.php/tls:create-certificates">http://www.kamailio.org/dokuwiki/doku.php/tls:create-certificates</a><br>
        <br>
        Thanks,<br>
        Den<br>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
    </blockquote>
    <br>
  </body>
</html>