Re: [OpenSIPS-Users] R: Issues running opensips with load balancer.

2017-05-24 Thread Prasad, Goutham
Please see the attached requested conf file. Thanks in advance!

Goutham P Madhava
Group Lead • Voice Applications
777, Commerce Dr., Fairfield, CT 06825
T  +1 203 339 7830 • M +1 203 683 8760 • E goutham.pra...@ipc.com
Follow us on twitter: @ipc_Systems_Inc • Website: 
www.ipc.com<http://www.ipc.com/>
[cid:image001.jpg@01D2D4AC.DFEA3FA0]

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of 
Bogdan-Andrei Iancu
Sent: Monday, May 22, 2017 12:26 PM
To: Ravitez Ravi; OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] R: Issues running opensips with load balancer.

Hello Ravi,

Please send me the Makefile.conf file you have.

Best regards,


Bogdan-Andrei Iancu

  OpenSIPS Founder and Developer

  http://www.opensips-solutions.com



OpenSIPS Summit May 2017 Amsterdam

  http://www.opensips.org/events/Summit-2017Amsterdam.html
On 05/22/2017 05:51 PM, Ravitez Ravi wrote:
Hello Bogdan,
Good Day,
Here's what we get when using the default 
configuration(flags,modules)


Vote IPC in the 2017 Waters Technology Awards. Winners are decided by those 
most important to us - our customers! Please vote for us (#28, #29) by link 
https://www.surveymonkey.com/r/MTXQFZF




DISCLAIMER: This e-mail may contain information that is confidential, 
privileged or otherwise protected from disclosure. 
If you are not an intended recipient of this e-mail, do not duplicate or 
redistribute it by any means. 
Please delete it and any attachments and notify the sender that you have 
received it in error. 
Unintended recipients are prohibited from taking action on the basis of 
information in this e-mail. 
E-mail messages may contain computer viruses or other defects, may not be 
accurately replicated on other systems, or may be intercepted, 
deleted or interfered with without the knowledge of the sender or the intended 
recipient. 
If you are not comfortable with the risks associated with e-mail messages, 
you may decide not to use e-mail to communicate with IPC. IPC reserves the 
right, 
to the extent and under circumstances permitted by applicable law, 
to retain, monitor and intercept e-mail messages to and from its systems.


Makefile.conf
Description: Makefile.conf
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] R: Issues running opensips with load balancer.

2017-05-22 Thread Bogdan-Andrei Iancu

Hello Ravi,

Please send me the Makefile.conf file you have.

Best regards,

Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 05/22/2017 05:51 PM, Ravitez Ravi wrote:


Hello Bogdan,

  Good Day,

  Here's what we get when using the default
configuration(flags,modules)





___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] R: Issues running opensips with load balancer.

