Re: [OpenSIPS-Users] Package memory

2022-07-25 Thread Saurabh Chopra
Hi Team,

Any suggestions please!!

Best Regards
Saurabh Chopra
+918861979979


On Wed, Jul 20, 2022 at 4:29 PM Sasmita Panda  wrote:

> Hi Razvan ,
>
> Saurabh is using opensips version
>
>
>
>
>
> *version: opensips 2.2.4 (x86_64/linux)flags: STATS: On, DISABLE_NAGLE,
> USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC,
> FAST_LOCK-ADAPTIVE_WAITADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE
> 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535poll method
> support: poll, epoll_lt, epoll_et, sigio_rt, select.svn revision:
> 3247:3632Mmain.c compiled on 07:01:48 Apr 10 2019 with gcc 4.8.5*
>
> As for my understanding fifo command gives output for that config file in
> which below parameter defined .
> modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")
>
> When I am running 2 config in a single server in same interface with
> different ports  , will I configure this parameter in both the file as same
> .
>
> 1. If I am adding this parameter in both files , then its giving me the
> process of latest running config . That can be any 1 of both .
> 2. If I am adding different *fifo_name *for both
>one for .. *opensips_fifo *and other for *opensips_tcp_fifo *then its
> giving the processes of that config in which *opensips_fifo *is defined .
>
> Is there any other way of running multiple configs of opensips in single
> machine so that we can monior both precesses live memory ?
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> On Wed, Jul 20, 2022 at 4:04 PM Răzvan Crainea 
> wrote:
>
>> Hi, Saurabh!
>>
>> The command you are running returns the memory of all OpenSIPS
>> processes. At least all that are returned by `opensipsctl fifo ps`
>> command.
>> If you're only getting one process, most likely you are using a buggy
>> version and you should consider updating it.
>>
>> Best regards,
>>
>> Răzvan Crainea
>> OpenSIPS Core Developer
>> http://www.opensips-solutions.com
>>
>> On 7/20/22 09:46, Saurabh Chopra wrote:
>> > Hi Team,
>> >
>> > Could you please help us with this.
>> >
>> > Best Regards
>> > Saurabh Chopra
>> > +918861979979
>> >
>> >
>> > On Mon, Jul 18, 2022 at 5:15 PM Saurabh Chopra > > <mailto:saura...@3clogic.com>> wrote:
>> >
>> > Hi All,
>> >
>> > We have an opensips instance of version 2.2 where two processes are
>> > running,
>> > 1. process A
>> > 2. process B
>> >
>> > As I was hitting the command "/usr/sbin//opensipsctl fifo
>> > get_statistics pkmem:" it always gives us pkg memory of one process
>> > i.e. process A. How can I check the package memory of both processes
>> > individually.
>> >
>> > Best Regards
>> > Saurabh Chopra
>> > +918861979979
>> >
>> >
>> > ___
>> > Users mailing list
>> > Users@lists.opensips.org
>> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Package memory

2022-07-20 Thread Saurabh Chopra
Hi Team,

Could you please help us with this.

Best Regards
Saurabh Chopra
+918861979979


On Mon, Jul 18, 2022 at 5:15 PM Saurabh Chopra  wrote:

> Hi All,
>
> We have an opensips instance of version 2.2 where two processes are
> running,
> 1. process A
> 2. process B
>
> As I was hitting the command "/usr/sbin//opensipsctl fifo get_statistics
> pkmem:" it always gives us pkg memory of one process i.e. process A. How
> can I check the package memory of both processes individually.
>
> Best Regards
> Saurabh Chopra
> +918861979979
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Package memory

2022-07-18 Thread Saurabh Chopra
Hi All,

We have an opensips instance of version 2.2 where two processes are
running,
1. process A
2. process B

As I was hitting the command "/usr/sbin//opensipsctl fifo get_statistics
pkmem:" it always gives us pkg memory of one process i.e. process A. How
can I check the package memory of both processes individually.

Best Regards
Saurabh Chopra
+918861979979
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Facing some issue while running opensips 3.2 latest branch with openssl-1.1.1

2022-01-17 Thread Saurabh Chopra
Hi All,

Workaround given by Ben has done some part. Opensips 3.2.3 is compiled with
latest openssl version 3.0.1 but still I am not able to run my
configuration file. Errors coming like below:-





*Jan 17 13:30:05 ip-192-168-0-56 opensips: ERROR:core:sr_load_module: could
not open module :
/usr/local/lib64/opensips/modules/tls_openssl.so: undefined symbol:
OPENSSL_sk_numJan 17 13:30:05 ip-192-168-0-56 opensips:
ERROR:core:load_module: failed to load moduleJan 17 13:30:05
ip-192-168-0-56 opensips: Traceback (last included file at the bottom):Jan
17 13:30:05 ip-192-168-0-56 opensips: 0.
/usr/local/etc/opensips/opensips_webrtc_proxy.cfgJan 17 13:30:05
ip-192-168-0-56 opensips: CRITICAL:core:yyerror: parse error in
/usr/local/etc/opensips/opensips_webrtc_proxy.cfg:74:13-14: failed to load
module tls_openssl.so*

Could you please help us resolve this?

Best Regards
Saurabh Chopra
+918861979979


On Sat, Jan 15, 2022 at 9:27 PM Ben Newlin  wrote:

> Apologies, I misspoke. It is not due to any change in OpenSIPS. It is
> caused by the change to openssl-1.1.1. We actually encountered the issue
> using OpenSIPS 2.4, which still uses the shared libraries
>
>
>
> Ben Newlin
>
>
>
> *From: *Users  on behalf of Ben Newlin <
> ben.new...@genesys.com>
> *Date: *Saturday, January 15, 2022 at 10:54 AM
> *To: *OpenSIPS users mailling list , Răzvan
> Crainea , li...@opensips.org 
> *Subject: *Re: [OpenSIPS-Users] Facing some issue while running opensips
> 3.2 latest branch with openssl-1.1.1
>
> We ran into this too. I assume it is due to the change from using openssl
> as a shared library to a statically linked one.
>
>
>
> We were able to resolve by setting the environment variable “LDFLAGS” to a
> value of “-pthread” before the make command.
>
>
>
> $ LDFLAGS=-pthread make …
>
>
>
> or
>
>
>
> $ export LDFLAGS=-pthread
>
> $ make …
>
>
>
> I’m not a C expert, but that could possibly be added to the standard
> OpenSIPS build configuration.
>
>
>
> Ben Newlin
>
>
>
> *From: *Users  on behalf of Saurabh
> Chopra 
> *Date: *Saturday, January 15, 2022 at 2:48 AM
> *To: *OpenSIPS users mailling list , Răzvan
> Crainea , li...@opensips.org 
> *Subject: *Re: [OpenSIPS-Users] Facing some issue while running opensips
> 3.2 latest branch with openssl-1.1.1
>
> Hi Opensips Team/ Razvan,
>
>
>
> Thanks for the response, but when i tried to compile opensips version
> (3.2.3) with latest openssl version (3.0.1 14 Dec 2021) on Centos 7
> machine, it throws me erros,
>
>
>
>
>
>
>
>
>
>
>
>
> *Linking opensips main.o: In function `pthread_mutex_init':
> /opt/opensips-codechanged-3.2/ssl_tweaks.h:32: undefined reference to
> `pthread_mutexattr_setpshared'
> /opt/opensips-codechanged-3.2/ssl_tweaks.h:38: undefined reference to
> `pthread_mutexattr_destroy' /opt/opensips-codechanged-3.2/ssl_tweaks.h:26:
> undefined reference to `pthread_mutexattr_init' main.o: In function
> `pthread_rwlock_init': /opt/opensips-codechanged-3.2/ssl_tweaks.h:64:
> undefined reference to `pthread_rwlockattr_setpshared'
> /opt/opensips-codechanged-3.2/ssl_tweaks.h:70: undefined reference to
> `pthread_rwlockattr_destroy' /opt/opensips-codechanged-3.2/ssl_tweaks.h:58:
> undefined reference to `pthread_rwlockattr_init' collect2: error: ld
> returned 1 exit status*
>
> *make: *** [opensips] Error 1*
>
>
>
> Same errors found on the GITHUB ticket 
> *https://github.com/OpenSIPS/opensips/issues/2088
> <https://github.com/OpenSIPS/opensips/issues/2088> *but the machine was
> Debian. And the package dependencies in the answer given by *Liviu* let
> us install openssl version 1.0.2, which we don't want to, because if we do,
> it will compile the opensips with 1.0.2 openssl version.
>
>
>
> Kindly help us in this matter, we are stuck here.
>
>
> Best Regards
>
> Saurabh Chopra
>
> +918861979979
>
>
>
>
>
> On Mon, Jan 3, 2022 at 2:06 PM Răzvan Crainea  wrote:
>
> Hi, Sasmita!
>
> You probably compiled opensips 3.2 with a previous openssl version, then
> replaced it with the new one.
> You need to re-compile tls_openssl with the new version to get this fixed.
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Core Developer
> http://www.opensips-solutions.com
>
> On 12/21/21 12:30, Sasmita Panda wrote:
> > Hi All ,
> >
> > I have taken opensips 3.2 latest code and configure with tls_openssl to
> > support proto_tls proto_wss and tls_gm .
> > I have installed openssl-1.1.1 . (Rtpeninge latest branch is not
> > suported with older version of openssl , so I have taken the newer
> > version here )
> >
> >
> > Instal

Re: [OpenSIPS-Users] Facing some issue while running opensips 3.2 latest branch with openssl-1.1.1

2022-01-14 Thread Saurabh Chopra
Hi Opensips Team/ Razvan,

Thanks for the response, but when i tried to compile opensips version
(3.2.3) with latest openssl version (3.0.1 14 Dec 2021) on Centos 7
machine, it throws me erros,










