<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=iso-8859-1">
<meta name="Generator" content="Microsoft Word 12 (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:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
h3
        {mso-style-priority:9;
        mso-style-link:"Titre 3 Car";
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:13.5pt;
        font-family:"Times New Roman","serif";
        font-weight:bold;}
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;}
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";}
code
        {mso-style-priority:99;
        font-family:"Courier New","serif";}
pre
        {mso-style-priority:99;
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New","serif";}
span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:Consolas;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Trebuchet MS","sans-serif";
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.Titre3Car
        {mso-style-name:"Titre 3 Car";
        mso-style-priority:9;
        mso-style-link:"Titre 3";
        font-family:"Times New Roman","serif";
        font-weight:bold;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:blue">Hello
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:blue"><o:p> </o:p></span></p>
<h3 style="margin:0cm;margin-bottom:.0001pt;background:white"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:blue;font-weight:normal">Get the compiled module from
</span><span style="font-family:"Arial","sans-serif";color:#222222;font-weight:normal"><a href="http://pkgs.org/debian-sid/debian-main-i386/kamailio-websocket-modules_4.1.2-1+b1_i386.deb.html"><em><span lang="EN-US" style="font-family:"Arial","sans-serif";color:#660099;font-style:normal;text-decoration:none">kamailio</span></em><span lang="EN-US" style="color:#660099">-</span><em><span lang="EN-US" style="font-family:"Arial","sans-serif";color:#660099;font-style:normal;text-decoration:none">websocket</span></em><span lang="EN-US" style="color:#660099">-modules</span></a></span><span lang="EN-US" style="font-family:"Arial","sans-serif";color:#222222;font-weight:normal"><o:p></o:p></span></h3>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:blue">(apt-get install kamailio-websocket-modules)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:blue">Or make a build from sources (in src dir: make_and_install compile kwebsocket) but there are some required libraries (see documentation of Websocket
 module)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:blue">And put the websocket.so file in your /usr/local/lib64/Kamailio/modules directory<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:blue">Olivier
</span><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:blue"><o:p></o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">De :</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org]
<b>De la part de</b> Patrik Kristel<br>
<b>Envoyé :</b> jeudi 3 avril 2014 19:21<br>
<b>À :</b> sr-users@lists.sip-router.org<br>
<b>Objet :</b> [SR-Users] Load new module in Kamailio<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:13.35pt;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black">Hello all,<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;line-height:13.35pt;vertical-align:baseline">
<span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black">I would like to ask, how can I load new module in Kamailio 4.1.2? Actually, I have an issue, when I tried to compile my </span><code><span style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE">kamaiio.cfg</span></code><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black"> I've
 got error:<o:p></o:p></span></p>
<div>
<pre style="margin-bottom:7.5pt;line-height:13.35pt;background:#EEEEEE;vertical-align:baseline;max-height:600px;word-wrap:normal;overflow:auto"><span style="font-size:10.5pt;font-family:Consolas;color:black"><o:p> </o:p></span></pre>
<pre style="line-height:13.35pt;background:#EEEEEE;vertical-align:baseline"><code><span style="font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm">root@kamailio:/usr/local/# kamailio -c kamailio.cfg<o:p></o:p></span></code></pre>
<pre style="line-height:13.35pt;background:#EEEEEE;vertical-align:baseline"><code><span style="font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm">loading modules under /usr/local/lib64/kamailio/modules/<o:p></o:p></span></code></pre>
<pre style="line-height:13.35pt;background:#EEEEEE;vertical-align:baseline"><code><span style="font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm"> 0(25392) ERROR: <core> [sr_module.c:587]: load_module(): ERROR: load_module: could not find module <websocket> in </usr/local/lib64/kamailio/modules/><o:p></o:p></span></code></pre>
<pre style="line-height:13.35pt;background:#EEEEEE;vertical-align:baseline"><code><span style="font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm"> 0(25392) : <core> [cfg.y:3408]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 323, column 12-25: failed to load module<o:p></o:p></span></code></pre>
<pre style="line-height:13.35pt;background:#EEEEEE;vertical-align:baseline"><code><span style="font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm"> 0(25392) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command ws_handle_handshake<o:p></o:p></span></code></pre>
<pre style="line-height:13.35pt;background:#EEEEEE;vertical-align:baseline"><code><span style="font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm"> 0(25392) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 1083, column 27: unknown command, missing loadmodule?<o:p></o:p></span></code></pre>
<pre style="line-height:13.35pt;background:#EEEEEE;vertical-align:baseline"><code><span style="font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm"><o:p> </o:p></span></code></pre>
<pre style="line-height:13.35pt;background:#EEEEEE;vertical-align:baseline"><code><span style="font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm">ERROR: bad config file (2 errors)</span></code><span style="font-size:10.5pt;font-family:Consolas;color:black"><o:p></o:p></span></pre>
<pre style="margin-bottom:7.5pt;line-height:13.35pt;background:#EEEEEE;vertical-align:baseline;max-height:600px;word-wrap:normal;overflow:auto"><span style="font-size:10.5pt;font-family:Consolas;color:black"><o:p> </o:p></span></pre>
<p style="margin:0cm;margin-bottom:.0001pt;line-height:13.35pt;background:white;vertical-align:baseline">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;border:none windowtext 1.0pt;padding:0cm">when I look physically to the </span><code><span style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE">/usr/local/lib64/kamailio/modules/</span></code><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;border:none windowtext 1.0pt;padding:0cm"> there
 is some modules, but </span><code><span style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE">websocket.so</span></code><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;border:none windowtext 1.0pt;padding:0cm"> is
 missing. So, how can I get and load module in Kamailio?<o:p></o:p></span></p>
<pre style="line-height:13.35pt;background:#EEEEEE;vertical-align:baseline"><code><span style="font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm"><o:p> </o:p></span></code></pre>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:13.35pt;background:white;vertical-align:baseline">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;border:none windowtext 1.0pt;padding:0cm">Thank you for help!<o:p></o:p></span></p>
<pre style="line-height:13.35pt;background:#EEEEEE;vertical-align:baseline"><code><span style="font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm"><o:p> </o:p></span></code></pre>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:13.35pt;background:white;vertical-align:baseline">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;border:none windowtext 1.0pt;padding:0cm"><o:p> </o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:13.35pt;background:white;vertical-align:baseline">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;border:none windowtext 1.0pt;padding:0cm">BR,<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:13.35pt;background:white;vertical-align:baseline">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:black;border:none windowtext 1.0pt;padding:0cm">Patrik Kristel<o:p></o:p></span></p>
</div>
</div>
</div>
</body>
</html>