Re: [OpenSIPS-Users] What information about calls are kept by OpenSIPS and how to handle it?

2015-09-14 Thread Rodrigo Pimenta Carvalho
Ok Faheem.


Thank you very much. I will take a look at those documentations.


Regards.



RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



De: users-boun...@lists.opensips.org  em nome 
de Faheem Muhammad 
Enviado: segunda-feira, 14 de setembro de 2015 15:40
Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] What information about calls are kept by OpenSIPS 
and how to handle it?

You can use acc module for #1 and 2
http://www.opensips.org/html/docs/modules/1.6.x/acc
It does all type of call logs. you can find the details in the documentation.

Regarding #3, you can filter out different soft phone using predefined $ua 
(useragent field), but this UAC defined field can be manipulated by any 
intelligent subscriber.

Regarding #4, I think this is not possible using MI interface, you can write 
any external script to connect to db and use MI commands.


Regards,
Muhammad Faheem


On Mon, Sep 14, 2015 at 11:03 PM, Rodrigo Pimenta Carvalho 
mailto:pime...@inatel.br>> wrote:

Dear OpenSIPS-Users,


I have some doubts about recording calls information on the OpenSIPs database:


1.  Let´s suppose OpenSIPS is version 2.2 and it is using SQLite. After 
receiving a SIP INVITE, or SIP OK, or SIP CANCEL, etc, does OpenSIPS record 
information about the call? For example: who has called, when the call was 
originated, who was called, missed calls, answered calls, dialed calls,  dialed 
numbers? The software we are  building must list the record of past calls. So 
the needing of keeping and retrieving such kind of information.


2 What are the tables in the OpenSIPS SQLite DB that keep such information? I 
have analyzed some tables in my OpenSIPS and I have noticed that some of it 
still remain empty even after some calls.


3. In my project there are 3 kinds of SIP clients (softphones for  door bells, 
for ordinary users, for special users). Only calls originated from a specific 
set of softphones must have information recorded in the database. How to 
configure OpenSIPS to record only calls from such softphoes?


I will start today studying about MI interface.

4. Does such interface provide some way to read data from the OpenSIPS SQLite 
Database, so that I can use it in a external script?


Any hint will be very helpful!

Best regards.



RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979

___
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] What information about calls are kept by OpenSIPS and how to handle it?

2015-09-14 Thread Faheem Muhammad
You can use acc module for #1 and 2
http://www.opensips.org/html/docs/modules/1.6.x/acc
It does all type of call logs. you can find the details in the
documentation.

Regarding #3, you can filter out different soft phone using predefined $ua
(useragent field), but this UAC defined field can be manipulated by any
intelligent subscriber.

Regarding #4, I think this is not possible using MI interface, you can
write any external script to connect to db and use MI commands.


Regards,
Muhammad Faheem


On Mon, Sep 14, 2015 at 11:03 PM, Rodrigo Pimenta Carvalho <
pime...@inatel.br> wrote:

> Dear OpenSIPS-Users,
>
>
> I have some doubts about recording calls information on the OpenSIPs
> database:
>
>
> 1.  Let´s suppose OpenSIPS is version 2.2 and it is using SQLite. After
> receiving a SIP INVITE, or SIP OK, or SIP CANCEL, etc, does OpenSIPS record
> information about the call? For example: who has called, when the call was
> originated, who was called, missed calls, answered calls, dialed
> calls,  dialed numbers? The software we are  building must list the record
> of past calls. So the needing of keeping and retrieving such kind of
> information.
>
>
> 2 What are the tables in the OpenSIPS SQLite DB that keep such
> information? I have analyzed some tables in my OpenSIPS and I have
> noticed that some of it still remain empty even after some calls.
>
>
> 3. In my project there are 3 kinds of SIP clients (softphones for  door
> bells, for ordinary users, for special users). Only calls originated from a
> specific set of softphones must have information recorded in the database.
> How to configure OpenSIPS to record only calls from such softphoes?
>
>
> I will start today studying about MI interface.
>
> 4. Does such interface provide some way to read data from the
> OpenSIPS SQLite Database, so that I can use it in a external script?
>
>
> Any hint will be very helpful!
>
> Best regards.
>
>
>
> RODRIGO PIMENTA CARVALHO
> Inatel Competence Center
> Software
> Ph: +55 35 3471 9200 RAMAL 979
>
> ___
> 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] What information about calls are kept by OpenSIPS and how to handle it?

