<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<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 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;}
@font-face
        {font-family:Hack;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle19
        {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:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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 lang=FR link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Hi Henning,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Thanks for your answer.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='mso-element:para-border-div;border:none;border-top:solid #CCCCCC 1.0pt;padding:4.0pt 0cm 0cm 0cm'><p class=MsoNormal style='margin-bottom:3.0pt;border:none;padding:0cm'><b><span lang=FR-BE style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#444444'>Cordialement.<o:p></o:p></span></b></p><p class=MsoNormal style='margin-bottom:3.0pt;border:none;padding:0cm'><b><span lang=FR-BE style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#444444'>Patrick GINHOUX</span></b><span lang=FR-BE style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#444444'> <b><o:p></o:p></b></span></p></div><p class=MsoNormal style='margin-bottom:3.0pt'><span lang=FR-BE style='font-size:9.0pt;font-family:"Calibri",sans-serif;color:#444444'>Unisys | +33 1 46 69 52 12 </span><span style='font-size:9.0pt;font-family:"Calibri",sans-serif;color:#444444'>| +33 6 60 32 24 74</span><span style='font-size:9.0pt;font-family:"Calibri",sans-serif;color:#444444'> </span><span style='font-size:9.0pt;font-family:"Calibri",sans-serif;color:#444444'>| patrick.ginhoux@unisys.com</span><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p></o:p></span></p></div><p class=MsoNormal><span style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>De :</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> Henning Westerholt <hw@kamailio.org> <br><b>Envoyé :</b> jeudi 24 mai 2018 08:40<br><b>À :</b> sr-users@lists.kamailio.org<br><b>Cc :</b> Ginhoux, Patrick <patrick.ginhoux@fr.unisys.com><br><b>Objet :</b> Re: [SR-Users] Link problem between kamailio and MariaDB<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p style='margin:0cm;margin-bottom:.0001pt'><span style='font-size:9.0pt;font-family:"Hack",serif'>Am Mittwoch, 23. Mai 2018, 15:34:41 CEST schrieb Ginhoux, Patrick:<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>> At the moment, I'm trying to replace MySQL by MariaDB on my Kamailio server<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>> (5.0.1) . In previous post I have been told that Kamailio supports MariaDB<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>> and there is no special module to load.<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>> <o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>> This work is done on a new server running RHEL 7.4 and MariaDB 10.2.14 that<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>> is installed under /opt/mysql/na/10.2.14 folder.<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>> <o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>> I encounter different problem:<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>> <o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>> - Without changing anything in the kamailio script, kamailio failed<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>> to find the libmysqlclient.so.18 library.<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>> <o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>> - So I thought that I could get rid of the above error by changing<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>> the MODULEPATH in the Kamailio-local.cfg as follows :<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>> <o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>> MODULEPATH="/usr/lib64/kamailio/modules/:/opt/mysql/na/10.2.14/lib64/"<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>> <o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>> But with this, I get 2 problem:<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>> [..]<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0'><span style='font-size:9.0pt;font-family:"Hack",serif'> <o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>Hello Patrick,<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0'><span style='font-size:9.0pt;font-family:"Hack",serif'> <o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>the Kamailio module path is not related to the system library path. <o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0'><span style='font-size:9.0pt;font-family:"Hack",serif'> <o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>So the correct configuration is to point in the Kamailio cfg the module path to the installed location for the Kamailio modules, not include the system library path here.<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0'><span style='font-size:9.0pt;font-family:"Hack",serif'> <o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>If you have an issue that the db_mysql module can't find the libmysql system library, you can either fix the system library search path or use a symlink approach as you described in the earlier post as well.<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0'><span style='font-size:9.0pt;font-family:"Hack",serif'> <o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>Best regards,<o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-block-indent:0'><span style='font-size:9.0pt;font-family:"Hack",serif'> <o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0;-qt-user-state:0'><span style='font-size:9.0pt;font-family:"Hack",serif'>Henning<o:p></o:p></span></p></div></body></html>