<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Courier New \;color\:red";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Courier New \;color\:black";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hey Daniel,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I&#8217;ve run into this issue again. A fresh install of Kamailio on Ubuntu with the latest release of openssl (OpenSSL 1.0.0e).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I have installed libssl and libssl-dev. I&#8217;m currently using the latest build Kamailio 3.2.2 and installing from source.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">The output of </span>pkg-config --libs libssl is.<br>
<span style="color:#1F497D">-lssl<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">All of my Kamailio 3.1 servers run on a downgraded version OpenSSL 0.9.8k. I&#8217;m thinking to do the same to downgrade Openssl for my current issue.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Is this the right way to go?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Gnani<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"> Daniel-Constantin Mierla [mailto:miconda@gmail.com]
<br>
<b>Sent:</b> Monday, January 16, 2012 12:45 AM<br>
<b>To:</b> SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List<br>
<b>Cc:</b> Gnaneshwar Gatla<br>
<b>Subject:</b> Re: [SR-Users] TLS module not working<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Hello,<br>
<br>
looks like a missing linking library. Can you send the output of:<br>
<br>
pkg-config --libs libssl<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 1/13/12 7:59 PM, Gnaneshwar Gatla wrote: <o:p></o:p></p>
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<p class="MsoNormal">I&#8217;m trying to upgrade my company&#8217;s sip server to the latest Kamailio to 3.1.5.
<o:p></o:p></p>
<p class="MsoNormal">My development environment contained Openssl 0.9.8K version and everything works fine here.<o:p></o:p></p>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<p class="MsoNormal">I have tried to install a fresh package for my release, the openssl version from the Ubuntu packages is Openssl 1.0.0e<o:p></o:p></p>
<p class="MsoNormal">And I get the following error.<o:p></o:p></p>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<p class="MsoNormal">My error looks like this:<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">sudo /etc/init.d/kamailio start</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">Not starting kamailio: invalid configuration file!</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">-e </span>
<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">&nbsp;0(26880) ERROR: &lt;core&gt; [sr_module.c:523]: ERROR: load_module: could not open module &lt;/home/p4dev/BLand_password-Evo-N800v_4700/sw/SipServer/main/kamailio/lib/kamailio/modules/tls.so&gt;:
 /home/p4dev/BLand_password-Evo-N800v_4700/sw/SipServer/main/kamailio/lib/kamailio/modules/tls.so:
</span><b><span style="font-size:9.0pt;font-family:&quot;Courier New ;color:red&quot;,&quot;serif&quot;">undefined symbol: SSLv2_client_method</span></b><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">0(26880) : &lt;core&gt; [cfg.y:3416]: parse error in config file /home/p4dev/BLand_password-Evo-N800v_4700/sw/SipServer/main/kamailio/etc/kamailio/kamailio.cfg, line 259, column 12-19: failed
 to load module</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">0(26880) WARNING: &lt;core&gt; [sr_module.c:578]: /home/p4dev/BLand_password-Evo-N800v_4700/sw/SipServer/main/kamailio/lib/kamailio/modules_k/perl.so: exports dlflags interface is deprecated
 and it will not be supported in newer versions; consider using mod_register() instead</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">0(26880) ERROR: &lt;core&gt; [modparam.c:161]: set_mod_param_regex: No module matching &lt;tls&gt; found</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">0(26880) : &lt;core&gt; [cfg.y:3419]: parse error in config file /home/p4dev/BLand_password-Evo-N800v_4700/sw/SipServer/main/kamailio/etc/kamailio/kamailio.cfg, line 437, column 118: Can't
 set module parameter</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Courier New&quot;">ERROR: bad config file (2 errors)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">I&#8217;m not sure if this is a compatibility issue or is there some library missing that I have to install.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal">I saw this patch online with reference to Crypt-SSLeay at <a href="https://rt.cpan.org/Public/Bug/Display.html?id=70565">
https://rt.cpan.org/Public/Bug/Display.html?id=70565</a><o:p></o:p></p>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New ;color:black&quot;,&quot;serif&quot;">*<b>The linker complains about missing SSLv2_method. The following patch works for me:</b>*
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New ;color:black&quot;,&quot;serif&quot;">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New ;color:black&quot;,&quot;serif&quot;">--- SSLeay.xs~ 2011-08-29 07:25:46.000000000 &#43;0200
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New ;color:black&quot;,&quot;serif&quot;">&#43;&#43;&#43; SSLeay.xs 2011-08-29 07:29:04.000000000 &#43;0200
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New ;color:black&quot;,&quot;serif&quot;">@@ -125,13 &#43;125,9 @@</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New ;color:black&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp;if(ssl_version == 23) {
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New ;color:black&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ctx = SSL_CTX_new(SSLv23_client_method());
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New ;color:black&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp;&nbsp;}
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New ;color:black&quot;,&quot;serif&quot;">- &nbsp;&nbsp;else if(ssl_version == 3) {
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New ;color:black&quot;,&quot;serif&quot;">&#43; &nbsp;&nbsp;else {
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New ;color:black&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ctx = SSL_CTX_new(SSLv3_client_method());
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New ;color:black&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp;&nbsp;}
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New ;color:black&quot;,&quot;serif&quot;">- &nbsp;&nbsp;else {
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New ;color:black&quot;,&quot;serif&quot;">- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* v2 is the default */
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New ;color:black&quot;,&quot;serif&quot;">- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ctx = SSL_CTX_new(SSLv2_client_method());
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New ;color:black&quot;,&quot;serif&quot;">- &nbsp;&nbsp;}
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New ;color:black&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp;&nbsp;SSL_CTX_set_options(ctx,SSL_OP_ALL|0);
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New ;color:black&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp;&nbsp;SSL_CTX_set_default_verify_paths(ctx);
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN" style="font-size:10.0pt;font-family:&quot;Courier New ;color:black&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp;&nbsp;SSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, NULL);</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<o:p></o:p></pre>
<pre><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><o:p></o:p></pre>
<pre><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><br>
<br>
<o:p></o:p></span></p>
<pre>-- <o:p></o:p></pre>
<pre>Daniel-Constantin Mierla -- <a href="http://www.asipto.com">http://www.asipto.com</a><o:p></o:p></pre>
<pre><a href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda">http://twitter.com/miconda</a><o:p></o:p></pre>
</div>
</body>
</html>