2015-09-14 Thread Rodrigo Pimenta Carvalho
Dear OpenSIPS-Users,


I have some doubts about recording calls information on the OpenSIPs database:


1.  Let´s suppose OpenSIPS is version 2.2 and it is using SQLite. After 
receiving a SIP INVITE, or SIP OK, or SIP CANCEL, etc, does OpenSIPS record 
information about the call? For example: who has called, when the call was 
originated, who was called, missed calls, answered calls, dialed calls,  dialed 
numbers? The software we are  building must list the record of past calls. So 
the needing of keeping and retrieving such kind of information.


2 What are the tables in the OpenSIPS SQLite DB that keep such information? I 
have analyzed some tables in my OpenSIPS and I have noticed that some of it 
still remain empty even after some calls.


3. In my project there are 3 kinds of SIP clients (softphones for  door bells, 
for ordinary users, for special users). Only calls originated from a specific 
set of softphones must have information recorded in the database. How to 
configure OpenSIPS to record only calls from such softphoes?


I will start today studying about MI interface.

4. Does such interface provide some way to read data from the OpenSIPS SQLite 
Database, so that I can use it in a external script?


Any hint will be very helpful!

Best regards.



RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] ha1 password authentication

2015-09-14 Thread Răzvan Crainea

Hi, Nabeel!

You should set the 'calculate_ha1' to 0 (it is already computed in the 
ha1 column) and set the password_column to 'ha1'.


modparam("auth_db", "calculate_ha1", 0)
modparam("auth_db", "password_column", "ha1")

Best regards,

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

On 09/14/2015 12:00 PM, Nabeel wrote:


Hi razvan,

By default, the opensips script from menuconfig already has 
'calculate_ha1' set to 'yes' (and 'password_column' set to 
'password').  Do you mean set 'calculate_ha1' to '0'? Then should the 
'password_column' remain 'password', or should it point to the 'ha1' 
column?  If the column remains 'password', should this column contain 
the encoded ha1 password?


Please clarify.

On 14 Sep 2015 08:04, "Răzvan Crainea" > wrote:


Hi, Nabeel!

By default, OpenSIPS uses the password column to authenticate
users. If you want to use HA1 authentication, you should set the
calculate_ha1 parameter[1].

[1] http://www.opensips.org/html/docs/modules/2.1.x/auth_db#id293468

Best regards,

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

On 09/13/2015 10:25 AM, Nabeel wrote:


Just tested this and I'm not able to register without having the
plain text password present in the 'password' column in db.  How
can I make OpenSIPS register using only the ha1 hashed value? I
tried commenting out and changing the 'password_column' attribute
in config but it didn't work.

On 12 Sep 2015 12:40, "Nabeel" mailto:nabeelshik...@gmail.com>> wrote:

Hi,

My SIP client only uses the 'ha1' password field from
database to authenticate users and ignores the 'password'
field totally.  Will OpenSIPS allow such authentication to
complete and register the user by using only the ha1 hashed
password?



___
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


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


[OpenSIPS-Users] Couchbase Integration Issues with RateLimit Module

2015-09-14 Thread Kneeoh
Hi I've been using the couchbase module for cachedb for a while now with no 
issues. Recently I started tracking and enforcing channels w/ the dialog module 
and shared profiles as well as CPS via the ratelimit module. For the past week 
I've been getting sporadic opensips crashes (b/c all of the children fill up) 
and it looks related to the rl module not being able to increase the counter. 
I've attached the logs before it crashes.
ERROR:cachedb_couchbase:couchbase_arithmetic_cb: Failure to perform arithmetic 
termlimit_total_cps - The key does not exist on the server 
ERROR:ratelimit:rl_change_counter: cannot change counter for pipe total_cps 
with 1 
ERROR:ratelimit:w_rl_check_3: cannot increase counter 

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


Re: [OpenSIPS-Users] For-Each Example

