Re: [OpenSIPS-Users] memory options

2016-12-22 Thread Matt Hamilton
Nevermind. Seems like -m is 32MB and -M 2MB by default.


From: Users  on behalf of Matt Hamilton 

Sent: Thursday, December 22, 2016 3:48:11 PM
To: Opensips Users
Subject: [OpenSIPS-Users] memory options

We are running 1.11.5 (TLS) and running into memory issues (not enough free 
memory). I'm aware of the memory options (-m and -M). What are their default 
values?

Is it possible to query a running Opensips instance to find out what these 
values are set to (to confirm once I change them)?


We have 8GB of RAM on the server (that only runs Opensips). Any suggestions for 
-M and -m?


Thanks,

Matt

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


[OpenSIPS-Users] memory options

2016-12-22 Thread Matt Hamilton
We are running 1.11.5 (TLS) and running into memory issues (not enough free 
memory). I'm aware of the memory options (-m and -M). What are their default 
values?

Is it possible to query a running Opensips instance to find out what these 
values are set to (to confirm once I change them)?


We have 8GB of RAM on the server (that only runs Opensips). Any suggestions for 
-M and -m?


Thanks,

Matt

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


[OpenSIPS-Users] Using Redis with OpenSIPS 2.1.5 error

2016-12-22 Thread Sami Montour
Hello Everyone,



  I am trying to use Redis with OpenSIPS 2.1.5 but I am getting an error (see 
below) indicating that OpenSIPS is not able to load the module 
(cachedb_redis.so). As you can see from my printout below, the module does 
exist in the module library directory. Below is my configuration about Redis, 
OpenSIPS, and the error.



Any help is very much appreciated. Thanks.







# opensips -c

Dec 21 11:39:04 [15262] ERROR:core:sr_load_module: could not open module

:

/usr/local/opensips/lib64/opensips/modules/cachedb_redis.so: undefined

symbol: get_redis_connection

Dec 21 11:39:04 [15262] ERROR:core:load_module: failed to load module Dec 21 
11:39:04 [15262] CRITICAL:core:yyerror: parse error in config file 
/usr/local/opensips//etc/opensips/opensips.cfg, line 158, column

13-14: failed to load module cachedb_redis.so



Dec 21 11:39:04 [15262] ERROR:core:set_mod_param_regex: no module matching 
cachedb_redis found Dec 21 11:39:04 [15262] CRITICAL:core:yyerror: parse error 
in config file /usr/local/opensips//etc/opensips/opensips.cfg, line 159, column

18-19: Parameter  not found in module  - can't set 
Dec 21 11:39:04 [15262] ERROR:core:main: bad config file (2 errors)



# ll /usr/local/opensips/lib64/opensips/modules/cachedb_redis.so

-rwxr-xr-x 1 root root 209608 Dec 21 11:16 
/usr/local/opensips/lib64/opensips/modules/cachedb_redis.so





opensips.cfg



 CacheDB Redis module

loadmodule "cachedb_redis.so"

modparam("cachedb_redis","cachedb_url","redis:group1://localhost:6379/")





# dpkg -l | grep redis

ii  libhiredis-dev:amd64 0.13.3-2

amd64

ii  libhiredis0.13:amd64 0.13.3-2

amd64

ii  redis-server 2:3.0.6-1 amd64

ii  redis-tools 2:3.0.6-1 amd64





# opensips -V

version: opensips 2.1.5 (x86_64/linux)

flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_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_lt, epoll_et, sigio_rt, select.

git revision: e381dd5

main.c compiled on 11:14:40 Dec 21 2016 with gcc 5.4.0





# uname -a

Linux rainier 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:59:10 UTC

2016 x86_64 x86_64 x86_64 GNU/Linux



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


Re: [OpenSIPS-Users] WARNING in 2.2

2016-12-22 Thread Ramachandran, Agalya (Contractor)
Hi Razvan,

No, I don’t have that fix in my version of 2.2. I took the code , when it is 
released very first.
I can add that fix and observe if I still observe this issue.
Thank you for pointing out the specific fix.

Regards,
Agalya

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Razvan 
Crainea
Sent: Thursday, December 22, 2016 10:01 AM
To: users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] WARNING in 2.2

Hi, Agalya!

Can you check you have this commit:
https://github.com/OpenSIPS/opensips/commit/fd8f6ec442b4365da9d274af6939954246ece865

Best regards,



Răzvan Crainea

OpenSIPS Solutions

www.opensips-solutions.com
On 12/22/2016 04:43 PM, Ramachandran, Agalya (Contractor) wrote:
Hi Razvan,

Am using latest 2.2 version only.

