<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div>Hi Ravi, there's any special reason not to choose latest 2.3 or, if you need 1.11 series, 1.11.9 ?</div><div><br></div><div>Also i suggest to choose a Debian 8 instead of RHel.</div><div><br></div><div>Michele</div><div><br></div><div><br></div><div id="composer_signature"><div style="font-size:85%;color:#575757" dir="auto">Inviato da smartphone Samsung Galaxy.</div></div><div><br></div><div style="font-size:100%;color:#000000"><!-- originalMessage --><div>-------- Messaggio originale --------</div><div>Da: Ravitez Ravi <ravitez.dondeti@gmail.com> </div><div>Data: 13/05/17  23:01  (GMT+01:00) </div><div>A: OpenSIPS users mailling list <users@lists.opensips.org> </div><div>Oggetto: [OpenSIPS-Users] Issues running opensips with load balancer. </div><div><br></div></div><div dir="ltr">Hi All,<div><br></div><div><p class="MsoNormal">I’m trying to run opensips with load balancer module but it
fails to come up. Below are details of what I have done and been trying. My
questions are in <b><i><span style="background:yellow">bold
italics and highlighted in yellow</span></i></b>. Request you to take a look
and help.<span></span></p>

<p class="MsoNormal"><span> </span></p>

<p class="MsoNormal"><b><u>Objective:</u></b> Install OpenSIPS 1.11.10 with TLS
on RHEL 6.5 for load balancing SIP traffic<span></span></p>

<p class="MsoNormal"><b><u>Procedure followed:<span></span></u></b></p>

<p class="gmail-MsoListParagraph">1.<span style="font-variant-numeric:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"times new roman"">       </span>Download
and install OpenSIPS1.11.10 on RHEL 6.5 with default configuration:<span></span></p>

<p class="gmail-MsoListParagraph" style="margin-left:1in">a.<span style="font-variant-numeric:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"times new roman"">      
</span>Downloaded <a href="http://opensips.org/pub/opensips/1.11.10/opensips-1.11.10-tls.tar.gz">http://opensips.org/pub/opensips/1.11.10/opensips-1.11.10-tls.tar.gz</a><span></span></p>

<p class="gmail-MsoListParagraph" style="margin-left:1in">b.<span style="font-variant-numeric:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"times new roman"">     
</span>Un-tar and un-zip the downloaded file<span></span></p>

<p class="gmail-MsoListParagraph" style="margin-left:1in">c.<span style="font-variant-numeric:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"times new roman"">      
</span>Go to <span style="font-size:10pt;font-family:"courier new"">opensips-1.11.10-tls</span> folder, ran <span style="font-size:10pt;font-family:"courier new"">make menuconfig</span>, select <span style="font-size:10pt;font-family:"courier new"">Compile And Install OpenSIPS</span>
and followed by <span style="font-size:10pt;font-family:"courier new"">Exit
& Save All Changes</span><span></span></p>

<p class="gmail-MsoListParagraph" style="margin-left:1in">d.<span style="font-variant-numeric:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"times new roman"">     
</span>Run <span style="font-size:10pt;font-family:"courier new"">opensips</span> on command line, ensure the opensips process is
running using ‘<span style="font-size:10pt;font-family:"courier new"">ps -ef
| grep opensips</span>’ command and stop the process using ‘<span style="font-size:10pt;font-family:"courier new"">killall opensips</span>’<span></span></p>

<p class="gmail-MsoListParagraph"><span> </span></p>

<p class="gmail-MsoListParagraph">2.<span style="font-variant-numeric:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"times new roman"">       </span>Get
necessary dependencies straightened out for load balancer as mentioned in
section 1.4 in <a href="http://www.opensips.org/html/docs/modules/1.11.x/load_balancer.html">http://www.opensips.org/html/docs/modules/1.11.x/load_balancer.html</a><span></span></p>

<p class="gmail-MsoListParagraph" style="margin-left:1in">a.<span style="font-variant-numeric:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"times new roman"">      
</span>The section lists the following OpenSIPS
modules: i) <i>Dialog</i> – Dialog module, ii) <i>Dialog</i> – TM module, iii) <i>database</i>
– one of the DB modules.<span></span></p>