2015-09-14 Thread Kneeoh
Thanks Bogdan, that did the trick.
 


 On Wednesday, September 9, 2015 6:14 AM, Bogdan-Andrei Iancu 
 wrote:
   

  Hi,
 
 If you have an AVP holding multiple value (instances), you can iterate through 
all of them as:
 
 $var(n) = 0;
 while ( $(avp(my_avp)[$var(n)]) != NULL ) {
     xlog("value of my avp on position $var(n) is $(avp(my_avp)[$var(n)]) \n");
     $var(n) = $var(n) + 1 ;
 }
 
 Regards,
  Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com On 09.09.2015 00:01, Kneeoh wrote:
  
  I'm trying to figure out how to iterate through an indexed $avp that holds 
json query results. The docs are kind of spotty. Can someone share a working 
snippet of code that iterates through an $avp ? This one isn't quite working 
for me. First off it says only $var and $avp can be iterated, but this example 
has a $json var.
  
  # iterate through all JSON documents returned by a MongoDB query
cache_raw_query("mongodb:location", "{... find ...}", "$avp(res)");
for ($json(contact) in $(avp(res)[*]))
xlog("Found: $json(contact/phone) $json(contact/email)\n");
 
   
  
 ___
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] Regarding installing cachedb_mangodb with opensips-1.11

2015-09-14 Thread Liviu Chircu
Also, please note that the versions of "mongo-c-driver" and "mongo*" 
binaries do not coincide:


Here are the latest versions of each software:
* mongo-c-driver: 1.1.10
* mongod: 3.1.7

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 14.09.2015 15:39, Sasmita Panda wrote:

Hi Liviu,

   I am installing the mangodb in another server to which I will 
connect opensips .

Can I install the latest version of Mangodb i.e version-3.0 ?

If the mango-c-driver is version-0.6 and the mangodb version is 3.0 
then will it create conflict ?