Regards,
Agalya

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Razvan 
Crainea
Sent: Thursday, December 22, 2016 3:39 AM
To: users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] WARNING in 2.2

Hi, Agalya!

Are you using the latest OpenSIPS 2.2? If not, upgrade to the latest version 
and the Warning should no longer appear.

Best regards,



Răzvan Crainea

OpenSIPS Solutions

www.opensips-solutions.com
On 12/21/2016 06:58 PM, Ramachandran, Agalya (Contractor) wrote:
Hi Bogdan,

I have installed OpenSIPS 2.2 version. I have no traffic running in the 
OpenSIPS server.
But I see the below warning logs. How to avoid it? I remember you have provided 
some fix for this WARNING message previously in month of August I guess.
I also see this message when I ran traffic, just as a proxy server at 1500 cps.

Dec 21 14:32:23 /usr/local/sbin/opensips[28543]: WARNING:core:handle_timer_job: 
utimer job  has a 2 us delay in execution
Dec 21 15:39:56 /usr/local/sbin/opensips[28546]: WARNING:core:handle_timer_job: 
utimer job  has a 2 us delay in execution
Dec 21 15:52:11 /usr/local/sbin/opensips[28546]: WARNING:core:handle_timer_job: 
utimer job  has a 8 us delay in execution
Dec 21 15:53:04 /usr/local/sbin/opensips[28544]: WARNING:core:handle_timer_job: 
utimer job  has a 2 us delay in execution
Dec 21 15:56:12 /usr/local/sbin/opensips[28546]: WARNING:core:handle_timer_job: 
utimer job  has a 2 us delay in execution
Dec 21 15:56:49 /usr/local/sbin/opensips[28546]: WARNING:core:handle_timer_job: 
utimer job  has a 2 us delay in execution
Dec 21 15:57:41 /usr/local/sbin/opensips[28546]: WARNING:core:handle_timer_job: 
utimer job  has a 2 us delay in execution
Dec 21 15:58:29 /usr/local/sbin/opensips[28543]: WARNING:core:handle_timer_job: 
utimer job  has a 2 us delay in execution
Dec 21 15:59:56 /usr/local/sbin/opensips[28545]: WARNING:core:handle_timer_job: 
utimer job  has a 9 us delay in execution
Dec 21 15:59:56 /usr/local/sbin/opensips[28521]: WARNING:core:utimer_ticker: 
utimer task  already scheduled for 87129980 ms (now 87130070 ms), it 
may overlap..

Regards,
Agalya





___

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] WARNING in 2.2

2016-12-22 Thread Răzvan Crainea

Hi, Agalya!

Can you check you have this commit:
https://github.com/OpenSIPS/opensips/commit/fd8f6ec442b4365da9d274af6939954246ece865

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 12/22/2016 04:43 PM, Ramachandran, Agalya (Contractor) wrote:


Hi Razvan,

Am using latest 2.2 version only.

Regards,
Agalya

*From:*Users [mailto:users-boun...@lists.opensips.org] *On Behalf Of 
*Razvan Crainea

*Sent:* Thursday, December 22, 2016 3:39 AM
*To:* users@lists.opensips.org
*Subject:* Re: [OpenSIPS-Users] WARNING in 2.2

Hi, Agalya!

Are you using the latest OpenSIPS 2.2? If not, upgrade to the latest 
version and the Warning should no longer appear.


Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com 

On 12/21/2016 06:58 PM, Ramachandran, Agalya (Contractor) wrote:

Hi Bogdan,

I have installed OpenSIPS 2.2 version. I have no traffic running
in the OpenSIPS server.

But I see the below warning logs. How to avoid it? I remember you
have provided some fix for this WARNING message previously in
month of August I guess.

I also see this message when I ran traffic, just as a proxy server
at 1500 cps.

Dec 21 14:32:23 /usr/local/sbin/opensips[28543]:
WARNING:core:handle_timer_job: utimer job  has a 2
us delay in execution

Dec 21 15:39:56 /usr/local/sbin/opensips[28546]:
WARNING:core:handle_timer_job: utimer job  has a 2
us delay in execution

Dec 21 15:52:11 /usr/local/sbin/opensips[28546]:
WARNING:core:handle_timer_job: utimer job  has a 8
us delay in execution

Dec 21 15:53:04 /usr/local/sbin/opensips[28544]:
WARNING:core:handle_timer_job: utimer job  has a 2
us delay in execution

Dec 21 15:56:12 /usr/local/sbin/opensips[28546]:
WARNING:core:handle_timer_job: utimer job  has a 2
us delay in execution