<p class="gmail-MsoListParagraph" style="margin-left:1in">b.<span style="font-variant-numeric:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"times new roman"">     
</span>I did not see any specific dialog module either
in <span style="font-size:10pt;font-family:"courier new"">Configure Compile
Flags</span> or <span style="font-size:10pt;font-family:"courier new"">Configure
Excluded Modules</span>, however, I could see <span style="font-size:10pt;font-family:"courier new"">/usr/local/lib64/opensips/modules/dialog.so</span>
and assumed this is the intended module. <b><i><span style="background:yellow">Not sure if it covers both Dialog and TM. Please clarify.</span><span></span></i></b></p>

<p class="gmail-MsoListParagraph" style="margin-left:1in">c.<span style="font-variant-numeric:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"times new roman"">      
</span>I selected <span style="font-size:10pt;font-family:"courier new"">db_mysql</span> from <span style="font-size:10pt;font-family:"courier new"">Configure Excluded Modules</span> and got a message
“<span style="font-size:10pt;font-family:"courier new"">You have enabled the
'db_mysql' module, so please install ' development libraries of mysql-client ,
typically libmysqlclient-dev'”</span> while saving. I could not find the RPM
for RHEL. The closed I could find is <span style="font-size:10pt;font-family:"courier new"">libmysqlclient16-devel-5.1.69-1.w6.x86_64.rpm </span>which fails
to get installed. <b><i><span style="background:yellow">Am
I in right path here? Please advise.</span></i></b><span></span></p>

<p class="gmail-MsoListParagraph" style="margin-left:1in">d.<span style="font-variant-numeric:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"times new roman"">     
</span>I was following an example mentioned section 3.2
in <a href="http://www.opensips.org/Documentation/Tutorials-LoadBalancing">http://www.opensips.org/Documentation/Tutorials-LoadBalancing</a>.<span></span></p>

<p class="gmail-MsoListParagraph" style="margin-left:1in">The section shows following
modules to be loaded:<span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">loadmodule "modules/maxfwd/maxfwd.so"<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">loadmodule "modules/sl/sl.so"<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">loadmodule "modules/db_mysql/db_mysql.so"<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">loadmodule "modules/tm/tm.so"<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">loadmodule "modules/xlog/xlog.so"<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">loadmodule "modules/uri/uri.so"<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">loadmodule "modules/rr/rr.so"<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">loadmodule "modules/dialog/dialog.so"<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">loadmodule "modules/mi_fifo/mi_fifo.so"<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">loadmodule
"modules/mi_xmlrpc/mi_xmlrpc.so"<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">loadmodule
"modules/signaling/signaling.so"<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">loadmodule "modules/textops/textops.so"<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">loadmodule
"modules/load_balancer/load_balancer.so"<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in">However, the sub-directories
mentioned in above list is not seen on my file system after OpenSIPS
installation, yet I see some of the above list shared libraries under
/usr/local/lib64/opensips/modules. <b><i><span style="background:yellow">Hope this is ok.</span></i></b><span></span></p>

<p class="gmail-MsoListParagraph" style="margin-left:1in">e.<span style="font-variant-numeric:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"times new roman"">     
</span>The defaults opensips.cfg provided includes most
of the above listed modules, but the below libraries were missing which are
needed for load balancer:<span></span></p>

<p class="MsoNormal"><span style="font-size:10pt;font-family:"courier new"">           
loadmodule "modules/dialog.so"<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">loadmodule "modules/textops.so"<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">loadmodule
"modules/load_balancer/load_balancer.so"<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">loadmodule "modules/db_mysql/db_mysql.so"<span></span></span></p>

<p class="MsoNormal" style="margin-left:0.5in;text-indent:0.5in"><span style="font-size:10pt;font-family:"courier new"">loadmodule
"modules/xlog/xlog.so"<span></span></span></p>