*/Thanks & Regards/*
/Sasmita Panda/
/Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

On Mon, Sep 14, 2015 at 2:47 PM, Liviu Chircu > wrote:


Hi Sasmita,

Just updated the 1.11 MongoDB [1] docs to match the helpful
instructions from the more recent doc releases.
You should now be able to download the "v0.6" version of the
mongo-c-driver.

[1]:

http://www.opensips.org/html/docs/modules/1.11.x/cachedb_mongodb.html#id249610

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 14.09.2015 11:15, Sasmita Panda wrote:

Hi All,

  I am trying to install opensips-1.11 with cachedb_mangodb
support .
In the opensips documentation its mentioned to use the 0.6
version of mango c driver .

 Unfortunately, I am not getting this version anywhere to
install . can anyone let me know whether this is a mandatory
version or I can use any other version of it ?

 Any kind of information regarding this is appreciated .
Thank you 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



___
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] Regarding installing cachedb_mangodb with opensips-1.11

2015-09-14 Thread Liviu Chircu
Personally, I have only tested the "v0.6" mongo-c-driver with MongoDB 
2.4.x and 2.6.x, so I'm quite confident it will work with 3.0.x also :)


Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 14.09.2015 15:39, Sasmita Panda wrote:

Hi Liviu,

   I am installing the mangodb in another server to which I will 
connect opensips .

Can I install the latest version of Mangodb i.e version-3.0 ?

If the mango-c-driver is version-0.6 and the mangodb version is 3.0 
then will it create conflict ?


*/Thanks & Regards/*
/Sasmita Panda/
/Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

On Mon, Sep 14, 2015 at 2:47 PM, Liviu Chircu > wrote:


Hi Sasmita,

Just updated the 1.11 MongoDB [1] docs to match the helpful
instructions from the more recent doc releases.
You should now be able to download the "v0.6" version of the
mongo-c-driver.

[1]:

http://www.opensips.org/html/docs/modules/1.11.x/cachedb_mongodb.html#id249610

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 14.09.2015 11:15, Sasmita Panda wrote:

Hi All,

  I am trying to install opensips-1.11 with cachedb_mangodb
support .
In the opensips documentation its mentioned to use the 0.6
version of mango c driver .

 Unfortunately, I am not getting this version anywhere to
install . can anyone let me know whether this is a mandatory
version or I can use any other version of it ?

 Any kind of information regarding this is appreciated .
Thank you 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



___
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] Memory leak fifo process

2015-09-14 Thread Federico Edorna
Hi Răzvan,
I tested the fix, it's working fine now

Thanks!

On Mon, Sep 14, 2015 at 4:52 AM, Răzvan Crainea  wrote:

> Hi, Federico!
>
> Nice catch! Indeed, there seems to be a pkg memory leak during reload.
> I committed a fix on the master branch that shoul fix this issue[1]. Can
> you pelase test and let me know everything is ok this time, so I can
> backport the fix to the other branches (2.1, 1.11).
>
> [1]
> https://github.com/OpenSIPS/opensips/commit/aa7429e0124478f999ba3737b10ae39900e16b2c
>
> Thanks,
>
> Răzvan Crainea
> OpenSIPS Solutionswww.opensips-solutions.com
>
> On 09/11/2015 05:07 PM, Federico Edorna wrote:
>
> Hello,
>
> in function load_pcres in regex_mod.c, I see that when you allocate memory
> to read regex groups, the loop goes up to the max_groups parameter (
> http://www.opensips.org/html/docs/modules/1.11.x/regex.html#id249240) :
>
> for (i=0; i if ((patterns[i] = pkg_malloc(sizeof(char) *
> group_max_size)) == 0) {
> LM_ERR("no more memory for patterns[%d]\n", i);
> fclose(f);
> goto err;
> }
> memset(patterns[i], '\0', group_max_size);
> }
>
> but when you free memory, it seems that it's only done for the patterns
> that actually are being used.
>
> In fact, if I set the max_groups parameter to the same amount of patterns
> in the regex file:
>
> modparam("regex", "max_groups", 4)
>
>
> when I run the "fifo regex_reload" loop, I never run out of pkmemory.
>
>
> Regards
>
>
> On Fri, Sep 4, 2015 at 12:18 PM, Federico Edorna < 
> fedo...@anura.com.ar> wrote:
>
>> Hi Team, I've found an issue when I reload regular expresion file for
>> opensips 1.11.5.
>>
>> After executing a few "opensipsctl fifo regex_reload", the fifo process
>> runs out of pkmem. This is a small loop where I do a regex_reload and then
>> I print the pkmem for MI FIFO processs:
>>
>> root@toro:~# sudo -u gc /home/gc/local/opensips/sbin/opensipsctl fifo ps
>> | grep "ID=4 "
>> Process::  ID=4 PID=11040 Type=MI FIFO
>> root@toro:~# while [ 1 -eq 1 ] ; do sudo -u gc
>> /home/gc/local/opensips/sbin/opensipsctl fifo regex_reload; sudo -u gc
>> /home/gc/local/opensips/sbin/opensipsctl fifo get_statistics pkmem: |grep
>> "pkmem:4-free_size::"  ; done
>> pkmem:4-free_size:: 3353184
>> pkmem:4-free_size:: 3353184
>> pkmem:4-free_size:: 3353184
>> pkmem:4-free_size:: 3353184
>> pkmem:4-free_size:: 3353184
>> pkmem:4-free_size:: 3353184
>> pkmem:4-free_size:: 3353184
>> pkmem:4-free_size:: 3353184
>> pkmem:4-free_size:: 3353184
>> pkmem:4-free_size:: 3353184
>> pkmem:4-free_size:: 3353184
>> pkmem:4-free_size:: 3353184
>> pkmem:4-free_size:: 3353184
>> pkmem:4-free_size:: 3353184
>> pkmem:4-free_size:: 1466776
>> pkmem:4-free_size:: 1466776
>> pkmem:4-free_size:: 1466776
>> pkmem:4-free_size:: 1466776
>> pkmem:4-free_size:: 1466776
>> pkmem:4-free_size:: 1466776
>> pkmem:4-free_size:: 1466776
>> pkmem:4-free_size:: 1466776
>> pkmem:4-free_size:: 1466776
>> pkmem:4-free_size:: 1466776
>> pkmem:4-free_size:: 140696
>> 500 Server Internal Error
>> pkmem:4-free_size:: 140696
>> 500 Server Internal Error
>> pkmem:4-free_size:: 140696
>> 500 Server Internal Error
>> pkmem:4-free_size:: 140696
>> 500 Server Internal Error
>> ^C
>> root@toro:~#
>>
>> For the following regex_reload commands the error in the syslog file is
>> this :
>>
>> 2015-09-04T11:56:05.645485-03:00 toro
>> /home/gc/local/opensips/sbin/opensips[11040]: ERROR:regex:load_pcres: no
>> more memory for patterns[11]
>> 2015-09-04T11:56:05.645567-03:00 toro
>> /home/gc/local/opensips/sbin/opensips[11040]: ERROR:regex:mi_pcres_reload:
>> failed to reload pcres
>>
>> The only way to recover from this is to restart opensips.
>>
>> I've pasted the syslog (compiled with DBG_QM_MALLOC option) when the
>> command is succesfull: http://pastebin.com/VnMZrYrh
>>
>>
>> I tyied to increase the pkmem for the process, but sooner or later the
>> error came up
>>
>> Thanks in advance!
>> Federico
>>
>>
>>
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://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] Regarding installing cachedb_mangodb with opensips-1.11

2015-09-14 Thread Sasmita Panda
Hi Liviu,

   I am installing the mangodb in another server to which I will connect
opensips .
Can I install the latest version of Mangodb i.e version-3.0 ?

If the mango-c-driver is version-0.6 and the mangodb version is 3.0 then
will it create conflict ?

*Thanks & Regards*
*Sasmita Panda*
*Network Testing and Software Engineer*
*3CLogic , ph:07827611765*

On Mon, Sep 14, 2015 at 2:47 PM, Liviu Chircu  wrote:

> Hi Sasmita,
>
> Just updated the 1.11 MongoDB [1] docs to match the helpful instructions
> from the more recent doc releases.
> You should now be able to download the "v0.6" version of the
> mongo-c-driver.
>
> [1]:
> http://www.opensips.org/html/docs/modules/1.11.x/cachedb_mongodb.html#id249610
>
> Best regards,
>
> Liviu Chircu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 14.09.2015 11:15, Sasmita Panda wrote:
>
> Hi All,
>
>   I am trying to install opensips-1.11 with cachedb_mangodb support .
> In the opensips documentation its mentioned to use the 0.6 version of
> mango c driver .
>
>  Unfortunately, I am not getting this version anywhere to install .
> can anyone let me know whether this is a mandatory version or I can use any
> other version of it ?
>
>  Any kind of information regarding this is appreciated . Thank you in
> advance .
>
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://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] Regarding installing cachedb_mangodb with opensips-1.11

2015-09-14 Thread Liviu Chircu

Hi Sasmita,

Just updated the 1.11 MongoDB [1] docs to match the helpful instructions 
from the more recent doc releases.

You should now be able to download the "v0.6" version of the mongo-c-driver.

[1]: 
http://www.opensips.org/html/docs/modules/1.11.x/cachedb_mongodb.html#id249610


Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 14.09.2015 11:15, Sasmita Panda wrote:

Hi All,

  I am trying to install opensips-1.11 with cachedb_mangodb support .
In the opensips documentation its mentioned to use the 0.6 version of 
mango c driver .


 Unfortunately, I am not getting this version anywhere to install 
. can anyone let me know whether this is a mandatory version or I can 
use any other version of it ?


 Any kind of information regarding this is appreciated . Thank you 
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


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


Re: [OpenSIPS-Users] ha1 password authentication

2015-09-14 Thread Nabeel
Hi razvan,

By default, the opensips script from menuconfig already has 'calculate_ha1'
set to 'yes' (and 'password_column' set to 'password').  Do you mean set
'calculate_ha1' to '0'?  Then should the 'password_column' remain
'password', or should it point to the 'ha1' column?  If the column remains
'password', should this column contain the encoded ha1 password?

Please clarify.
On 14 Sep 2015 08:04, "Răzvan Crainea"  wrote:

> Hi, Nabeel!
>
> By default, OpenSIPS uses the password column to authenticate users. If
> you want to use HA1 authentication, you should set the calculate_ha1
> parameter[1].
>
> [1] http://www.opensips.org/html/docs/modules/2.1.x/auth_db#id293468
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Solutionswww.opensips-solutions.com
>
> On 09/13/2015 10:25 AM, Nabeel wrote:
>
> Just tested this and I'm not able to register without having the plain
> text password present in the 'password' column in db.  How can I make
> OpenSIPS register using only the ha1 hashed value? I tried commenting out
> and changing the 'password_column' attribute in config but it didn't work.
> On 12 Sep 2015 12:40, "Nabeel"  wrote:
>
>> Hi,
>>
>> My SIP client only uses the 'ha1' password field from database to
>> authenticate users and ignores the 'password' field totally.  Will OpenSIPS
>> allow such authentication to complete and register the user by using only
>> the ha1 hashed password?
>>
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://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] Regarding installing cachedb_mangodb with opensips-1.11

2015-09-14 Thread Sasmita Panda
In addition to the above things , I need some other information .

I am using  ubuntu -13.0 linux version . In this version the dependency
libraries are not present .
So can anyone let me know if I need to change the linux version for using
the above scenario or I can work on the same without any problem ?

Please reply , if there is any kind of dependency with the linux
version .



*Thanks & Regards*
*Sasmita Panda*
*Network Testing and Software Engineer*
*3CLogic , ph:07827611765*

On Mon, Sep 14, 2015 at 1:45 PM, Sasmita Panda  wrote:

> Hi All,
>
>   I am trying to install opensips-1.11 with cachedb_mangodb support .
> In the opensips documentation its mentioned to use the 0.6 version of
> mango c driver .
>
>  Unfortunately, I am not getting this version anywhere to install .
> can anyone let me know whether this is a mandatory version or I can use any
> other version of it ?
>
>  Any kind of information regarding this is appreciated . Thank you 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


[OpenSIPS-Users] Regarding installing cachedb_mangodb with opensips-1.11

2015-09-14 Thread Sasmita Panda
Hi All,

  I am trying to install opensips-1.11 with cachedb_mangodb support .
In the opensips documentation its mentioned to use the 0.6 version of mango
c driver .

 Unfortunately, I am not getting this version anywhere to install . can
anyone let me know whether this is a mandatory version or I can use any
other version of it ?

 Any kind of information regarding this is appreciated . Thank you 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] Memory leak fifo process

2015-09-14 Thread Răzvan Crainea

Hi, Federico!

Nice catch! Indeed, there seems to be a pkg memory leak during reload.
I committed a fix on the master branch that shoul fix this issue[1]. Can 
you pelase test and let me know everything is ok this time, so I can 
backport the fix to the other branches (2.1, 1.11).


[1] 
https://github.com/OpenSIPS/opensips/commit/aa7429e0124478f999ba3737b10ae39900e16b2c


Thanks,

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

On 09/11/2015 05:07 PM, Federico Edorna wrote:

Hello,
in function load_pcres in regex_mod.c, I see that when you allocate 
memory to read regex groups, the loop goes up to the max_groups 
parameter 
(http://www.opensips.org/html/docs/modules/1.11.x/regex.html#id249240) :


for (i=0; iif ((patterns[i] = pkg_malloc(sizeof(char) * 
group_max_size)) == 0) {

LM_ERR("no more memory for patterns[%d]\n", i);
fclose(f);
goto err;
}
memset(patterns[i], '\0', group_max_size);
}

but when you free memory, it seems that it's only done for the 
patterns that actually are being used.


In fact, if I set the max_groups parameter to the same amount of 
patterns in the regex file:


modparam("regex", "max_groups", 4)


when I run the "fifo regex_reload" loop, I never run out of pkmemory.


Regards


On Fri, Sep 4, 2015 at 12:18 PM, Federico Edorna > wrote:


Hi Team, I've found an issue when I reload regular expresion file
for opensips 1.11.5.

After executing a few "opensipsctl fifo regex_reload", the fifo
process runs out of pkmem. This is a small loop where I do a
regex_reload and then I print the pkmem for MI FIFO processs:

root@toro:~# sudo -u gc /home/gc/local/opensips/sbin/opensipsctl
fifo ps | grep "ID=4 "
Process::  ID=4 PID=11040 Type=MI FIFO
root@toro:~# while [ 1 -eq 1 ] ; do sudo -u gc
/home/gc/local/opensips/sbin/opensipsctl fifo regex_reload; sudo
-u gc /home/gc/local/opensips/sbin/opensipsctl fifo get_statistics
pkmem: |grep "pkmem:4-free_size::"  ; done
pkmem:4-free_size:: 3353184
pkmem:4-free_size:: 3353184
pkmem:4-free_size:: 3353184
pkmem:4-free_size:: 3353184
pkmem:4-free_size:: 3353184
pkmem:4-free_size:: 3353184
pkmem:4-free_size:: 3353184
pkmem:4-free_size:: 3353184
pkmem:4-free_size:: 3353184
pkmem:4-free_size:: 3353184
pkmem:4-free_size:: 3353184
pkmem:4-free_size:: 3353184
pkmem:4-free_size:: 3353184
pkmem:4-free_size:: 3353184
pkmem:4-free_size:: 1466776
pkmem:4-free_size:: 1466776
pkmem:4-free_size:: 1466776
pkmem:4-free_size:: 1466776
pkmem:4-free_size:: 1466776
pkmem:4-free_size:: 1466776
pkmem:4-free_size:: 1466776
pkmem:4-free_size:: 1466776
pkmem:4-free_size:: 1466776
pkmem:4-free_size:: 1466776
pkmem:4-free_size:: 140696
500 Server Internal Error
pkmem:4-free_size:: 140696
500 Server Internal Error
pkmem:4-free_size:: 140696
500 Server Internal Error
pkmem:4-free_size:: 140696
500 Server Internal Error
^C
root@toro:~#

For the following regex_reload commands the error in the syslog
file is this :

2015-09-04T11:56:05.645485-03:00 toro
/home/gc/local/opensips/sbin/opensips[11040]:
ERROR:regex:load_pcres: no more memory for patterns[11]
2015-09-04T11:56:05.645567-03:00 toro
/home/gc/local/opensips/sbin/opensips[11040]:
ERROR:regex:mi_pcres_reload: failed to reload pcres

The only way to recover from this is to restart opensips.

I've pasted the syslog (compiled with DBG_QM_MALLOC option) when
the command is succesfull: http://pastebin.com/VnMZrYrh


I tyied to increase the pkmem for the process, but sooner or later
the error came up

Thanks in advance!
Federico





___
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] No transaction found reinvite response

2015-09-14 Thread Răzvan Crainea

Hi, Tito!

Can you post the debugging logs for this call?

Best regards,

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

On 09/12/2015 01:16 AM, Tito Cumpen wrote:

Group,


I am currently using opensips 2.2 dev git revision: 0faac6a. I am 
having an issue in which opensips is not retransmitting a reinvite 
response from the upstream to the downstream. This reinvite is done in 
order to renegotiate media addresses for in ICE. The 200 OK response 
with totags and LR are not being sent because there is an error 
message in opensips that claims it cannot find the transaction. I am 
including a link with the trace containing the call.

https://drive.google.com/file/d/0B1yz74eTHZFPSHhXZzE4LTJHLXM/view?usp=sharing


Thanks,
Tito



___
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] ha1 password authentication

2015-09-14 Thread Răzvan Crainea

Hi, Nabeel!

By default, OpenSIPS uses the password column to authenticate users. If 
you want to use HA1 authentication, you should set the calculate_ha1 
parameter[1].


[1] http://www.opensips.org/html/docs/modules/2.1.x/auth_db#id293468

Best regards,

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

On 09/13/2015 10:25 AM, Nabeel wrote:


Just tested this and I'm not able to register without having the plain 
text password present in the 'password' column in db.  How can I make 
OpenSIPS register using only the ha1 hashed value? I tried commenting 
out and changing the 'password_column' attribute in config but it 
didn't work.


On 12 Sep 2015 12:40, "Nabeel" > wrote:


Hi,

My SIP client only uses the 'ha1' password field from database to
authenticate users and ignores the 'password' field totally.  Will
OpenSIPS allow such authentication to complete and register the
user by using only the ha1 hashed password?



___
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