Dec 21 15:56:49 /usr/local/sbin/opensips[28546]:
WARNING:core:handle_timer_job: utimer job  has a 2
us delay in execution

Dec 21 15:57:41 /usr/local/sbin/opensips[28546]:
WARNING:core:handle_timer_job: utimer job  has a 2
us delay in execution

Dec 21 15:58:29 /usr/local/sbin/opensips[28543]:
WARNING:core:handle_timer_job: utimer job  has a 2
us delay in execution

Dec 21 15:59:56 /usr/local/sbin/opensips[28545]:
WARNING:core:handle_timer_job: utimer job  has a 9
us delay in execution

Dec 21 15:59:56 /usr/local/sbin/opensips[28521]:
WARNING:core:utimer_ticker: utimer task  already
scheduled for 87129980 ms (now 87130070 ms), it may overlap..

Regards,
Agalya




___

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] WARNING in 2.2

2016-12-22 Thread Ramachandran, Agalya (Contractor)
Hi Razvan,

Am using latest 2.2 version only.

Regards,
Agalya

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Razvan 
Crainea
Sent: Thursday, December 22, 2016 3:39 AM
To: users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] WARNING in 2.2

Hi, Agalya!

Are you using the latest OpenSIPS 2.2? If not, upgrade to the latest version 
and the Warning should no longer appear.

Best regards,


Răzvan Crainea

OpenSIPS Solutions

www.opensips-solutions.com
On 12/21/2016 06:58 PM, Ramachandran, Agalya (Contractor) wrote:
Hi Bogdan,

I have installed OpenSIPS 2.2 version. I have no traffic running in the 
OpenSIPS server.
But I see the below warning logs. How to avoid it? I remember you have provided 
some fix for this WARNING message previously in month of August I guess.
I also see this message when I ran traffic, just as a proxy server at 1500 cps.

Dec 21 14:32:23 /usr/local/sbin/opensips[28543]: WARNING:core:handle_timer_job: 
utimer job  has a 2 us delay in execution
Dec 21 15:39:56 /usr/local/sbin/opensips[28546]: WARNING:core:handle_timer_job: 
utimer job  has a 2 us delay in execution
Dec 21 15:52:11 /usr/local/sbin/opensips[28546]: WARNING:core:handle_timer_job: 
utimer job  has a 8 us delay in execution
Dec 21 15:53:04 /usr/local/sbin/opensips[28544]: WARNING:core:handle_timer_job: 
utimer job  has a 2 us delay in execution
Dec 21 15:56:12 /usr/local/sbin/opensips[28546]: WARNING:core:handle_timer_job: 
utimer job  has a 2 us delay in execution
Dec 21 15:56:49 /usr/local/sbin/opensips[28546]: WARNING:core:handle_timer_job: 
utimer job  has a 2 us delay in execution
Dec 21 15:57:41 /usr/local/sbin/opensips[28546]: WARNING:core:handle_timer_job: 
utimer job  has a 2 us delay in execution
Dec 21 15:58:29 /usr/local/sbin/opensips[28543]: WARNING:core:handle_timer_job: 
utimer job  has a 2 us delay in execution
Dec 21 15:59:56 /usr/local/sbin/opensips[28545]: WARNING:core:handle_timer_job: 
utimer job  has a 9 us delay in execution
Dec 21 15:59:56 /usr/local/sbin/opensips[28521]: WARNING:core:utimer_ticker: 
utimer task  already scheduled for 87129980 ms (now 87130070 ms), it 
may overlap..

Regards,
Agalya




___

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] Is wildcard supported in opensips config file ?

2016-12-22 Thread Sasmita Panda
Hi All ,

   I wanted to define a universal domain in the alias in the opensips
config file . Something like " *.domain.com " . So that all the request
which are alike this will get processed . Request will be like "
111.domain.com  " or " snap.domain.com " .

  My aim is to process all the domains names like this . How will I
achieve this  ? Please help me if this is possible . Thanks in advance .


*Thanks & Regards*
*Sasmita Panda*
*Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] opensips 2.1 call_center queue position

2016-12-22 Thread Jonathan Hunter
Hi Bogdan,


Merry Christmas to you and the mailing list!


I am testing the real queue position, and with one call in progress, and then 2 
subsequent calls, both of which hit the hold music loop, I unfortunately dont 
see the position value increment, it remains at cc_pos=0 for all the calls, 
this is with just one queue defined to keep things very  simple.


Please let me know what debug or information you require, here are some outputs;



opensipsctl fifo cc_list_calls
Call:: 255.0 Ref=2 State=queued Call Time=2 Flow=Cust1
Call:: 884.0 Ref=2 State=queued Call Time=51 Flow=Cust1
Call:: 344.0 Ref=1 State=toagent Call Time=70 Flow=Cust1 Agent=2000