<p class="MsoNormal" style="margin-left:0.5in;text-indent:0.5in"><span style="font-size:10pt;font-family:"courier new"">loadmodule
"modules/mi_xmlrpc/mi_xmlrpc.so<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in">I was able to successfully start <span style="font-size:10pt;font-family:"courier new"">opensips</span> after
loading <span style="font-size:10pt;font-family:"courier new"">dialog.so</span>
and <span style="font-size:10pt;font-family:"courier new"">textops.so</span>,
however, <span style="font-size:10pt;font-family:"courier new"">opensips</span>
refuses to start when I load <span style="font-size:10pt;font-family:"courier new"">load_balancer.so
</span>with following error:<span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips:
INFO:core:shm_mem_init: allocating SHM block<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
NOTICE:core:main: version: opensips 1.11.10-tls (x86_64/linux)<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
INFO:core:main: using 32 Mb shared memory<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
INFO:core:main: using 2 Mb private memory per process<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
INFO:core:evi_publish_event: Registered event <E_CORE_THRESHOLD(0)><span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
INFO:core:evi_publish_event: Registered event <E_CORE_SHM_THRESHOLD(1)><span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
INFO:core:evi_publish_event: Registered event <E_CORE_PKG_THRESHOLD(2)><span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
NOTICE:signaling:mod_init: initializing module ...<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
INFO:sl:mod_init: Initializing StateLess engine<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
INFO:tm:mod_init: TM - initializing...<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
INFO:rr:mod_init: rr - initializing<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
INFO:maxfwd:mod_init: initializing...<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
INFO:sipmsgops:mod_init: initializing...<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
INFO:usrloc:ul_init_locks: locks array size 512<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
INFO:core:evi_publish_event: Registered event <E_UL_AOR_INSERT(3)><span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
INFO:core:evi_publish_event: Registered event <E_UL_AOR_DELETE(4)><span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
INFO:registrar:mod_init: initializing...<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
INFO:acc:mod_init: initializing...<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
INFO:core:evi_publish_event: Registered event <E_ACC_EVENT(5)><span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
INFO:core:evi_publish_event: Registered event <E_ACC_CDR(6)><span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
INFO:core:evi_publish_event: Registered event <E_ACC_MISSED_EVENT(7)><span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]: INFO:dialog:mod_init:
Dialog module - initializing<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
INFO:textops:mod_init: initializing...<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
INFO:load_balancer:mod_init: Load-Balancer module - initializing<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><b><span style="font-size:10pt;font-family:"courier new";color:red">May 13 16:40:18 kuat opensips[22969]: ERROR:load_balancer:mod_init:
DB URL is not defined!<span></span></span></b></p>

<p class="MsoNormal" style="margin-left:1in"><b><span style="font-size:10pt;font-family:"courier new";color:red">May 13 16:40:18 kuat opensips[22969]:
ERROR:core:init_mod: failed to initialize module load_balancer<span></span></span></b></p>

<p class="MsoNormal" style="margin-left:1in"><b><span style="font-size:10pt;font-family:"courier new";color:red">May 13 16:40:18 kuat opensips[22969]:
ERROR:core:main: error while initializing modules<span></span></span></b></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips[22969]:
INFO:core:cleanup: cleanup<span></span></span></p>

<p class="MsoNormal" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">May 13 16:40:18 kuat opensips: INFO:core:daemonize:
pre-daemon process exiting with -1<span></span></span></p>

<p class="MsoNormal" style="margin-left:0.5in;text-indent:0.5in"><b><i><span style="background:yellow">Looks like this is due to DB
module. Is this correct?</span><span></span></i></b></p>

<p class="gmail-MsoListParagraph" style="margin-left:1in">f.<span style="font-variant-numeric:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"times new roman"">       
</span>I do not see following shared libraries. <b><i><span style="background:yellow">Please let me know which modules
should I load to get them.</span><span></span></i></b></p>

<p class="gmail-MsoListParagraph" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">loadmodule
"modules/db_mysql/db_mysql.so"<span></span></span></p>

<p class="gmail-MsoListParagraph" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">loadmodule "modules/xlog/xlog.so"<span></span></span></p>

<p class="gmail-MsoListParagraph" style="margin-left:1in"><span style="font-size:10pt;font-family:"courier new"">loadmodule
"modules/mi_xmlrpc/mi_xmlrpc.so"<span></span></span></p><p class="gmail-MsoListParagraph" style="margin-left:1in"><br></p><p class="gmail-MsoListParagraph" style="margin-left:1in">Thank you :)</p><p class="gmail-MsoListParagraph" style="margin-left:1in"><br></p><p class="gmail-MsoListParagraph" style="margin-left:1in">Regards,</p><p class="gmail-MsoListParagraph" style="margin-left:1in">Ravitez.D</p></div></div>
</body></html>