2017-05-22 Thread Ravitez Ravi
>
> Hello Bogdan,
>
> Good Day,
>
> Here's what we get when using the default
> configuration(flags,modules)
>
>
>
>
> [root@kuat opensips-2.2.3]# make menuconfig
>
> which: no lynx in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/
> sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
>
> make -C menuconfig
>
> make[1]: Entering directory `/home/ravi/goutham/opensips-2.2.3/menuconfig'
>
> gcc -o configure -g -O9 -funroll-loops -Wcast-align -Wall
> -minline-all-stringops -falign-loops -ftree-vectorize -mtune=nocona
> -Wold-style-definition -Wmissing-field-initializers -Wredundant-decls -g
> -Wall -DMENUCONFIG_CFG_PATH=\"menuconfig/configs/\"
> -DMENUCONFIG_GEN_PATH=\"etc/\" -DMENUCONFIG_HAVE_SOURCES=1  cfg.o curses.o
> items.o commands.o menus.o parser.o main.o -lncurses   -Wl,-O2 -Wl,-E
>
> make[1]: Leaving directory `/home/ravi/goutham/opensips-2.2.3/menuconfig'
>
> ./menuconfig/configure --local
>
> which: no lynx in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/
> sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
>
> make[1]: Entering directory `/home/ravi/goutham/opensips-2.2.3'
>
> sed -e "s#/usr/.*lib/opensips/modules/#/usr/local//lib64/opensips/modules/#g"
> \
>
> < etc/opensips.cfg > /usr/local//etc/opensips/
> opensips.cfg.sample0
>
> sed -e "s#/usr/.*etc/opensips/tls/#/usr/local//etc/opensips/tls/#g" \
>
> < /usr/local//etc/opensips/opensips.cfg.sample0 \
>
> > /usr/local//etc/opensips/opensips.cfg.sample
>
> rm -fr /usr/local//etc/opensips/opensips.cfg.sample0
>
> chmod 600 /usr/local//etc/opensips/opensips.cfg.sample
>
> chmod 700 /usr/local//etc/opensips/
>
> if [ -z "" -a \
>
> ! -f /usr/local//etc/opensips/opensips.cfg
> ]; then \
>
> mv -f /usr/local//etc/opensips/opensips.cfg.sample
> \
>
> /usr/local//etc/opensips/opensips.cfg; \
>
> fi
>
> # opensipsctl config
>
> touch /usr/local//etc/opensips//opensipsctlrc.sample
>
> install -m 644 scripts/opensipsctlrc \
>
> /usr/local//etc/opensips//opensipsctlrc.sample
>
> if [ ! -f /usr/local//etc/opensips//opensipsctlrc ]; then \
>
> mv -f /usr/local//etc/opensips//opensipsctlrc.sample
> \
>
> /usr/local//etc/opensips//opensipsctlrc; \
>
> fi
>
> # osipsconsole config
>
> touch /usr/local//etc/opensips//osipsconsolerc.sample
>
> install -m 644 scripts/osipsconsolerc \
>
> /usr/local//etc/opensips//osipsconsolerc.sample
>
> if [ ! -f /usr/local//etc/opensips//osipsconsolerc ]; then \
>
> mv -f /usr/local//etc/opensips//osipsconsolerc.sample
> \
>
> /usr/local//etc/opensips//osipsconsolerc;
> \
>
> fi
>
> make -C menuconfig proper
>
> make[2]: Entering directory `/home/ravi/goutham/opensips-2.2.3/menuconfig'
>
> rm -f configure
>
> rm -f cfg.o curses.o items.o commands.o menus.o parser.o main.o
>
> make[2]: Leaving directory `/home/ravi/goutham/opensips-2.2.3/menuconfig'
>
> make -C menuconfig \
>
> 
> MENUCONFIG_CFG_PATH=/usr/local//share/opensips//menuconfig_templates/
> \
>
> MENUCONFIG_GEN_PATH=/usr/local//etc/opensips/
> MENUCONFIG_HAVE_SOURCES=0
>
> make[2]: Entering directory `/home/ravi/goutham/opensips-2.2.3/menuconfig'
>
> gcc -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops
> -falign-loops -ftree-vectorize -mtune=nocona -Wold-style-definition
> -Wmissing-field-initializers -Wredundant-decls -Wcast-align -g -Wall
> -DMENUCONFIG_CFG_PATH=\"/usr/local//share/opensips//menuconfig_templates/\"
> -DMENUCONFIG_GEN_PATH=\"/usr/local//etc/opensips/\"
> -DMENUCONFIG_HAVE_SOURCES=0-c -o cfg.o cfg.c
>
> gcc -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops
> -falign-loops -ftree-vectorize -mtune=nocona -Wold-style-definition
> -Wmissing-field-initializers -Wredundant-decls -Wcast-align -g -Wall
> -DMENUCONFIG_CFG_PATH=\"/usr/local//share/opensips//menuconfig_templates/\"
> -DMENUCONFIG_GEN_PATH=\"/usr/local//etc/opensips/\"
> -DMENUCONFIG_HAVE_SOURCES=0-c -o curses.o curses.c
>
> gcc -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops
> -falign-loops -ftree-vectorize -mtune=nocona -Wold-style-definition
> -Wmissing-field-initializers -Wredundant-decls -Wcast-align -g -Wall
> -DMENUCONFIG_CFG_PATH=\"/usr/local//share/opensips//menuconfig_templates/\"
> -DMENUCONFIG_GEN_PATH=\"/usr/local//etc/opensips/\"
> -DMENUCONFIG_HAVE_SOURCES=0-c -o items.o items.c
>
> gcc -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops
> -falign-loops -ftree-vectorize -mtune=nocona -Wold-style-definition
> -Wmissing-field-initializers -Wredundant-decls -Wcast-align -g -Wall
> -DMENUCONFIG_CFG_PATH=\"/usr/local//share/opensips//menuconfig_templates/\"

Re: [OpenSIPS-Users] R: Issues running opensips with load balancer.

2017-05-15 Thread Bogdan-Andrei Iancu

Hi,

Could you give some details about you inability of compiling 2.3 ??

Regards,

Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Summit May 2017 Amsterdam
  http://www.opensips.org/events/Summit-2017Amsterdam.html

On 05/15/2017 05:31 AM, Ravitez Ravi wrote:

Hi Michele,
Good Day,
Im unable to compile 2.3 in RHL 6.5
so got back to 1.9.

Regards,
Ravitez.D