*Linking opensipsmain.o: In function
`pthread_mutex_init':/opt/opensips-codechanged-3.2/ssl_tweaks.h:32:
undefined reference to
`pthread_mutexattr_setpshared'/opt/opensips-codechanged-3.2/ssl_tweaks.h:38:
undefined reference to
`pthread_mutexattr_destroy'/opt/opensips-codechanged-3.2/ssl_tweaks.h:26:
undefined reference to `pthread_mutexattr_init'main.o: In function
`pthread_rwlock_init':/opt/opensips-codechanged-3.2/ssl_tweaks.h:64:
undefined reference to
`pthread_rwlockattr_setpshared'/opt/opensips-codechanged-3.2/ssl_tweaks.h:70:
undefined reference to
`pthread_rwlockattr_destroy'/opt/opensips-codechanged-3.2/ssl_tweaks.h:58:
undefined reference to `pthread_rwlockattr_init'collect2: error: ld
returned 1 exit status*
*make: *** [opensips] Error 1*

Same errors found on the GITHUB ticket
*https://github.com/OpenSIPS/opensips/issues/2088
<https://github.com/OpenSIPS/opensips/issues/2088> *but the machine was
Debian. And the package dependencies in the answer given by *Liviu* let us
install openssl version 1.0.2, which we don't want to, because if we do, it
will compile the opensips with 1.0.2 openssl version.

Kindly help us in this matter, we are stuck here.

Best Regards
Saurabh Chopra
+918861979979


On Mon, Jan 3, 2022 at 2:06 PM Răzvan Crainea  wrote:

> Hi, Sasmita!
>
> You probably compiled opensips 3.2 with a previous openssl version, then
> replaced it with the new one.
> You need to re-compile tls_openssl with the new version to get this fixed.
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Core Developer
> http://www.opensips-solutions.com
>
> On 12/21/21 12:30, Sasmita Panda wrote:
> > Hi All ,
> >
> > I have taken opensips 3.2 latest code and configure with tls_openssl to
> > support proto_tls proto_wss and tls_gm .
> > I have installed openssl-1.1.1 . (Rtpeninge latest branch is not
> > suported with older version of openssl , so I have taken the newer
> > version here )
> >
> >
> > Installation is successful . While running the opensips process I am
> > getting the below error .
> > *ERROR:core:sr_load_module: could not open module
> > :
> > /usr/local/lib64/opensips/modules/auth.so: undefined symbol:
> EVP_MD_CTX_free
> >   ERROR:core:load_module: failed to load module
> >   Traceback (last included file at the bottom):
> >   0. /usr/local/etc/opensips/opensips_webrtc_reg.cfg
> >   CRITICAL:core:yyerror: parse error in
> > /usr/local/etc/opensips/opensips_webrtc_reg.cfg:134:13-14: failed to
> > load module auth.so
> > *
> >
> > * ERROR:core:sr_load_module: could not open module
> > :
> > /usr/local/lib64/opensips/modules/tls_openssl.so: undefined symbol:
> > OPENSSL_sk_num
> >   ERROR:core:load_module: failed to load module
> >   Traceback (last included file at the bottom):
> >   0. /usr/local/etc/opensips/opensips_webrtc_proxy.cfg
> >   CRITICAL:core:yyerror: parse error in
> > /usr/local/etc/opensips/opensips_webrtc_proxy.cfg:77:13-14: failed to
> > load module tls_openssl.so*
> >
> > Can anyone help me how to resolve this please ?
> >
> > */Thanks & Regards/*
> > /Sasmita Panda/
> > /Senior Network Testing and Software Engineer/
> > /3CLogic , ph:07827611765/
> >
> > ___
> > Users mailing list
> > Users@lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Help in pike Module

2021-11-11 Thread Saurabh Chopra
Hi Opensips team,

We are testing the pike module in opensips 3.1, but need some help with our
requirement. We are using the gw IP's added in the routing table for
incoming requests to our production SER's.
As per the documentation from pike, is there any way that gateway IP added
in our routing table could be monitored by Pike?

Best Regards
Saurabh Chopra
+918861979979
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Clarification on Auto-scaling in Opensips

2021-10-21 Thread Saurabh Chopra
Hi All,

We have successfully tested the auto-scaling in opensips after reading the
blog.
*https://blog.opensips.org/2019/02/25/auto-process-scaling-a-cure-for-load-and-resources-concerns/
<https://blog.opensips.org/2019/02/25/auto-process-scaling-a-cure-for-load-and-resources-concerns/>*


But, I am confused with two things,
1. How opensips calculates load to scale the processes UP/DOWN. Is there
any function that we can use to check the load or any kind of xlog so that
we can print in our config.
2. The config which i am running is scaling up the process when we are
adding (*log_level=4*) not for *log_level=3*. Is it specific that we have
to use log_level=*4*.

version: opensips 3.1.0 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC,
F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
svn revision: 3748:3779M
main.c compiled on 06:18:30 Feb  1 2021 with gcc 5.4.0

Below is the basic of my configuration











*log_level=4log_stderror=nolog_facility=LOG_LOCAL5memlog=2disable_dns_blacklist=noauto_scaling_profile
= PROFILE_SIP scale up to 6 on 40% for 4 cycles within 5 scale down to 2 on
1% for 8 cyclessocket=udp:20.0.xx.xxx:5507 AS 54.227.xx.xx:5507
use_auto_scaling_profile PROFILE_SIP*

Best Regards
Saurabh Chopra
+918861979979
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Media Anchoring Opensips 3.2

2021-09-24 Thread Saurabh Chopra
Hi Opensips Team,

Any update on this would be appreciated.

On Fri, 24 Sep 2021, 11:36 Saurabh Chopra,  wrote:

> Hi Team,
>
> Any update on this?
>
> Best Regards
> Saurabh Chopra
> +918861979979
>
>
> On Mon, Sep 20, 2021 at 2:14 PM Saurabh Chopra 
> wrote:
>
>> Hi Opensips Team,
>>
>> We recently attended the opensips summit 2021 and found this new media
>> anchoring functionality quite good. But whenever we are using the 
>> *rtp_relay_engage("rtpengine")
>> *function our opensips is crashing continuously. We are getting below
>> memory error while taking core dump.
>>
>> **
>>
>> *Opensips version*:-
>> version: opensips 3.2.1 (x86_64/linux)
>> flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC,
>> Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
>> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
>> MAX_URI_SIZE 1024, BUF_SIZE 65535
>> poll method support: poll, epoll, sigio_rt, select.
>> git revision: e082381
>> main.c compiled on 07:49:50 Aug 19 2021 with gcc 4.8.5
>>
>>
>> Best Regards
>> Saurabh Chopra
>> +918861979979
>>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Media Anchoring Opensips 3.2

2021-09-24 Thread Saurabh Chopra
Hi Team,

Any update on this?

Best Regards
Saurabh Chopra
+918861979979


On Mon, Sep 20, 2021 at 2:14 PM Saurabh Chopra  wrote:

> Hi Opensips Team,
>
> We recently attended the opensips summit 2021 and found this new media
> anchoring functionality quite good. But whenever we are using the 
> *rtp_relay_engage("rtpengine")
> *function our opensips is crashing continuously. We are getting below
> memory error while taking core dump.
>
> **
>
> *Opensips version*:-
> version: opensips 3.2.1 (x86_64/linux)
> flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC,
> Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
> MAX_URI_SIZE 1024, BUF_SIZE 65535
> poll method support: poll, epoll, sigio_rt, select.
> git revision: e082381
> main.c compiled on 07:49:50 Aug 19 2021 with gcc 4.8.5
>
>
> Best Regards
> Saurabh Chopra
> +918861979979
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Media Anchoring Opensips 3.2

2021-09-22 Thread Saurabh Chopra
Hi Opensips Team,

Waiting for a positive response.

Best Regards
Saurabh Chopra
+918861979979


On Tue, Sep 21, 2021 at 4:48 PM Saurabh Chopra  wrote:

> Hi Opensips Team,
>
> I am attaching a core dump here for reference, kindly help us out in this
> matter.
>
> Waiting for an early response.
>
> Best Regards
> Saurabh Chopra
> +918861979979
>
>
> On Mon, Sep 20, 2021 at 2:14 PM Saurabh Chopra 
> wrote:
>
>> Hi Opensips Team,
>>
>> We recently attended the opensips summit 2021 and found this new media
>> anchoring functionality quite good. But whenever we are using the 
>> *rtp_relay_engage("rtpengine")
>> *function our opensips is crashing continuously. We are getting below
>> memory error while taking core dump.
>>
>> **
>>
>> *Opensips version*:-
>> version: opensips 3.2.1 (x86_64/linux)
>> flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC,
>> Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
>> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
>> MAX_URI_SIZE 1024, BUF_SIZE 65535
>> poll method support: poll, epoll, sigio_rt, select.
>> git revision: e082381
>> main.c compiled on 07:49:50 Aug 19 2021 with gcc 4.8.5
>>
>>
>> Best Regards
>> Saurabh Chopra
>> +918861979979
>>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Media Anchoring Opensips 3.2

2021-09-21 Thread Saurabh Chopra
Hi Opensips Team,

I am attaching a core dump here for reference, kindly help us out in this
matter.

Waiting for an early response.

Best Regards
Saurabh Chopra
+918861979979


On Mon, Sep 20, 2021 at 2:14 PM Saurabh Chopra  wrote:

> Hi Opensips Team,
>
> We recently attended the opensips summit 2021 and found this new media
> anchoring functionality quite good. But whenever we are using the 
> *rtp_relay_engage("rtpengine")
> *function our opensips is crashing continuously. We are getting below
> memory error while taking core dump.
>
> **
>
> *Opensips version*:-
> version: opensips 3.2.1 (x86_64/linux)
> flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC,
> Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
> MAX_URI_SIZE 1024, BUF_SIZE 65535
> poll method support: poll, epoll, sigio_rt, select.
> git revision: e082381
> main.c compiled on 07:49:50 Aug 19 2021 with gcc 4.8.5
>
>
> Best Regards
> Saurabh Chopra
> +918861979979
>
[root@ip-20-0-65-208 core]# gdb /usr/local/sbin/opensips 
/home/centos/core/core.15107
GNU gdb (GDB) Red Hat Enterprise Linux 8.0.1-36.el7
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/sbin/opensips...done.
[New LWP 15107]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/local/sbin/opensips -f 
/usr/local/etc/opensips/rtp-relay.cfg -w /home/cent'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  tsl (lock=0x10) at ../../fastlock.h:104
104 asm volatile(
Missing separate debuginfos, use: debuginfo-install glibc-2.17-324.el7_9.x86_64 
keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-50.el7.x86_64 
libcom_err-1.42.9-19.el7.x86_64 libgcc-4.8.5-44.el7.x86_64 
libselinux-2.5-15.el7.x86_64 libstdc++-4.8.5-44.el7.x86_64 
openssl-libs-1.0.2k-21.el7_9.x86_64 pcre-8.32-17.el7.x86_64 
zlib-1.2.7-19.el7_9.x86_64
(gdb)
(gdb)
(gdb)
(gdb)
(gdb)
(gdb)
(gdb)
(gdb) bt full
#0  tsl (lock=0x10) at ../../fastlock.h:104
val = 
#1  get_lock (lock=0x10) at ../../fastlock.h:226
i = 1024
#2  rtp_relay_indlg (dlg=0x7f2ab67c6088, type=, 
params=) at rtp_relay_ctx.c:733
info = {msg = 0x7ffc4066e120, branch = 1080483936, callid = 0x18, 
from_tag = 0x10150e9e0, to_tag = 0x7f2ab40a1098 <__FUNCTION__.14146>, body = 
0x1}
msg = 0x7f2ab847f020
ctx = 
body = 0x0
ret = 
__FUNCTION__ = "rtp_relay_indlg"
#3  0x7f2ab4031a22 in run_dlg_callbacks (type=type@entry=16, 
dlg=dlg@entry=0x7f2ab67c6088, msg=msg@entry=0x7f2ab847f020, dir=,
dlg_data=dlg_data@entry=0x0, locked=locked@entry=0, 
is_active=is_active@entry=1) at dlg_cb.c:255
cb = 0x7f2ab67ca960
__FUNCTION__ = "run_dlg_callbacks"
#4  0x7f2ab4063cb4 in dlg_onroute (req=, 
route_params=, param=) at dlg_handlers.c:2013
dlg = 
val = {
  s = 0xa0f491  "d6b.aae1e7c>\r\nContact: 
\r\nTo:
 
;tag=77a4a8baa3d548dd9c436db00d38c1f2\r\nFrom:
 \"testing\" 
"NmQ4YzgxZjVmYjliMTJkN2VhYTJkZGU2NzVhMjJlNjY.\r\nCSeq: 1 ACK\r\nUser-Agent: 
3CXPhone 6.0.26523.0\r\nContent-Length: 0\r\n\r\n",
  len = 44}
ftag = {
  s = 0xa0f580  "80190c04\r\nCall-ID: 
NmQ4YzgxZjVmYjliMTJkN2VhYTJkZGU2NzVhMjJlNjY.\r\nCSeq: 1 ACK\r\nUser-Agent: 
3CXPhone 6.0.26523.0\r\nContent-Length: 0\r\n\r\n", len = 8}
ttag = {
  s = 0xa0f522  "77a4a8baa3d548dd9c436db00d38c1f2\r\nFrom: 
\"testing\";tag=80190c04\r\nCall-ID: 
NmQ4YzgxZjVmYjliMTJkN2VhYTJkZGU2NzVhMjJlNjY.\r\nCSeq: 1 ACK\r\nUser-Agent: 
3CXPhone 6.0.265"..., len = 32}
h_entry = 
h_id = 
new_state = 4
old_state = 3
unref = 0
event = 
update_val = 
dir = 1
dst_leg = 1
src_leg = 
ret = 0
ok = 1
d_entry = 0x7f2ab6787990
msg_cseq = 
---Type  to continue, or q  to quit---
final_cseq = 
is_active = 1
t = 
   

[OpenSIPS-Users] Media Anchoring Opensips 3.2

2021-09-20 Thread Saurabh Chopra
Hi Opensips Team,

We recently attended the opensips summit 2021 and found this new media
anchoring functionality quite good. But whenever we are using the
*rtp_relay_engage("rtpengine")
*function our opensips is crashing continuously. We are getting below
memory error while taking core dump.

**

*Opensips version*:-
version: opensips 3.2.1 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC,
F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
git revision: e082381
main.c compiled on 07:49:50 Aug 19 2021 with gcc 4.8.5


Best Regards
Saurabh Chopra
+918861979979
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] TLS_MGM module with DB(MYSQL)

2021-05-28 Thread Saurabh Chopra
Hi Opensips Team/ Callum,

Thanks for the response, I successfully inserted the content of my
files(certificate) in mysql DB. But when I try to run the script the
opensips is crashing now with errors.

May 28 11:45:59  /usr/local/sbin/opensips[1268]:
CRITICAL:db_mysql:wrapper_single_mysql_real_query: driver error (1064): You
have an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near
'.36.64:443,match_sip_domain,type,method,0,0,certificate,private_key,crl_check_al'
at line 1
May 28 11:45:59  /usr/local/sbin/opensips[1268]: ERROR:core:db_do_query:
error while submitting query - [select
id,.i3clogic.com,x.x.36.64:443,match_sip_domain,type,method,0,0,certificate,private_key,crl_check_all,crl_dir,ca_list,ca_dir,cipher_list,dh_params,ec_curve
from tls_mgm ]
May 28 11:45:59   /usr/local/sbin/opensips[1268]: ERROR:tls_mgm:load_info:
DB query failed - retrieve valid connections
May 28 11:45:59  /usr/local/sbin/opensips[1268]: ERROR:tls_mgm:load_info:
Unable to load domains info from DB
May 28 11:45:59 /usr/local/sbin/opensips[1268]: ERROR:core:init_mod: failed
to initialize module tls_mgm
May 28 11:45:59  /usr/local/sbin/opensips[1268]: ERROR:core:main: error
while initializing modules

Given these parameters in the config script.

loadmodule "tls_mgm.so"
modparam("tls_mgm", "db_url", "mysql://root:x@localhost/opensips")
modparam("tls_mgm", "db_table", "tls_mgm")
modparam("tls_mgm", "domain_col", "xx.i3clogic.com")
modparam("tls_mgm", "match_ip_address_col", "xx.xx36.64:443")
modparam("tls_mgm", "tls_method_col", "method")
modparam("tls_mgm", "verify_cert_col", "0")
modparam("tls_mgm", "require_cert_col", "0")
modparam("tls_mgm", "certificate_col", "certificate")
modparam("tls_mgm", "private_key_col", "private_key")
modparam("tls_mgm", "crl_check_all_col", "crl_check_all")
modparam("tls_mgm", "crl_dir_col", "crl_dir")
modparam("tls_mgm", "ca_list_col", "ca_list")

Kindly help in this matter.

Best Regards
Saurabh Chopra
+918861979979


On Wed, May 26, 2021 at 5:06 PM Callum Guy  wrote:

> You need to insert the certificate contents into the table rather than a
> file, to my understanding - you'd probably want to convert the certs to PEM
> format prior to doing this.
>
>
>
>
>
> On Tue, 25 May 2021 at 14:20, Saurabh Chopra  wrote:
>
>> Hi Opensips Team/Razvan,
>>
>> I am using the TLS_MGM module to validate my certificate file through a
>> database (mysql) but getting the below error.
>>
>> May 25 12:41:28 ip-20-0-36-64 /usr/local/sbin/opensips[16297]:
>> NOTICE:tls_mgm:init_tls_dom: no crl for tls, using none
>> May 25 12:41:28 ip-20-0-36-64 /usr/local/sbin/opensips[16297]: 
>> *ERROR:tls_mgm:load_certificate_db:
>> Unable to load certificate from buffer*
>> May 25 12:41:28 ip-20-0-36-64 /usr/local/sbin/opensips[16297]:
>> WARNING:tls_mgm:init_tls_domains: Failed to init TLS domain 'default',
>> skipping...
>>
>> The data i have put in DB is depicted below:-
>>
>> insert into tls_mgm
>> (id,domain,match_ip_address,match_sip_domain,type,method,verify_cert,require_cert,certificate,private_key,crl_check_all,crl_dir,ca_list,ca_dir,
>> cipher_list,dh_params,ec_curve) values
>> ('1','default','20.0.xx.xx:443','','1','SSLv23','1','0','2021.der','.der','0','','x2021.der','','ALL','','');
>>
>> *.der* files are the binary file for certificate file, private key file
>> and ca_list .  However the same is working fine through the configuration
>> script.
>>
>> Can anybody confirm what I am doing wrong ?
>>
>>
>> Best Regards
>> Saurabh Chopra
>> +918861979979
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
> *0333 332   |  x-on.co.uk <https://www.x-on.co.uk>  |   **
> <https://www.linkedin.com/company/x-on>   <https://www.facebook.com/XonTel>
>   <https://twitter.com/xonuk> **  |  Coronavirus
> <https://www.x-on.co.uk/service/surgery-connect/coronavirus.htm>**
> |  Practice Index Reviews <https://practiceindex.co.uk/gp/x-on>*
>
> THE ITSPA AWARDS 2020 <http://www.itspa.org.uk/itspa-awards> AND Best
> ITSP - Mid Market, Best Software and Best Vertical Solution are trade marks
> of the Internet Telephony Services Providers' Associ

[OpenSIPS-Users] TLS_MGM module with DB(MYSQL)

2021-05-25 Thread Saurabh Chopra
Hi Opensips Team/Razvan,

I am using the TLS_MGM module to validate my certificate file through a
database (mysql) but getting the below error.

May 25 12:41:28 ip-20-0-36-64 /usr/local/sbin/opensips[16297]:
NOTICE:tls_mgm:init_tls_dom: no crl for tls, using none
May 25 12:41:28 ip-20-0-36-64 /usr/local/sbin/opensips[16297]:
*ERROR:tls_mgm:load_certificate_db:
Unable to load certificate from buffer*
May 25 12:41:28 ip-20-0-36-64 /usr/local/sbin/opensips[16297]:
WARNING:tls_mgm:init_tls_domains: Failed to init TLS domain 'default',
skipping...

The data i have put in DB is depicted below:-

insert into tls_mgm
(id,domain,match_ip_address,match_sip_domain,type,method,verify_cert,require_cert,certificate,private_key,crl_check_all,crl_dir,ca_list,ca_dir,
cipher_list,dh_params,ec_curve) values
('1','default','20.0.xx.xx:443','','1','SSLv23','1','0','2021.der','.der','0','','x2021.der','','ALL','','');

*.der* files are the binary file for certificate file, private key file and
ca_list .  However the same is working fine through the configuration
script.

Can anybody confirm what I am doing wrong ?


Best Regards
Saurabh Chopra
+918861979979
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Issue with opensips-cli .

2021-04-15 Thread Saurabh Chopra
Hi Guys,

Any update would be appreciated regarding the above matter.

Best Regards
Saurabh Chopra
+918861979979


On Wed, Apr 14, 2021 at 3:33 PM Saurabh Chopra  wrote:

> Hi Opensips Team/ Razvan,
>
> As per Sasmita's previous mail, we are still stuck in a situation where,
>
> 1. If we are using "FIFO" as a communication_type we are not getting data
> from a remote machine instead getting data from a local host.
> 2. If we are using "HTTP" as a communication_type then we are unable to
> switch to a remote machine.
>
> For both scenarios logs have been attached in *pastebin*.
>
> Kindly advise and provide us with an early resolution. We will be
> waiting for your prompt response
>
> Best Regards
> Saurabh Chopra
> +918861979979
>
>
> On Tue, Mar 30, 2021 at 11:31 AM Sasmita Panda  wrote:
>
>> Hi ,
>>
>> I have changed my instance.cfg like bellow .
>>
>> [10.0.0.1]
>> prompt_name: opensips-cli@10.0.0.1
>> communication_type: http
>> url: http://10.0.0.1:/json
>>
>> With this config above I am getting some error . I am not able to switch
>> to the remote instance as well .
>>
>> https://pastebin.com/1fDuHbBk
>>
>>
>> if I am giving below config .
>>
>>  [10.0.0.1]
>> prompt_name: opensips-cli@10.0.0.1
>> communication_type: fifo
>> fifo_file: /tmp/opensips_fifo
>>
>> I am able to switch to the remote instance . After switching when I am
>> running any command its giving the result for localhost not  for the remote
>> instance ;.
>>
>>
>> What should I do ? Am I missing any dependency library ? Please do help .
>>
>>
>>
>>
>> *Thanks & Regards*
>> *Sasmita Panda*
>> *Senior Network Testing and Software Engineer*
>> *3CLogic , ph:07827611765*
>>
>>
>> On Fri, Mar 26, 2021 at 5:58 PM Sasmita Panda  wrote:
>>
>>> same result .
>>>
>>> my instance.cfg contains :
>>> cat instance.cfg
>>> [10.0.1.1]
>>> prompt_name: opensips-cli@10.0.1.1
>>> fifo_file: /tmp/opensips_fifo
>>>
>>> https://pastebin.com/FQBipyZJ
>>> This is the result .
>>>
>>>
>>>
>>> *Thanks & Regards*
>>> *Sasmita Panda*
>>> *Senior Network Testing and Software Engineer*
>>> *3CLogic , ph:07827611765*
>>>
>>>
>>> On Fri, Mar 26, 2021 at 5:38 PM Răzvan Crainea 
>>> wrote:
>>>
>>>> You are not switching the instance correctly: should have used
>>>> `instance
>>>> switch 10.0.1.1`
>>>>
>>>> Best regards,
>>>>
>>>> Răzvan Crainea
>>>> OpenSIPS Core Developer
>>>> http://www.opensips-solutions.com
>>>>
>>>> On 3/26/21 1:54 PM, Sasmita Panda wrote:
>>>> > I am not getting any error for this . I have pasted the logs in
>>>> pastebin .
>>>> >
>>>> > https://pastebin.com/4tzXzrrG <https://pastebin.com/4tzXzrrG>
>>>> >
>>>> > What needs to be done in the remote machine 10.0.1.1 . I have allowed
>>>> >  tcp port . I saw default http url is like
>>>> http://10.0.1.1:/mi
>>>> > <http://10.0.1.1:/mi> .
>>>> > Do suggest if I am missing anything .
>>>> >
>>>> >
>>>> > */Thanks & Regards/*
>>>> > /Sasmita Panda/
>>>> > /Senior Network Testing and Software Engineer/
>>>> > /3CLogic , ph:07827611765/
>>>> >
>>>> >
>>>> > On Fri, Mar 26, 2021 at 5:00 PM Răzvan Crainea >>> > <mailto:raz...@opensips.org>> wrote:
>>>> >
>>>> > Hi, Sasmita!
>>>> >
>>>> > Can you post the logs of an execution for the 10.0.1.1 instance
>>>> run
>>>> > with
>>>> > debugging (-d parameter)? Also, please post them on pastebin[1]
>>>> or in a
>>>> > different place, not in the mail itself.
>>>> >
>>>> > [1] https://pastebin.com/ <https://pastebin.com/>
>>>> >
>>>> > Best regards,
>>>> >
>>>> > Răzvan Crainea
>>>> > OpenSIPS Core Developer
>>>> > http://www.opensips-solutions.com <
>>>> http://www.opensips-solutions.com>
>>>> >
>>>> > On 3/26/21 11:16 AM, Sasmita Panda wr

Re: [OpenSIPS-Users] Issue with opensips-cli .

2021-04-14 Thread Saurabh Chopra
Hi Opensips Team/ Razvan,

As per Sasmita's previous mail, we are still stuck in a situation where,

1. If we are using "FIFO" as a communication_type we are not getting data
from a remote machine instead getting data from a local host.
2. If we are using "HTTP" as a communication_type then we are unable to
switch to a remote machine.

For both scenarios logs have been attached in *pastebin*.

Kindly advise and provide us with an early resolution. We will be
waiting for your prompt response

Best Regards
Saurabh Chopra
+918861979979


On Tue, Mar 30, 2021 at 11:31 AM Sasmita Panda  wrote:

> Hi ,
>
> I have changed my instance.cfg like bellow .
>
> [10.0.0.1]
> prompt_name: opensips-cli@10.0.0.1
> communication_type: http
> url: http://10.0.0.1:/json
>
> With this config above I am getting some error . I am not able to switch
> to the remote instance as well .
>
> https://pastebin.com/1fDuHbBk
>
>
> if I am giving below config .
>
>  [10.0.0.1]
> prompt_name: opensips-cli@10.0.0.1
> communication_type: fifo
> fifo_file: /tmp/opensips_fifo
>
> I am able to switch to the remote instance . After switching when I am
> running any command its giving the result for localhost not  for the remote
> instance ;.
>
>
> What should I do ? Am I missing any dependency library ? Please do help .
>
>
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> On Fri, Mar 26, 2021 at 5:58 PM Sasmita Panda  wrote:
>
>> same result .
>>
>> my instance.cfg contains :
>> cat instance.cfg
>> [10.0.1.1]
>> prompt_name: opensips-cli@10.0.1.1
>> fifo_file: /tmp/opensips_fifo
>>
>> https://pastebin.com/FQBipyZJ
>> This is the result .
>>
>>
>>
>> *Thanks & Regards*
>> *Sasmita Panda*
>> *Senior Network Testing and Software Engineer*
>> *3CLogic , ph:07827611765*
>>
>>
>> On Fri, Mar 26, 2021 at 5:38 PM Răzvan Crainea 
>> wrote:
>>
>>> You are not switching the instance correctly: should have used `instance
>>> switch 10.0.1.1`
>>>
>>> Best regards,
>>>
>>> Răzvan Crainea
>>> OpenSIPS Core Developer
>>> http://www.opensips-solutions.com
>>>
>>> On 3/26/21 1:54 PM, Sasmita Panda wrote:
>>> > I am not getting any error for this . I have pasted the logs in
>>> pastebin .
>>> >
>>> > https://pastebin.com/4tzXzrrG <https://pastebin.com/4tzXzrrG>
>>> >
>>> > What needs to be done in the remote machine 10.0.1.1 . I have allowed
>>> >  tcp port . I saw default http url is like http://10.0.1.1:/mi
>>> > <http://10.0.1.1:/mi> .
>>> > Do suggest if I am missing anything .
>>> >
>>> >
>>> > */Thanks & Regards/*
>>> > /Sasmita Panda/
>>> > /Senior Network Testing and Software Engineer/
>>> > /3CLogic , ph:07827611765/
>>> >
>>> >
>>> > On Fri, Mar 26, 2021 at 5:00 PM Răzvan Crainea >> > <mailto:raz...@opensips.org>> wrote:
>>> >
>>> > Hi, Sasmita!
>>> >
>>> > Can you post the logs of an execution for the 10.0.1.1 instance run
>>> > with
>>> > debugging (-d parameter)? Also, please post them on pastebin[1] or
>>> in a
>>> > different place, not in the mail itself.
>>> >
>>> > [1] https://pastebin.com/ <https://pastebin.com/>
>>> >
>>> > Best regards,
>>> >
>>> > Răzvan Crainea
>>> > OpenSIPS Core Developer
>>> > http://www.opensips-solutions.com <
>>> http://www.opensips-solutions.com>
>>> >
>>> > On 3/26/21 11:16 AM, Sasmita Panda wrote:
>>> >  > Hi All ,
>>> >  >
>>> >  > I am using opensips-cli  ( 0.1.0 ) and opensips-3.1 .
>>> >  >
>>> >  > I am able to get all the data of the local host through cli but
>>> > when I
>>> >  > am connecting to a remote host even though it's getting
>>> connected
>>> > but no
>>> >  > data is visible for the remote instance  . It only showing the
>>> > data of
>>> >  > the instance on which I am running the cli .
>>> >  >
>>> >  >
>>> >  >   my opensips-cli.cfg
>>> >  > 

Re: [OpenSIPS-Users] Quality Routing Module in Opensips_3.1

2021-03-25 Thread Saurabh Chopra
Thank you for the help Liviu, Qrouting worked perfectly, I am way ahead of
using Opensips-CLI tool for monitoring.

Do let me know if you have something for that as well?

Best Regards
Saurabh Chopra
+918861979979


On Mon, Jan 11, 2021 at 11:41 AM Saurabh Chopra 
wrote:

> Thank you liviu, I will go through the link and update the results.
>
>
> Best Regards
> Saurabh Chopra
> +918861979979
>
>
> On Fri, Jan 8, 2021 at 4:35 PM Liviu Chircu  wrote:
>
>> On 07.01.2021 14:04, Saurabh Chopra wrote:
>> > Hi Opensips Team,
>> >
>> > Could you please provide an update on the above query on Qrouting.
>>
>> Hey, Saurabh!
>>
>> During OpenSIPS Summit 2020, I made a live demo [1] where the audience
>> controlled the balancing of calls through qrouting, and it worked great!
>>
>> While your pasted data looks completely fine and qrouting should work as
>> expected, I have to ask: what does your "qr_profiles" table look like?
>> Have you provisioned some proper thresholds for profile number "1"?
>> FYI, by default, the table uses a "-1" value (disabled) for the
>> thresholds of each monitored statistic.
>>
>> [1]: https://youtu.be/uHFOB-J8GIQ?t=9366
>>
>> Kind regards,
>>
>> --
>> Liviu Chircu
>> www.twitter.com/liviuchircu | www.opensips-solutions.com
>>
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Sip Capture with Opensips 3.1

2021-03-23 Thread Saurabh Chopra
Hi All,

Was wondering if you've had a chance to look into the above matter...

Best Regards
Saurabh Chopra
+918861979979


On Thu, Mar 18, 2021 at 5:02 PM Saurabh Chopra  wrote:

> Hi All,
>
> I am trying to integrate sip capture module with opensips 3.1. So how data
> can be stored in the sql table with the help of a sipcapture module?
> Because I am not able to locate what database schema should be used to
> create tables at opensips code.
>
> Kindly help me as to how the sipcapture module works with opensips 3.1?
> Waiting for your reply.
>
> Best Regards
> Saurabh Chopra
> +918861979979
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Sip Capture with Opensips 3.1

2021-03-18 Thread Saurabh Chopra
Hi All,

I am trying to integrate sip capture module with opensips 3.1. So how data
can be stored in the sql table with the help of a sipcapture module?
Because I am not able to locate what database schema should be used to
create tables at opensips code.

Kindly help me as to how the sipcapture module works with opensips 3.1?
Waiting for your reply.

Best Regards
Saurabh Chopra
+918861979979
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Opensips 3.1 as HEP server

2021-03-17 Thread Saurabh Chopra
Hi All,

Another query, I am trying to integrate sip capture module with opensips
3.1. So how data can be stored in the sql table with the help of a
sipcapture module? Because I am not able to locate what database
schema should be used to create tables at opensips code.

Kindly help me as to how the sipcapture module works with opensips 3.1?
Waiting for your reply.

Best Regards
Saurabh Chopra
+918861979979


On Mon, Mar 15, 2021 at 12:33 PM Saurabh Chopra 
wrote:

> Hi Opensips Team,
>
> Please provide an update at your earliest convenience.
>
> Best Regards
> Saurabh Chopra
> +918861979979
>
>
> On Fri, Mar 12, 2021 at 11:37 AM Saurabh Chopra 
> wrote:
>
>> Hi All,
>>
>> Kindly look into this problem and please update us with your respected
>> thoughts
>>
>> Best Regards
>> Saurabh Chopra
>> +918861979979
>>
>>
>> On Wed, Mar 10, 2021 at 6:15 PM Saurabh Chopra 
>> wrote:
>>
>>> Hi All,
>>>
>>> I am trying to configure a HEP server on Opensips 3.1.0 but while
>>> testing my server is crashing abruptly.
>>>
>>> I am following the configuration defined under section 6.1 Homer5
>>> integration on "
>>> https://www.opensips.org/Documentation/Tutorials-Tracing "
>>>
>>> Below is the sample configuration at my opensips server.
>>>
>>> log_level=4
>>> log_stderror=no
>>> log_facility=LOG_LOCAL5
>>> socket=hep_udp:104.131.xx.xx:6xxx
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *loadmodule "proto_hep.so"loadmodule
>>> "sipcapture.so"modparam("sipcapture", "db_url",
>>> "mysql://:x@localhost/homerdb")modparam("sipcapture",
>>> "hep_capture_on", 1)modparam("sipcapture", "hep_route", "HEPR")###
>>> Routing Logic # main request routing logicroute{if($rm =~
>>> "REGISTER") {$var(table) = "sip_capture_registration";
>>>   }else if($rm =~ "(INVITE|UPDATE|BYE|ACK|PRACK|REFER|CANCEL)$")
>>> {$var(table) = "sip_capture_call";}else
>>> if($rm =~ "(NOTIFY)$" && is_present_hf("Event") && $hdr(Event)=~"refer;")
>>>   {$var(table) = "sip_capture_call";}
>>> else if($rm =~ "(INFO)$"){$var(table) =
>>> "sip_capture_call";}    else if($rm =~ "(OPTIONS)$" ){
>>>   $var(table) = "sip_capture_rest";}else {
>>>   $var(table) = "sip_capture_rest";}#$var(utc) = "%Y%m%d";
>>>   xlog("WRITING NEWLY CAME PACKET INTO ($var(table))!\n");
>>> if($var(table) == "sip_capture_call")
>>> sip_capture("sip_capture_call_%Y%m%d");else if($var(table) ==
>>> "sip_capture_registration")
>>> sip_capture("sip_capture_registration_%Y%m%d");else
>>> sip_capture("sip_capture_rest_%Y%m%d");}route[HEPR] {
>>> hep_get("11", $var(vid), $var(data));if ( $var(data) == "SIP" ) {
>>>   hep_resume_sip();}$var(proto) = $(var(data){s.int
>>> <http://s.int>});### anything but xlog shall be droppedif (
>>> $var(proto) != 87 )exit;hep_get("0x0011",
>>> "utf8-string", $var(vendor), $var(correlation));
>>> report_capture($var(correlation_id), "rtcp_log", $var(proto_type));
>>> #report_capture("logs_capture", $var(correlation));exit;}*
>>>
>>> Any prompt help would be highly appreciated.
>>>
>>> Best Regards
>>> Saurabh Chopra
>>> +918861979979
>>>
>>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Opensips 3.1 as HEP server

2021-03-15 Thread Saurabh Chopra
Hi Opensips Team,

Please provide an update at your earliest convenience.

Best Regards
Saurabh Chopra
+918861979979


On Fri, Mar 12, 2021 at 11:37 AM Saurabh Chopra 
wrote:

> Hi All,
>
> Kindly look into this problem and please update us with your respected
> thoughts
>
> Best Regards
> Saurabh Chopra
> +918861979979
>
>
> On Wed, Mar 10, 2021 at 6:15 PM Saurabh Chopra 
> wrote:
>
>> Hi All,
>>
>> I am trying to configure a HEP server on Opensips 3.1.0 but while testing
>> my server is crashing abruptly.
>>
>> I am following the configuration defined under section 6.1 Homer5
>> integration on " https://www.opensips.org/Documentation/Tutorials-Tracing
>> "
>>
>> Below is the sample configuration at my opensips server.
>>
>> log_level=4
>> log_stderror=no
>> log_facility=LOG_LOCAL5
>> socket=hep_udp:104.131.xx.xx:6xxx
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *loadmodule "proto_hep.so"loadmodule
>> "sipcapture.so"modparam("sipcapture", "db_url",
>> "mysql://:x@localhost/homerdb")modparam("sipcapture",
>> "hep_capture_on", 1)modparam("sipcapture", "hep_route", "HEPR")###
>> Routing Logic # main request routing logicroute{if($rm =~
>> "REGISTER") {$var(table) = "sip_capture_registration";
>>   }else if($rm =~ "(INVITE|UPDATE|BYE|ACK|PRACK|REFER|CANCEL)$")
>> {$var(table) = "sip_capture_call";}else
>> if($rm =~ "(NOTIFY)$" && is_present_hf("Event") && $hdr(Event)=~"refer;")
>>   {$var(table) = "sip_capture_call";}
>> else if($rm =~ "(INFO)$"){$var(table) =
>> "sip_capture_call";}else if($rm =~ "(OPTIONS)$" ){
>>   $var(table) = "sip_capture_rest";}else {
>>   $var(table) = "sip_capture_rest";}#$var(utc) = "%Y%m%d";
>>   xlog("WRITING NEWLY CAME PACKET INTO ($var(table))!\n");
>> if($var(table) == "sip_capture_call")
>> sip_capture("sip_capture_call_%Y%m%d");else if($var(table) ==
>> "sip_capture_registration")
>> sip_capture("sip_capture_registration_%Y%m%d");else
>> sip_capture("sip_capture_rest_%Y%m%d");}route[HEPR] {
>> hep_get("11", $var(vid), $var(data));if ( $var(data) == "SIP" ) {
>>   hep_resume_sip();}$var(proto) = $(var(data){s.int
>> <http://s.int>});### anything but xlog shall be droppedif (
>> $var(proto) != 87 )exit;hep_get("0x0011",
>> "utf8-string", $var(vendor), $var(correlation));
>> report_capture($var(correlation_id), "rtcp_log", $var(proto_type));
>> #report_capture("logs_capture", $var(correlation));exit;}*
>>
>> Any prompt help would be highly appreciated.
>>
>> Best Regards
>> Saurabh Chopra
>> +918861979979
>>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Opensips 3.1 as HEP server

2021-03-11 Thread Saurabh Chopra
Hi All,

Kindly look into this problem and please update us with your respected
thoughts

Best Regards
Saurabh Chopra
+918861979979


On Wed, Mar 10, 2021 at 6:15 PM Saurabh Chopra  wrote:

> Hi All,
>
> I am trying to configure a HEP server on Opensips 3.1.0 but while testing
> my server is crashing abruptly.
>
> I am following the configuration defined under section 6.1 Homer5
> integration on " https://www.opensips.org/Documentation/Tutorials-Tracing
> "
>
> Below is the sample configuration at my opensips server.
>
> log_level=4
> log_stderror=no
> log_facility=LOG_LOCAL5
> socket=hep_udp:104.131.xx.xx:6xxx
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *loadmodule "proto_hep.so"loadmodule "sipcapture.so"modparam("sipcapture",
> "db_url", "mysql://:x@localhost/homerdb")modparam("sipcapture",
> "hep_capture_on", 1)modparam("sipcapture", "hep_route", "HEPR")###
> Routing Logic # main request routing logicroute{if($rm =~
> "REGISTER") {$var(table) = "sip_capture_registration";
>   }else if($rm =~ "(INVITE|UPDATE|BYE|ACK|PRACK|REFER|CANCEL)$")
> {$var(table) = "sip_capture_call";}else
> if($rm =~ "(NOTIFY)$" && is_present_hf("Event") && $hdr(Event)=~"refer;")
>   {$var(table) = "sip_capture_call";}
> else if($rm =~ "(INFO)$"){$var(table) =
> "sip_capture_call";}else if($rm =~ "(OPTIONS)$" ){
>   $var(table) = "sip_capture_rest";}else {
>   $var(table) = "sip_capture_rest";}#$var(utc) = "%Y%m%d";
>   xlog("WRITING NEWLY CAME PACKET INTO ($var(table))!\n");
> if($var(table) == "sip_capture_call")
> sip_capture("sip_capture_call_%Y%m%d");else if($var(table) ==
> "sip_capture_registration")
> sip_capture("sip_capture_registration_%Y%m%d");else
> sip_capture("sip_capture_rest_%Y%m%d");}route[HEPR] {
> hep_get("11", $var(vid), $var(data));if ( $var(data) == "SIP" ) {
>   hep_resume_sip();}$var(proto) = $(var(data){s.int
> <http://s.int>});### anything but xlog shall be droppedif (
> $var(proto) != 87 )exit;hep_get("0x0011",
> "utf8-string", $var(vendor), $var(correlation));
> report_capture($var(correlation_id), "rtcp_log", $var(proto_type));
> #report_capture("logs_capture", $var(correlation));exit;}*
>
> Any prompt help would be highly appreciated.
>
> Best Regards
> Saurabh Chopra
> +918861979979
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Opensips 3.1 as HEP server

2021-03-10 Thread Saurabh Chopra
Hi All,

I am trying to configure a HEP server on Opensips 3.1.0 but while testing
my server is crashing abruptly.

I am following the configuration defined under section 6.1 Homer5
integration on " https://www.opensips.org/Documentation/Tutorials-Tracing "

Below is the sample configuration at my opensips server.

log_level=4
log_stderror=no
log_facility=LOG_LOCAL5
socket=hep_udp:104.131.xx.xx:6xxx



























































*loadmodule "proto_hep.so"loadmodule "sipcapture.so"modparam("sipcapture",
"db_url", "mysql://:x@localhost/homerdb")modparam("sipcapture",
"hep_capture_on", 1)modparam("sipcapture", "hep_route", "HEPR")###
Routing Logic # main request routing logicroute{if($rm =~
"REGISTER") {$var(table) = "sip_capture_registration";
  }else if($rm =~ "(INVITE|UPDATE|BYE|ACK|PRACK|REFER|CANCEL)$")
{$var(table) = "sip_capture_call";}else
if($rm =~ "(NOTIFY)$" && is_present_hf("Event") && $hdr(Event)=~"refer;")
  {$var(table) = "sip_capture_call";}
else if($rm =~ "(INFO)$"){$var(table) =
"sip_capture_call";}else if($rm =~ "(OPTIONS)$" ){
  $var(table) = "sip_capture_rest";}else {
  $var(table) = "sip_capture_rest";}#$var(utc) = "%Y%m%d";
  xlog("WRITING NEWLY CAME PACKET INTO ($var(table))!\n");
if($var(table) == "sip_capture_call")
sip_capture("sip_capture_call_%Y%m%d");else if($var(table) ==
"sip_capture_registration")
sip_capture("sip_capture_registration_%Y%m%d");else
sip_capture("sip_capture_rest_%Y%m%d");}route[HEPR] {
hep_get("11", $var(vid), $var(data));if ( $var(data) == "SIP" ) {
  hep_resume_sip();}$var(proto) = $(var(data){s.int
<http://s.int>});### anything but xlog shall be droppedif (
$var(proto) != 87 )exit;hep_get("0x0011",
"utf8-string", $var(vendor), $var(correlation));
report_capture($var(correlation_id), "rtcp_log", $var(proto_type));
#report_capture("logs_capture", $var(correlation));exit;}*

Any prompt help would be highly appreciated.

Best Regards
Saurabh Chopra
+918861979979
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Quality Routing Module in Opensips_3.1

2021-01-10 Thread Saurabh Chopra
Thank you liviu, I will go through the link and update the results.


Best Regards
Saurabh Chopra
+918861979979


On Fri, Jan 8, 2021 at 4:35 PM Liviu Chircu  wrote:

> On 07.01.2021 14:04, Saurabh Chopra wrote:
> > Hi Opensips Team,
> >
> > Could you please provide an update on the above query on Qrouting.
>
> Hey, Saurabh!
>
> During OpenSIPS Summit 2020, I made a live demo [1] where the audience
> controlled the balancing of calls through qrouting, and it worked great!
>
> While your pasted data looks completely fine and qrouting should work as
> expected, I have to ask: what does your "qr_profiles" table look like?
> Have you provisioned some proper thresholds for profile number "1"?
> FYI, by default, the table uses a "-1" value (disabled) for the
> thresholds of each monitored statistic.
>
> [1]: https://youtu.be/uHFOB-J8GIQ?t=9366
>
> Kind regards,
>
> --
> Liviu Chircu
> www.twitter.com/liviuchircu | www.opensips-solutions.com
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Quality Routing Module in Opensips_3.1

2021-01-07 Thread Saurabh Chopra
Hi Opensips Team,

Could you please provide an update on the above query on Qrouting.

Best Regards
Saurabh Chopra
+918861979979


On Mon, Jan 4, 2021 at 5:23 PM Saurabh Chopra  wrote:

> Hi Tony/Opensips Team,
>
> Happy New Year,
>
> I have tried to test with default values in my configuration file but no
> luck.The call is still going to the first gateway i.e. 104.XX.XX.XX. If
> possible could you please help us at configuration side, what parameters
> should be allowed to test this Qrouting module. Below is the output
> for opensips-cli -x mi qr_status:-
>
> "Carrier": {
> "CRID": "cr1",
> "Gateways": [
> {
> "GWID": "gw1",
> "ASR": "-1.00/9",
> "CCR": "-1.00/9",
> "PDD": "-1.00/7",
> "AST": "-1.00/7",
> "ACD": "-1.00/7"
> },
> {
> "GWID": "gw2",
> "ASR": "-1.00/0",
> "CCR": "-1.00/0",
> "PDD": "-1.00/0",
> "AST": "-1.00/0",
> "ACD": "-1.00/0"
>         }
> ]
>
>
> Best Regards
> Saurabh Chopra
> +918861979979
>
>
> On Mon, Dec 21, 2020 at 4:18 PM Saurabh Chopra 
> wrote:
>
>> Hi Tony/Opensips Team,
>>
>> Will test it with default values as per your suggestion and will post the
>> result of statistics for each of the gateways.
>>
>>
>> Best Regards
>> Saurabh Chopra
>> +918861979979
>>
>>
>> On Sun, Dec 20, 2020 at 3:09 PM Tomi Hakkarainen 
>> wrote:
>>
>>> Hi,
>>>
>>> never used myself but as reading the doc and your config, here some of
>>> my thoughts.
>>>
>>> I see you are setting min_samples to zero and My guess is that that way
>>> they will stay healthy forever?
>>> Maybe adjust the config of min_samples to something like default or 15
>>> and look how it behaves...
>>> also have you viewed what the statistics show while testing? ( opensips-cli
>>> -x mi qr_status )
>>> Would like to hear how it goes :)
>>>
>>> Tomi
>>>
>>> On 18. Dec 2020, at 15.03, Saurabh Chopra  wrote:
>>>
>>> 
>>> Hi All,
>>>
>>> Kindly update me on the query raised on Qrouting.
>>>
>>> Best Regards
>>> Saurabh Chopra
>>> +918861979979
>>>
>>>
>>> On Thu, Dec 17, 2020 at 3:43 PM Saurabh Chopra 
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> I want to test the new quality routing module, previously i have tested
>>>> the dynamic routing and it works for me. But somehow, qrouting module is
>>>> not running as per my expectation. My understanding is qrouting module
>>>> helps us to choose a better gateway at run time as per statistics like
>>>> ASR,PDD,AST etc. I took two asterisk gateways
>>>> 1:- 162.243.XX.XXX
>>>> 2:- 104.131.XXX.XXX
>>>>
>>>> I have deliberately given 15sec wait on 104.131.XXX.XXX asterisk after
>>>> this it will send 200 OK response for the call. So as per qrouting module,
>>>> AST statistics for 104.131.XXX.XXX gateway would somewhat be lower than
>>>> this 162.243.XX.XXX.
>>>>
>>>> So,I am expecting the call should mostly be reached to 162.243.XX.XXX
>>>> gateway instead of 104.131.XXX.XXX, but this is not happening as calls are
>>>> reaching to 104.131.XXX.XXX gateway which has poor statistics i.e AST.
>>>>
>>>> *Configuration done at mysql is given below:-*
>>>> mysql> select * from dr_rules;
>>>>
>>>> ++-++-+--+-+---+--+--+---++
>>>> | ruleid | groupi

Re: [OpenSIPS-Users] Quality Routing Module in Opensips_3.1

2021-01-04 Thread Saurabh Chopra
Hi Tony/Opensips Team,

Happy New Year,

I have tried to test with default values in my configuration file but no
luck.The call is still going to the first gateway i.e. 104.XX.XX.XX. If
possible could you please help us at configuration side, what parameters
should be allowed to test this Qrouting module. Below is the output
for opensips-cli -x mi qr_status:-

"Carrier": {
"CRID": "cr1",
"Gateways": [
{
"GWID": "gw1",
"ASR": "-1.00/9",
"CCR": "-1.00/9",
"PDD": "-1.00/7",
"AST": "-1.00/7",
"ACD": "-1.00/7"
},
{
"GWID": "gw2",
"ASR": "-1.00/0",
"CCR": "-1.00/0",
"PDD": "-1.00/0",
        "AST": "-1.00/0",
"ACD": "-1.00/0"
}
    ]


Best Regards
Saurabh Chopra
+918861979979


On Mon, Dec 21, 2020 at 4:18 PM Saurabh Chopra  wrote:

> Hi Tony/Opensips Team,
>
> Will test it with default values as per your suggestion and will post the
> result of statistics for each of the gateways.
>
>
> Best Regards
> Saurabh Chopra
> +918861979979
>
>
> On Sun, Dec 20, 2020 at 3:09 PM Tomi Hakkarainen 
> wrote:
>
>> Hi,
>>
>> never used myself but as reading the doc and your config, here some of my
>> thoughts.
>>
>> I see you are setting min_samples to zero and My guess is that that way
>> they will stay healthy forever?
>> Maybe adjust the config of min_samples to something like default or 15
>> and look how it behaves...
>> also have you viewed what the statistics show while testing? ( opensips-cli
>> -x mi qr_status )
>> Would like to hear how it goes :)
>>
>> Tomi
>>
>> On 18. Dec 2020, at 15.03, Saurabh Chopra  wrote:
>>
>> 
>> Hi All,
>>
>> Kindly update me on the query raised on Qrouting.
>>
>> Best Regards
>> Saurabh Chopra
>> +918861979979
>>
>>
>> On Thu, Dec 17, 2020 at 3:43 PM Saurabh Chopra 
>> wrote:
>>
>>> Hi All,
>>>
>>> I want to test the new quality routing module, previously i have tested
>>> the dynamic routing and it works for me. But somehow, qrouting module is
>>> not running as per my expectation. My understanding is qrouting module
>>> helps us to choose a better gateway at run time as per statistics like
>>> ASR,PDD,AST etc. I took two asterisk gateways
>>> 1:- 162.243.XX.XXX
>>> 2:- 104.131.XXX.XXX
>>>
>>> I have deliberately given 15sec wait on 104.131.XXX.XXX asterisk after
>>> this it will send 200 OK response for the call. So as per qrouting module,
>>> AST statistics for 104.131.XXX.XXX gateway would somewhat be lower than
>>> this 162.243.XX.XXX.
>>>
>>> So,I am expecting the call should mostly be reached to 162.243.XX.XXX
>>> gateway instead of 104.131.XXX.XXX, but this is not happening as calls are
>>> reaching to 104.131.XXX.XXX gateway which has poor statistics i.e AST.
>>>
>>> *Configuration done at mysql is given below:-*
>>> mysql> select * from dr_rules;
>>>
>>> ++-++-+--+-+---+--+--+---++
>>> | ruleid | groupid | prefix | timerec | priority | routeid | gwlist |
>>> sort_alg | sort_profile | attrs | description|
>>>
>>> ++-++-+--+-+---+--+--+---++
>>> |  1 | 1   || |0 | |
>>> gw2=50,gw1=50 | Q|1 |   | XXX_gateway |
>>>
>>> ++-++-+--+-+

[OpenSIPS-Users] Test_mail

2020-12-23 Thread Saurabh Chopra
Best Regards
Saurabh Chopra
+918861979979
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Db_mode=3(sql only) in USRLOC module in opensips_3.1

2020-12-23 Thread Saurabh Chopra
Hi Donat/Opensips Team,

We have tested with "working_mode_preset" as *sql only* because db_mode is
deprecated. And as far as opensips logs is concerned , I am attaching
opensips logs as a text file with *log_level=4, *please check if you could
find anything unusual.
Will wait for your feedback.


Best Regards
Saurabh Chopra
+918861979979


On Wed, Dec 16, 2020 at 6:46 PM Donat Zenichev 
wrote:

> Good day Sasmita and Saurabh,
> that's a good question to ask and answer actually.
>
> As I was mentioning at the very beginning, did you try to look into the
> logs with the deep log_level?
> https://www.opensips.org/Documentation/Script-CoreParameters-3-1#toc37
> This is highly appreciated when doing a debug of an issue.
>
> What do "db_mysql.so" and "usrloc.so" say when you try to de-register a
> subscriber? (with a debug log_level)
>
> Other than that, I want to mention that the "db_mode" parameter is kept
> now for backwards compatibility.
> It also conflicts with "working_mode_preset" parameter:
> https://opensips.org/html/docs/modules/3.1.x/usrloc.html#param_working_mode_preset
> Try to see if "working_mode_preset" is also configured on your OpenSIPS
> instance.
> And might be, this would also be a good idea to switch to usage of
> "working_mode_preset" instead of "db_mode", at least because it's a more
> actual one.
>
> Also how about the:
>
> https://opensips.org/html/docs/modules/3.1.x/usrloc.html#param_restart_persistency
>
> https://opensips.org/html/docs/modules/3.1.x/usrloc.html#param_sql_write_mode
>
> Is that configured on your OpenSIPS instance? If so, what are the options
> set for that?
> (of course, this couple should be useless in db only mode, but just in
> case you have inadvertently configured this as well).
>
> Anyway, pay much attention to logs at the debug level.
> As this can give you some insight on what happens.
>
> Have a nice day!
>
> On Wed, Dec 16, 2020 at 7:58 AM Sasmita Panda  wrote:
>
>> Hi Donat,
>>
>> According to Saurabh , he is saying in " *db_mode=3 and sql-only mode*
>> "  that direct DB operation happens .
>> When a user get registered that contact immediately get populated to the
>> DB and when the user send un-registration the entry from the DB should be
>> deleted at that time .
>> *The deletion part is not happening in his case *.* The contact from
>> location table delete when in the expiration time* .
>>
>> According to opensips documentation , the timer works when the user not
>> able to un-registrer itself . Then data persist in the DB . That should be
>> deleted in the timer interval . This is fine .
>>
>> If I will explain through example .
>> 1. Usr get register at 11.10.10 with expire 300sec .
>> 2. User send un-register at 11.11.10  (But the data wont get deleted from
>> the DB somehow)
>> 3.  The user was gone away in 1min only . But the data in DB is there for
>> next 4min . * In this case the timer wont play any role . Even
>> though timer_interval is set to 120sec . Still the contact exists till 5min
>> . *
>> 4. If an INVITE will come for that user . Then opensips will try to push
>> the call to that existing contact . But I was expecting 404 Not Found .
>>
>> This is the problem . As for the previous version of opensips this is
>> working fine . But in 3.1 we are facing  issue .
>>
>> I have  taken opensips code from
>>
>> *git clone https://github.com/OpenSIPS/opensips.git 
>> <https://github.com/OpenSIPS/opensips.git> -b 3.1 opensips-3.1*
>>
>>
>> *Please suggest what else we should do .*
>>
>> *Thanks & Regards*
>> *Sasmita Panda*
>> *Senior Network Testing and Software Engineer*
>> *3CLogic , ph:07827611765*
>>
>>
>> On Mon, Dec 14, 2020 at 5:13 PM Donat Zenichev 
>> wrote:
>>
>>> Good day Saurabh, could you refer to the RFC and the particular row in
>>> that, that talks about a backend database and time in which the row should
>>> be deleted from that?
>>> I just wonder if I missed this somewhere. I haven't ever seen a
>>> specification for databases backend in RFCs related to the SIP protocol.
>>> Would be a good thing for me to learn something new! :)
>>>
>>> I just want to mention, and focus you on the fact, that you might need
>>> to take a look at this parameter:
>>>
>>> https://opensips.org/html/docs/modules/3.0.x/usrloc.html#param_timer_interval
>>>
>>> As this plays not the last role when working in sql-only mode.
>>> Did you 

Re: [OpenSIPS-Users] Quality Routing Module in Opensips_3.1

2020-12-21 Thread Saurabh Chopra
Hi Tony/Opensips Team,

Will test it with default values as per your suggestion and will post the
result of statistics for each of the gateways.


Best Regards
Saurabh Chopra
+918861979979


On Sun, Dec 20, 2020 at 3:09 PM Tomi Hakkarainen  wrote:

> Hi,
>
> never used myself but as reading the doc and your config, here some of my
> thoughts.
>
> I see you are setting min_samples to zero and My guess is that that way
> they will stay healthy forever?
> Maybe adjust the config of min_samples to something like default or 15 and
> look how it behaves...
> also have you viewed what the statistics show while testing? ( opensips-cli
> -x mi qr_status )
> Would like to hear how it goes :)
>
> Tomi
>
> On 18. Dec 2020, at 15.03, Saurabh Chopra  wrote:
>
> 
> Hi All,
>
> Kindly update me on the query raised on Qrouting.
>
> Best Regards
> Saurabh Chopra
> +918861979979
>
>
> On Thu, Dec 17, 2020 at 3:43 PM Saurabh Chopra 
> wrote:
>
>> Hi All,
>>
>> I want to test the new quality routing module, previously i have tested
>> the dynamic routing and it works for me. But somehow, qrouting module is
>> not running as per my expectation. My understanding is qrouting module
>> helps us to choose a better gateway at run time as per statistics like
>> ASR,PDD,AST etc. I took two asterisk gateways
>> 1:- 162.243.XX.XXX
>> 2:- 104.131.XXX.XXX
>>
>> I have deliberately given 15sec wait on 104.131.XXX.XXX asterisk after
>> this it will send 200 OK response for the call. So as per qrouting module,
>> AST statistics for 104.131.XXX.XXX gateway would somewhat be lower than
>> this 162.243.XX.XXX.
>>
>> So,I am expecting the call should mostly be reached to 162.243.XX.XXX
>> gateway instead of 104.131.XXX.XXX, but this is not happening as calls are
>> reaching to 104.131.XXX.XXX gateway which has poor statistics i.e AST.
>>
>> *Configuration done at mysql is given below:-*
>> mysql> select * from dr_rules;
>>
>> ++-++-+--+-+---+--+--+---++
>> | ruleid | groupid | prefix | timerec | priority | routeid | gwlist |
>> sort_alg | sort_profile | attrs | description|
>>
>> ++-++-+--+-+---+--+--+---++
>> |  1 | 1   || |0 | |
>> gw2=50,gw1=50 | Q|1 |   | XXX_gateway |
>>
>> ++-++-+--+-+---+--+--+---++
>> 1 row in set (0.00 sec)
>>
>> mysql> select * from dr_gateways;
>>
>> ++--+--+--+---++---++---++--+
>> | id | gwid | type | address  | strip | pri_prefix | attrs |
>> probe_mode | state | socket | description |
>>
>> ++--+--+--+---++---++---++--+
>> |  1 | gw1  |3 | 162.243.XX.XXX:5080  | 0 || NULL  |
>>  0 | 0 | NULL   | 0|
>> |  2 | gw2  |3 | 104.131.XXX.XXX:5080 | 0 || NULL  |
>>  0 | 0 | NULL   | testing gateway2 |
>>
>> ++--+--+--+---++---++---++--+
>>
>>
>> *Configuration for loading qrouting module in opensips script is below:-*
>> loadmodule "qrouting.so"
>> modparam("qrouting", "db_url", "mysql://root:cccl0g1c@localhost
>> /opensips")
>> modparam("qrouting", "algorithm", "best-dest-first")
>> modparam("qrouting", "history_span", 5)
>> modparam("qrouting", "table_name", "qr_profiles")
>> modparam("qrouting", "min_samples_pdd", 0)
>> modparam("qrouting", "min_samples_ast", 0)
>>
>> Kindly help so that i can test this module successfully. Waiting for
>> prompt response
>>
>> Best Regards
>> Saurabh Chopra
>> +918861979979
>>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Quality Routing Module in Opensips_3.1

2020-12-18 Thread Saurabh Chopra
Hi All,

Kindly update me on the query raised on Qrouting.

Best Regards
Saurabh Chopra
+918861979979


On Thu, Dec 17, 2020 at 3:43 PM Saurabh Chopra  wrote:

> Hi All,
>
> I want to test the new quality routing module, previously i have tested
> the dynamic routing and it works for me. But somehow, qrouting module is
> not running as per my expectation. My understanding is qrouting module
> helps us to choose a better gateway at run time as per statistics like
> ASR,PDD,AST etc. I took two asterisk gateways
> 1:- 162.243.XX.XXX
> 2:- 104.131.XXX.XXX
>
> I have deliberately given 15sec wait on 104.131.XXX.XXX asterisk after
> this it will send 200 OK response for the call. So as per qrouting module,
> AST statistics for 104.131.XXX.XXX gateway would somewhat be lower than
> this 162.243.XX.XXX.
>
> So,I am expecting the call should mostly be reached to 162.243.XX.XXX
> gateway instead of 104.131.XXX.XXX, but this is not happening as calls are
> reaching to 104.131.XXX.XXX gateway which has poor statistics i.e AST.
>
> *Configuration done at mysql is given below:-*
> mysql> select * from dr_rules;
>
> ++-++-+--+-+---+--+--+---++
> | ruleid | groupid | prefix | timerec | priority | routeid | gwlist |
> sort_alg | sort_profile | attrs | description|
>
> ++-++-+--+-+---+--+--+---++
> |  1 | 1   || |0 | | gw2=50,gw1=50
> | Q|1 |   | XXX_gateway |
>
> ++-++-+--+-+---+--+--+---++
> 1 row in set (0.00 sec)
>
> mysql> select * from dr_gateways;
>
> ++--+--+--+---++---++---++--+
> | id | gwid | type | address  | strip | pri_prefix | attrs |
> probe_mode | state | socket | description |
>
> ++--+--+--+---++---++---++--+
> |  1 | gw1  |3 | 162.243.XX.XXX:5080  | 0 || NULL  |
>0 | 0 | NULL   | 0|
> |  2 | gw2  |3 | 104.131.XXX.XXX:5080 | 0 || NULL  |
>0 | 0 | NULL   | testing gateway2 |
>
> ++--+--+--+---++---++---++--+
>
>
> *Configuration for loading qrouting module in opensips script is below:-*
> loadmodule "qrouting.so"
> modparam("qrouting", "db_url", "mysql://root:cccl0g1c@localhost/opensips")
> modparam("qrouting", "algorithm", "best-dest-first")
> modparam("qrouting", "history_span", 5)
> modparam("qrouting", "table_name", "qr_profiles")
> modparam("qrouting", "min_samples_pdd", 0)
> modparam("qrouting", "min_samples_ast", 0)
>
> Kindly help so that i can test this module successfully. Waiting for
> prompt response
>
> Best Regards
> Saurabh Chopra
> +918861979979
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Quality Routing Module in Opensips_3.1

2020-12-17 Thread Saurabh Chopra
Hi All,

I want to test the new quality routing module, previously i have tested the
dynamic routing and it works for me. But somehow, qrouting module is not
running as per my expectation. My understanding is qrouting module helps us
to choose a better gateway at run time as per statistics like ASR,PDD,AST
etc. I took two asterisk gateways
1:- 162.243.XX.XXX
2:- 104.131.XXX.XXX

I have deliberately given 15sec wait on 104.131.XXX.XXX asterisk after this
it will send 200 OK response for the call. So as per qrouting module, AST
statistics for 104.131.XXX.XXX gateway would somewhat be lower than this
162.243.XX.XXX.

So,I am expecting the call should mostly be reached to 162.243.XX.XXX
gateway instead of 104.131.XXX.XXX, but this is not happening as calls are
reaching to 104.131.XXX.XXX gateway which has poor statistics i.e AST.

*Configuration done at mysql is given below:-*
mysql> select * from dr_rules;
++-++-+--+-+---+--+--+---++
| ruleid | groupid | prefix | timerec | priority | routeid | gwlist |
sort_alg | sort_profile | attrs | description|
++-++-+--+-+---+--+--+---++
|  1 | 1   || |0 | | gw2=50,gw1=50
| Q|1 |   | XXX_gateway |
++-++-+--+-+---+--+--+---++
1 row in set (0.00 sec)

mysql> select * from dr_gateways;
++--+--+--+---++---++---++--+
| id | gwid | type | address  | strip | pri_prefix | attrs |
probe_mode | state | socket | description |
++--+--+--+---++---++---++--+
|  1 | gw1  |3 | 162.243.XX.XXX:5080  | 0 || NULL  |
   0 | 0 | NULL   | 0|
|  2 | gw2  |3 | 104.131.XXX.XXX:5080 | 0 || NULL  |
   0 | 0 | NULL   | testing gateway2 |
++--+--+--+---++---++---++--+


*Configuration for loading qrouting module in opensips script is below:-*
loadmodule "qrouting.so"
modparam("qrouting", "db_url", "mysql://root:cccl0g1c@localhost/opensips")
modparam("qrouting", "algorithm", "best-dest-first")
modparam("qrouting", "history_span", 5)
modparam("qrouting", "table_name", "qr_profiles")
modparam("qrouting", "min_samples_pdd", 0)
modparam("qrouting", "min_samples_ast", 0)

Kindly help so that i can test this module successfully. Waiting for prompt
response

Best Regards
Saurabh Chopra
+918861979979
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Db_mode=3(sql only) in USRLOC module in opensips_3.1

2020-12-14 Thread Saurabh Chopra
Hi Donat/Opensips Team,

Apologies for late response, but ideally the entry should be deleted after
un-registration is sent otherwise it will violate the RFC rule.
Also, this SQL Only Mode is perfectly working with opensips 2.2 and 3.0
versions with the same configuration. Could you guys try to replicate this
Or confirm if I am missing anything in the configuration side.


Best Regards
Saurabh Chopra
+918861979979


On Fri, Dec 11, 2020 at 2:22 PM Donat Zenichev 
wrote:

> I just want to follow up with the thing that, using the sql-only mode,
> expired location records might not be deleted right away.
> I just remembered all of the sudden, that the timer interval controls data
> clearing/updating when using sql-only mode.
>
> Then you might also want to play with your timer interval value. How huge
> is that now?
>
> https://opensips.org/html/docs/modules/3.0.x/usrloc.html#param_timer_interval
>
> This one is responsible for clearing out expired contacts from the user
> location table.
> Here is a quotation from the "sql-only" mod description:
> "The timer deletes all expired contacts from database - cleans after
> clients that didn't un-register or re-register."
>
> On Fri, Dec 11, 2020 at 9:22 AM Donat Zenichev 
> wrote:
>
>> Good morning Saurabh,
>> that sounds a bit odd, as the sql only mode supposes that usrloc.so
>> updates the backend sql right away.
>>
>> Do you have any warnings occurring in the OpenSIPS log?
>> There might be a case for an inability of OpenSIPS to reach the sql
>> server at the moment of de-registration.
>> See if there are any re-connections to the database.
>>
>> And also did you try to gather opensips logs with a debug level?
>> Try to see which log rows both "db_mysql.so" (if you are using mysql as a
>> backend db) and "usrloc.so" are throwing out into the log, when you send a
>> de-registration.
>>
>> Otherwise, you might also try to use either
>> "single-instance-sql-write-through" or "single-instance-sql-write-back",
>> which perhaps can better fit your demands.
>>
>>
>> On Fri, Dec 11, 2020 at 9:00 AM Saurabh Chopra 
>> wrote:
>>
>>> Hi All,
>>>
>>> I am testing a usrloc module with db_mode=3(sql only) and a strange
>>> thing is happening, when we send an unregistration request the user entry
>>> is not deleting from the database . However the entry is deleted after
>>> expiry timer.
>>>
>>> loadmodule "usrloc.so"
>>> modparam("usrloc", "nat_bflag", "NAT")
>>> modparam("usrloc", "db_mode", 3)
>>> modparam("usrloc", "db_url", "mysql://root:g1c@localhost/opensips")
>>>
>>>
>>> Does db_mode=3 used to work like this? Or I am missing something?
>>>
>>> Best Regards
>>> Saurabh Chopra
>>> +918861979979
>>> ___
>>> Users mailing list
>>> Users@lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>
>>
>> --
>>
>> Best regards,
>> Donat Zenichev
>>
>>
>
> --
>
> Best regards,
> Donat Zenichev
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Db_mode=3(sql only) in USRLOC module in opensips_3.1

2020-12-10 Thread Saurabh Chopra
Hi All,

I am testing a usrloc module with db_mode=3(sql only) and a strange thing
is happening, when we send an unregistration request the user entry is not
deleting from the database . However the entry is deleted after
expiry timer.

loadmodule "usrloc.so"
modparam("usrloc", "nat_bflag", "NAT")
modparam("usrloc", "db_mode", 3)
modparam("usrloc", "db_url", "mysql://root:g1c@localhost/opensips")


Does db_mode=3 used to work like this? Or I am missing something?

Best Regards
Saurabh Chopra
+918861979979
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Test_Mail

2020-12-09 Thread Saurabh Chopra
My First Test Mail
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users