opensipsctl fifo cc_list_agents
Agent:: 2000 Ref=1 Loged in=YES State=incall

opensipsctl fifo cc_list_flows
Flow:: Cust1 Avg Call Duration=199 Processed Calls=3 Logged Agents=1 Ongoing 
Calls=3 Ref=3

opensipsctl fifo cc_list_queue
Call:: 0 Waiting for=114 ETW=0
Flow:: Cust1 Priority=256 Skill=custcare
Call:: 1 Waiting for=65 ETW=199
Flow:: Cust1 Priority=256 Skill=custcare

Many thanks

Jon





From: Bogdan-Andrei Iancu 
Sent: 07 November 2016 20:41
To: Jonathan Hunter; OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] opensips 2.1 call_center queue position

Hi Jonathan,

I was not able to test it with a real queue, so let me know if it really does 
the job (in terms of reporting the real position in the queue).

Some questions:
1) currently I add that value only when sending to the queue / MOH - do you 
foresee any need to be added for other announcements like for welcome ?

2) will it be useful to add the ETW (estimate time to wait) ? is it useful ?

Regards,

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






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


Re: [OpenSIPS-Users] How to store some Sip-header value in variable ?

2016-12-22 Thread Răzvan Crainea

Hi, Kirill!

You can use the attr_avp [1] in the registrar module to attach the value 
to the contact. You could do something like:


modparam("registrar", "attr_avp", "$avp(attr)")
...
if (is_method("REGISTER")) {
$avp(attr) = $hdr(CUSTOM_HEADER);
save("location");
exit;
}

After that, you will be able to see the attribute in the MI commands output.

[1] http://www.opensips.org/html/docs/modules/2.2.x/registrar.html#id293909

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 12/22/2016 09:43 AM, Denis wrote:

Hello
http://www.opensips.org/Documentation/Script-CoreVar-2-2
3.91
--
С уважением, Денис.
Best regards, Denis
22.12.2016, 10:28, "Kirill Galinurov" :
Hi All. I need to store some additional info about user from custom 
sip header in Register request. How i can do it? Can i get this info 
later from ul_dump or ul_show_contact command ?

,

___
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] WARNING in 2.2

2016-12-22 Thread Răzvan Crainea

Hi, Agalya!

Are you using the latest OpenSIPS 2.2? If not, upgrade to the latest 
version and the Warning should no longer appear.


Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 12/21/2016 06:58 PM, Ramachandran, Agalya (Contractor) wrote:


Hi Bogdan,

I have installed OpenSIPS 2.2 version. I have no traffic running in 
the OpenSIPS server.


But I see the below warning logs. How to avoid it? I remember you have 
provided some fix for this WARNING message previously in month of 
August I guess.


I also see this message when I ran traffic, just as a proxy server at 
1500 cps.


Dec 21 14:32:23 /usr/local/sbin/opensips[28543]: 
WARNING:core:handle_timer_job: utimer job  has a 2 us 
delay in execution


Dec 21 15:39:56 /usr/local/sbin/opensips[28546]: 
WARNING:core:handle_timer_job: utimer job  has a 2 us 
delay in execution


Dec 21 15:52:11 /usr/local/sbin/opensips[28546]: 
WARNING:core:handle_timer_job: utimer job  has a 8 us 
delay in execution


Dec 21 15:53:04 /usr/local/sbin/opensips[28544]: 
WARNING:core:handle_timer_job: utimer job  has a 2 us 
delay in execution


Dec 21 15:56:12 /usr/local/sbin/opensips[28546]: 
WARNING:core:handle_timer_job: utimer job  has a 2 us 
delay in execution


Dec 21 15:56:49 /usr/local/sbin/opensips[28546]: 
WARNING:core:handle_timer_job: utimer job  has a 2 us 
delay in execution


Dec 21 15:57:41 /usr/local/sbin/opensips[28546]: 
WARNING:core:handle_timer_job: utimer job  has a 2 us 
delay in execution


Dec 21 15:58:29 /usr/local/sbin/opensips[28543]: 
WARNING:core:handle_timer_job: utimer job  has a 2 us 
delay in execution


Dec 21 15:59:56 /usr/local/sbin/opensips[28545]: 
WARNING:core:handle_timer_job: utimer job  has a 9 us 
delay in execution


Dec 21 15:59:56 /usr/local/sbin/opensips[28521]: 
WARNING:core:utimer_ticker: utimer task  already scheduled 
for 87129980 ms (now 87130070 ms), it may overlap..


Regards,
Agalya



___
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