On Sun, May 14, 2017 at 7:42 AM, michele.pinassi 
> wrote:


Hi Ravi, there's any special reason not to choose latest 2.3 or,
if you need 1.11 series, 1.11.9 ?

Also i suggest to choose a Debian 8 instead of RHel.

Michele


Inviato da smartphone Samsung Galaxy.

 Messaggio originale 
Da: Ravitez Ravi >
Data: 13/05/17 23:01 (GMT+01:00)
A: OpenSIPS users mailling list >
Oggetto: [OpenSIPS-Users] Issues running opensips with load balancer.

Hi All,

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 */bold italics and highlighted in yellow/*.
Request you to take a look and help.

*_Objective:_* Install OpenSIPS 1.11.10 with TLS on RHEL 6.5 for
load balancing SIP traffic

*_Procedure followed:_*

1.Download and install OpenSIPS1.11.10 on RHEL 6.5 with default
configuration:

a.Downloaded
http://opensips.org/pub/opensips/1.11.10/opensips-1.11.10-tls.tar.gz


b.Un-tar and un-zip the downloaded file

c.Go to opensips-1.11.10-tls folder, ran make menuconfig, select
Compile And Install OpenSIPS and followed by Exit & Save All Changes

d.Run opensips on command line, ensure the opensips process is
running using ‘ps -ef | grep opensips’ command and stop the
process using ‘killall opensips’

2.Get necessary dependencies straightened out for load balancer as
mentioned in section 1.4 in
http://www.opensips.org/html/docs/modules/1.11.x/load_balancer.html


a.The section lists the following OpenSIPS modules: i) /Dialog/ –
Dialog module, ii) /Dialog/ – TM module, iii) /database/ – one of
the DB modules.

b.I did not see any specific dialog module either in Configure
Compile Flags or Configure Excluded Modules, however, I could see
/usr/local/lib64/opensips/modules/dialog.so and assumed this is
the intended module. */Not sure if it covers both Dialog and TM.
Please clarify./*

c.I selected db_mysql from Configure Excluded Modules and got a
message “You have enabled the 'db_mysql' module, so please install
' development libraries of mysql-client , typically
libmysqlclient-dev'” while saving. I could not find the RPM for
RHEL. The closed I could find is
libmysqlclient16-devel-5.1.69-1.w6.x86_64.rpm which fails to get
installed. */Am I in right path here? Please advise./*

d.I was following an example mentioned section 3.2 in
http://www.opensips.org/Documentation/Tutorials-LoadBalancing
.

The section shows following modules to be loaded:

loadmodule "modules/maxfwd/maxfwd.so"

loadmodule "modules/sl/sl.so"

loadmodule "modules/db_mysql/db_mysql.so"

loadmodule "modules/tm/tm.so"

loadmodule "modules/xlog/xlog.so"

loadmodule "modules/uri/uri.so"

loadmodule "modules/rr/rr.so"

loadmodule "modules/dialog/dialog.so"

loadmodule "modules/mi_fifo/mi_fifo.so"

loadmodule "modules/mi_xmlrpc/mi_xmlrpc.so"

loadmodule "modules/signaling/signaling.so"

loadmodule "modules/textops/textops.so"

loadmodule "modules/load_balancer/load_balancer.so"

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. */Hope this is ok./*

e.The defaults opensips.cfg provided includes most of the above
listed modules, but the below libraries were missing which are
needed for load balancer:

loadmodule "modules/dialog.so"

loadmodule "modules/textops.so"

loadmodule "modules/load_balancer/load_balancer.so"

loadmodule "modules/db_mysql/db_mysql.so"

loadmodule "modules/xlog/xlog.so"

loadmodule "modules/mi_xmlrpc/mi_xmlrpc.so

I was able to successfully start opensips after loading dialog.so
and textops.so, however, opensips refuses to start when I load
load_balancer.so with following error:

May 13 16:40:18 kuat opensips: 

Re: [OpenSIPS-Users] R: Issues running opensips with load balancer.

2017-05-14 Thread Ravitez Ravi
Hi Michele,
Good Day,
Im unable to compile 2.3 in RHL 6.5
so got back to 1.9.

Regards,
Ravitez.D

On Sun, May 14, 2017 at 7:42 AM, michele.pinassi 
wrote:

> Hi Ravi, there's any special reason not to choose latest 2.3 or, if you
> need 1.11 series, 1.11.9 ?
>
> Also i suggest to choose a Debian 8 instead of RHel.
>
> Michele
>
>
> Inviato da smartphone Samsung Galaxy.
>
>  Messaggio originale 
> Da: Ravitez Ravi 
> Data: 13/05/17 23:01 (GMT+01:00)
> A: OpenSIPS users mailling list 
> Oggetto: [OpenSIPS-Users] Issues running opensips with load balancer.
>
> Hi All,
>
> 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 *bold italics and highlighted in yellow*. Request you to take a look
> and help.
>
>
>
> *Objective:* Install OpenSIPS 1.11.10 with TLS on RHEL 6.5 for load
> balancing SIP traffic
>
> *Procedure followed:*
>
> 1.   Download and install OpenSIPS1.11.10 on RHEL 6.5 with default
> configuration:
>
> a.   Downloaded http://opensips.org/pub/opensips/1.11.10/opensips-1.
> 11.10-tls.tar.gz
>
> b.  Un-tar and un-zip the downloaded file
>
> c.   Go to opensips-1.11.10-tls folder, ran make menuconfig, select 
> Compile
> And Install OpenSIPS and followed by Exit & Save All Changes
>
> d.  Run opensips on command line, ensure the opensips process is
> running using ‘ps -ef | grep opensips’ command and stop the process using
> ‘killall opensips’
>
>
>
> 2.   Get necessary dependencies straightened out for load balancer as
> mentioned in section 1.4 in http://www.opensips.org/html/
> docs/modules/1.11.x/load_balancer.html
>
> a.   The section lists the following OpenSIPS modules: i) *Dialog* –
> Dialog module, ii) *Dialog* – TM module, iii) *database* – one of the DB
> modules.
>
> b.  I did not see any specific dialog module either in Configure
> Compile Flags or Configure Excluded Modules, however, I could see
> /usr/local/lib64/opensips/modules/dialog.so and assumed this is the
> intended module. *Not sure if it covers both Dialog and TM. Please
> clarify.*
>
> c.   I selected db_mysql from Configure Excluded Modules and got a
> message “You have enabled the 'db_mysql' module, so please install '
> development libraries of mysql-client , typically libmysqlclient-dev'”
> while saving. I could not find the RPM for RHEL. The closed I could find is
> libmysqlclient16-devel-5.1.69-1.w6.x86_64.rpm which fails to get
> installed. *Am I in right path here? Please advise.*
>
> d.  I was following an example mentioned section 3.2 in
> http://www.opensips.org/Documentation/Tutorials-LoadBalancing.
>
> The section shows following modules to be loaded:
>
> loadmodule "modules/maxfwd/maxfwd.so"
>
> loadmodule "modules/sl/sl.so"
>
> loadmodule "modules/db_mysql/db_mysql.so"
>
> loadmodule "modules/tm/tm.so"
>
> loadmodule "modules/xlog/xlog.so"
>
> loadmodule "modules/uri/uri.so"
>
> loadmodule "modules/rr/rr.so"
>
> loadmodule "modules/dialog/dialog.so"
>
> loadmodule "modules/mi_fifo/mi_fifo.so"
>
> loadmodule "modules/mi_xmlrpc/mi_xmlrpc.so"
>
> loadmodule "modules/signaling/signaling.so"
>
> loadmodule "modules/textops/textops.so"
>
> loadmodule "modules/load_balancer/load_balancer.so"
>
> 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. *Hope this is
> ok.*
>
> e.  The defaults opensips.cfg provided includes most of the above
> listed modules, but the below libraries were missing which are needed for
> load balancer:
>
> loadmodule "modules/dialog.so"
>
> loadmodule "modules/textops.so"
>
> loadmodule "modules/load_balancer/load_balancer.so"
>
> loadmodule "modules/db_mysql/db_mysql.so"
>
> loadmodule "modules/xlog/xlog.so"
>
> loadmodule "modules/mi_xmlrpc/mi_xmlrpc.so
>
> I was able to successfully start opensips after loading dialog.so and
> textops.so, however, opensips refuses to start when I load load_balancer.so
> with following error:
>
> May 13 16:40:18 kuat opensips: INFO:core:shm_mem_init: allocating SHM block
>
> May 13 16:40:18 kuat opensips[22969]: NOTICE:core:main: version: opensips
> 1.11.10-tls (x86_64/linux)
>
> May 13 16:40:18 kuat opensips[22969]: INFO:core:main: using 32 Mb shared
> memory
>
> May 13 16:40:18 kuat opensips[22969]: INFO:core:main: using 2 Mb private
> memory per process
>
> May 13 16:40:18 kuat opensips[22969]: INFO:core:evi_publish_event:
> Registered event 
>
> May 13 16:40:18 kuat opensips[22969]: INFO:core:evi_publish_event:
> Registered event 
>
> May 13 16:40:18 kuat opensips[22969]: INFO:core:evi_publish_event:
> Registered event 
>
> May 13