Re: [OpenSIPS-Users] Opensips 2.2 Crash

2016-06-17 Thread Bogdan-Andrei Iancu

Topic moved on devel list:
http://lists.opensips.org/pipermail/devel/2016-June/020379.html

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

On 16.06.2016 16:55, Arsen wrote:

Hi guys,

We have upgraded to 2.2 but seems it's crashing occasionally.

Please take a look at the bt full
http://pastebin.com/HF96EYwn

thanks in advance!

--
Regards,
Arsen.


___
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] Method Name from 200OK

2016-06-17 Thread Bogdan-Andrei Iancu

Hi Rahul,

Even if it is a reply, use $rm - it will extract the method from the 
cseq hdr if reply.


Regards,

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

On 16.06.2016 19:24, Gupta, Rahul wrote:


Nevermind, I can just use is_method(). If there is another easy way to 
get the method name directly in a variable then please share.


Thanks

Rahul Gupta

*From:* users-boun...@lists.opensips.org 
[mailto:users-boun...@lists.opensips.org] *On Behalf Of *Gupta, Rahul

*Sent:* Thursday, June 16, 2016 11:55 AM
*To:* users@lists.opensips.org
*Subject:* [OpenSIPS-Users] Method Name from 200OK

Hi, I am using opensips as stateless proxy. What can I use to find a 
Reply (200 OK) is from which Request Method in onreply_route ? I just 
need Method Name of the reply ?


Thanks

Rahul Gupta

--

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




___
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 is the best SQLite version to be used with OpenSIPS 2.2? We investigate a memory leak.

2016-06-17 Thread Rodrigo Pimenta Carvalho
Hi.

People from my team is investigating a memory leak related to OpenSIPS 2.2.


As I had commented in another discussion in the past, it seems that the problem 
comes from SQLite we are using as the Registrar for our OpenSIPS 2.2.

For example, a script opensips.cfg that doesn't use SQLite didn't cause memory 
leak. But, a script that uses it and use another module that needs a database 
(EX: auth.so) causes memory leak.


We are still in the beginning of the investigation.

So, what is the best version of SQLite to be used with OpenSIPS 2.2? That is, 
what version of SQLite was very well tested with OpenSIPS 2.2 and worked  
without memory leaks or others issues?


Any suggestion 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] What is the best SQLite version to be used with OpenSIPS 2.2? We investigate a memory leak.

2016-06-17 Thread Liviu Chircu

Hi Rodrigo!

A GitHub issue [1] regarding this leak was just reported today by Eric, 
so you can track the resolution process over there! You can even 
subscribe to that ticket if you have an account, in order to receive emails.


[1]: https://github.com/OpenSIPS/opensips/issues/911

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

On 17.06.2016 17:02, Rodrigo Pimenta Carvalho wrote:


Hi.


People from my team is investigating a memory leak related to OpenSIPS 
2.2.



As I had commented in another discussion in the past, it seems that 
the problem comes from SQLite we are using as the Registrar for our 
OpenSIPS 2.2.


For example, a script opensips.cfg that doesn't use SQLite didn't 
cause memory leak. But, a script that uses it and use another module 
that needs a database (EX: auth.so) causes memory leak.



We are still in the beginning of the investigation.

So, what is the best version of SQLite to be used with OpenSIPS 2.2? 
That is, what version of SQLite was very well tested with OpenSIPS 2.2 
and worked  without memory leaks or others issues?



Any suggestion 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 is the best SQLite version to be used with OpenSIPS 2.2? We investigate a memory leak.

2016-06-17 Thread Rodrigo Pimenta Carvalho
Hi Liviu.


Very good.


We will see the resolution process.

Thank you very much!

Regards.



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



De: users-boun...@lists.opensips.org  em nome 
de Liviu Chircu 
Enviado: sexta-feira, 17 de junho de 2016 11:14
Para: users@lists.opensips.org
Assunto: Re: [OpenSIPS-Users] What is the best SQLite version to be used with 
OpenSIPS 2.2? We investigate a memory leak.

Hi Rodrigo!

A GitHub issue [1] regarding this leak was just reported today by Eric, so you 
can track the resolution process over there! You can even subscribe to that 
ticket if you have an account, in order to receive emails.

[1]: https://github.com/OpenSIPS/opensips/issues/911
[https://avatars3.githubusercontent.com/u/21685?v=3&s=400]

2.2 runs out of pkg_mem because of db/db_res.c memory leak · Issue #911 · 
OpenSIPS/opensips
github.com
OpenSIPS 2.2 will run out of pkg_mem, i believe because of a leak in 
db/db_res.c Full memlog dump is available here: 
https://gist.github.com/etamme/7d42024ad684fe834b9fd514d2bd2412 I am using...



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

On 17.06.2016 17:02, Rodrigo Pimenta Carvalho wrote:

Hi.

People from my team is investigating a memory leak related to OpenSIPS 2.2.


As I had commented in another discussion in the past, it seems that the problem 
comes from SQLite we are using as the Registrar for our OpenSIPS 2.2.

For example, a script opensips.cfg that doesn't use SQLite didn't cause memory 
leak. But, a script that uses it and use another module that needs a database 
(EX: auth.so) causes memory leak.


We are still in the beginning of the investigation.

So, what is the best version of SQLite to be used with OpenSIPS 2.2? That is, 
what version of SQLite was very well tested with OpenSIPS 2.2 and worked  
without memory leaks or others issues?


Any suggestion 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] OpenSIPS and FreeSWITCH Integration Training

2016-06-17 Thread Bogdan-Andrei Iancu

Hello,

As part of ClueCon, we will run an one-day hands-on Training around 
OpenSIPS and FreeSWITCH integration. The training follows the steps of 
building a complete system featuring:

* OpenSIPS as a cluster front-end  - http://opensips.org
* FreeSWITCH PBX core system  - http://freeswitch.org/
* HOMER for SIP capturing  - http://sipcapture.org/
* CGRates as billing engine  - http://cgrates.org/
* SIP Fraud detection

The training will be held on 12th of August 2016, as part of the ClueCon 
event.


Together with the training, we will run a new session of Design Clinics 
(http://www.opensips.org/Community/Clinics)


Details, registration (both training and clinics) and more are available 
here:

http://www.opensips.org/events/Training-2016ClueCon.html


Best 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] What is the best SQLite version to be used with OpenSIPS 2.2? We investigate a memory leak.

2016-06-17 Thread Ionut Ionita

Hi Rodrigo,

Pushed a fix both into 2.2[0] and master[1] branches. If you still 
think sqlite leaks even with this fix,

please feel free to open an issue on github.

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



Regrads,
Ionut Ionita
OpenSIPS Developer

On 06/17/2016 05:19 PM, Rodrigo Pimenta Carvalho wrote:


Hi Liviu.


Very good.


We will see the resolution process.

Thank you very much!

Regards.


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



*De:* users-boun...@lists.opensips.org 
 em nome de Liviu Chircu 


*Enviado:* sexta-feira, 17 de junho de 2016 11:14
*Para:* users@lists.opensips.org
*Assunto:* Re: [OpenSIPS-Users] What is the best SQLite version to be 
used with OpenSIPS 2.2? We investigate a memory leak.

Hi Rodrigo!

A GitHub issue [1] regarding this leak was just reported today by 
Eric, so you can track the resolution process over there! You can even 
subscribe to that ticket if you have an account, in order to receive 
emails.


[1]: https://github.com/OpenSIPS/opensips/issues/911


2.2 runs out of pkg_mem because of db/db_res.c memory leak · Issue 
#911 · OpenSIPS/opensips 

github.com
OpenSIPS 2.2 will run out of pkg_mem, i believe because of a leak in 
db/db_res.c Full memlog dump is available here: 
https://gist.github.com/etamme/7d42024ad684fe834b9fd514d2bd2412 I am 
using...



Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 17.06.2016 17:02, Rodrigo Pimenta Carvalho wrote:


Hi.


People from my team is investigating a memory leak related to 
OpenSIPS 2.2.



As I had commented in another discussion in the past, it seems that 
the problem comes from SQLite we are using as the Registrar for our 
OpenSIPS 2.2.


For example, a script opensips.cfg that doesn't use SQLite didn't 
cause memory leak. But, a script that uses it and use another module 
that needs a database (EX: auth.so) causes memory leak.



We are still in the beginning of the investigation.

So, what is the best version of SQLite to be used with OpenSIPS 2.2? 
That is, what version of SQLite was very well tested with OpenSIPS 
2.2 and worked  without memory leaks or others issues?



Any suggestion 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


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


[OpenSIPS-Users] [Release] OpenSIPS 1.11.8

2016-06-17 Thread Liviu Chircu

Hello all,

Following several major fixes (related to TLS and natpinging) on the 
current OpenSIPS 1.11 version, we decided it's mandatory that we bump up 
the minor version, hence reaching 1.11.8.


We wish to thank everyone who got involved both in testing and bug 
reporting!


Downloads and changelogs are available at:
http://opensips.org/pub/opensips/1.11.8/

Enjoy!

--
Liviu Chircu
OpenSIPS 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] What is the best SQLite version to be used with OpenSIPS 2.2? We investigate a memory leak.

2016-06-17 Thread Rodrigo Pimenta Carvalho
Thank you Ionut.


We will try it so.


Today morning, we noticed that OpenSIPS 2.2 while running and using SQLite, 
without online clients, without registers and without calls, causes a memory 
leak. That is, OpenSIPS even without any SIP request causes a memory leak due 
to the use of SQLite.


After updating the SQLite to a new version, such memory leak was vanished.


However, even with the newest SQLite, we still get memory leaks again if the 
proxy receives SIP REGISTER messages. That is, we get the issue every time some 
client registers. In this case we saw the memory leak in : " 
modparam("db_sqlite", "load_extension", "/usr/lib/sqlite3/pcre.so")"


Let us try the new solution and see what happens.


Best regards!


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



De: users-boun...@lists.opensips.org  em nome 
de Ionut Ionita 
Enviado: sexta-feira, 17 de junho de 2016 11:45
Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] What is the best SQLite version to be used with 
OpenSIPS 2.2? We investigate a memory leak.

Hi Rodrigo,

Pushed a fix both into 2.2[0] and master[1] branches. If you still think 
sqlite leaks even with this fix,
please feel free to open an issue on github.

[0] 
https://github.com/OpenSIPS/opensips/commit/c1aa55e73f7c56ea4894997aeb7f25a03cb289cf
[https://avatars3.githubusercontent.com/u/7924437?v=3&s=200]

[sqlite][bugfix] free column names when freeing the result · 
OpenSIPS/opensips@c1aa55e
github.com
(cherry picked from commit cf380773cec9f91ad08e343c03261154dabc36a5)


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

Regrads,
Ionut Ionita
OpenSIPS Developer

On 06/17/2016 05:19 PM, Rodrigo Pimenta Carvalho wrote:

Hi Liviu.


Very good.


We will see the resolution process.

Thank you very much!

Regards.



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



De: users-boun...@lists.opensips.org 
 em 
nome de Liviu Chircu 
Enviado: sexta-feira, 17 de junho de 2016 11:14
Para: users@lists.opensips.org
Assunto: Re: [OpenSIPS-Users] What is the best SQLite version to be used with 
OpenSIPS 2.2? We investigate a memory leak.

Hi Rodrigo!

A GitHub issue [1] regarding this leak was just reported today by Eric, so you 
can track the resolution process over there! You can even subscribe to that 
ticket if you have an account, in order to receive emails.

[1]: https://github.com/OpenSIPS/opensips/issues/911
[https://avatars3.githubusercontent.com/u/21685?v=3&s=400]

2.2 runs out of pkg_mem because of db/db_res.c memory leak · Issue #911 · 
OpenSIPS/opensips
github.com
OpenSIPS 2.2 will run out of pkg_mem, i believe because of a leak in 
db/db_res.c Full memlog dump is available here: 
https://gist.github.com/etamme/7d42024ad684fe834b9fd514d2bd2412 I am using...



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

On 17.06.2016 17:02, Rodrigo Pimenta Carvalho wrote:

Hi.

People from my team is investigating a memory leak related to OpenSIPS 2.2.


As I had commented in another discussion in the past, it seems that the problem 
comes from SQLite we are using as the Registrar for our OpenSIPS 2.2.

For example, a script opensips.cfg that doesn't use SQLite didn't cause memory 
leak. But, a script that uses it and use another module that needs a database 
(EX: auth.so) causes memory leak.


We are still in the beginning of the investigation.

So, what is the best version of SQLite to be used with OpenSIPS 2.2? That is, 
what version of SQLite was very well tested with OpenSIPS 2.2 and worked  
without memory leaks or others issues?


Any suggestion 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


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


Re: [OpenSIPS-Users] What is the best SQLite version to be used with OpenSIPS 2.2? We investigate a memory leak.

2016-06-17 Thread Eric Tamme

Hey Rodrigo,

Are you running https://github.com/etamme/federated-sip by chance? Your 
use of the PCRE module made me think you might be.  I run federated-sip 
and I do use sqlite3 with opensips - my current sqlite version is:  
sqlite-3.7.17-4.el7.x86_64


I do not know that I have memory leaks outside of what I reported in the 
github issue.


-Eric

On 06/17/2016 11:08 AM, Rodrigo Pimenta Carvalho wrote:


Thank you Ionut.


We will try it so.


Today morning, we noticed that OpenSIPS 2.2 while running and using 
SQLite, without online clients, without registers and without calls, 
causes a memory leak. That is, OpenSIPS even without any SIP request 
causes a memory leak due to the use of SQLite.



After updating the SQLite to a new version, such memory leak was vanished.


However, even with the newest SQLite, we still get memory leaks again 
if the proxy receives SIP REGISTER messages. That is, we get the issue 
every time some client registers. In this case we saw the memory leak 
in : " modparam("db_sqlite", "load_extension", 
"/usr/lib/sqlite3/pcre.so")"



Let us try the new solution and see what happens.


Best regards!


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



*De:* users-boun...@lists.opensips.org 
 em nome de Ionut Ionita 


*Enviado:* sexta-feira, 17 de junho de 2016 11:45
*Para:* OpenSIPS users mailling list
*Assunto:* Re: [OpenSIPS-Users] What is the best SQLite version to be 
used with OpenSIPS 2.2? We investigate a memory leak.

Hi Rodrigo,

Pushed a fix both into 2.2[0] and master[1] branches. If you still 
think sqlite leaks even with this fix,

please feel free to open an issue on github.

[0] 
https://github.com/OpenSIPS/opensips/commit/c1aa55e73f7c56ea4894997aeb7f25a03cb289cf 




[sqlite][bugfix] free column names when freeing the result · 
OpenSIPS/opensips@c1aa55e 


github.com
(cherry picked from commit cf380773cec9f91ad08e343c03261154dabc36a5)


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


Regrads,
Ionut Ionita
OpenSIPS Developer
On 06/17/2016 05:19 PM, Rodrigo Pimenta Carvalho wrote:


Hi Liviu.


Very good.


We will see the resolution process.

Thank you very much!

Regards.


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



*De:* users-boun...@lists.opensips.org 
 em nome de Liviu Chircu 


*Enviado:* sexta-feira, 17 de junho de 2016 11:14
*Para:* users@lists.opensips.org
*Assunto:* Re: [OpenSIPS-Users] What is the best SQLite version to be 
used with OpenSIPS 2.2? We investigate a memory leak.

Hi Rodrigo!

A GitHub issue [1] regarding this leak was just reported today by 
Eric, so you can track the resolution process over there! You can 
even subscribe to that ticket if you have an account, in order to 
receive emails.


[1]: https://github.com/OpenSIPS/opensips/issues/911


2.2 runs out of pkg_mem because of db/db_res.c memory leak · Issue 
#911 · OpenSIPS/opensips 


github.com
OpenSIPS 2.2 will run out of pkg_mem, i believe because of a leak in 
db/db_res.c Full memlog dump is available here: 
https://gist.github.com/etamme/7d42024ad684fe834b9fd514d2bd2412 I am 
using...



Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 17.06.2016 17:02, Rodrigo Pimenta Carvalho wrote:


Hi.


People from my team is investigating a memory leak related to 
OpenSIPS 2.2.



As I had commented in another discussion in the past, it seems that 
the problem comes from SQLite we are using as the Registrar for our 
OpenSIPS 2.2.


For example, a script opensips.cfg that doesn't use SQLite didn't 
cause memory leak. But, a script that uses it and use another module 
that needs a database (EX: auth.so) causes memory leak.



We are still in the beginning of the investigation.

So, what is the best version of SQLite to be used with OpenSIPS 2.2? 
That is, what version of SQLite was very well tested with OpenSIPS 
2.2 and worked  without memory leaks or others issues?



Any suggestion 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




___
Users mailing list
Users@lists.opensips.org
h

Re: [OpenSIPS-Users] What is the best SQLite version to be used with OpenSIPS 2.2? We investigate a memory leak.

2016-06-17 Thread Rodrigo Pimenta Carvalho
Hi Eric.


Probably not. Because I still don't know what is a federated-sip. And I didn't 
have to take control of RTPs in opensips script.

However, a coworker in my office will check these details and help us to 
conclude more things about it.

Is there a quick way to check if someone is using such federated-sip?


Our version 3.8.6 of SQLite presented the memory leak (when there was no SIP 
requests), but the version 3.13 doesn't present.


P.S.: I still have to read about federated SIP and see what are its advantages.


Thanks a lot.



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



De: users-boun...@lists.opensips.org  em nome 
de Eric Tamme 
Enviado: sexta-feira, 17 de junho de 2016 14:12
Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] What is the best SQLite version to be used with 
OpenSIPS 2.2? We investigate a memory leak.

Hey Rodrigo,

Are you running https://github.com/etamme/federated-sip by chance?  Your use of 
the PCRE module made me think you might be.  I run federated-sip and I do use 
sqlite3 with opensips - my current sqlite version is:  
sqlite-3.7.17-4.el7.x86_64
[https://avatars3.githubusercontent.com/u/21685?v=3&s=400]

GitHub - etamme/federated-sip: Federated SIP 
deployment
github.com
README.md Federated SIP server. The Federated SIP project is a set of scripts 
designed to run OpenSIPS + rtpengine in a way that will provide federated, open 
...



I do not know that I have memory leaks outside of what I reported in the github 
issue.

-Eric

On 06/17/2016 11:08 AM, Rodrigo Pimenta Carvalho wrote:

Thank you Ionut.


We will try it so.


Today morning, we noticed that OpenSIPS 2.2 while running and using SQLite, 
without online clients, without registers and without calls, causes a memory 
leak. That is, OpenSIPS even without any SIP request causes a memory leak due 
to the use of SQLite.


After updating the SQLite to a new version, such memory leak was vanished.


However, even with the newest SQLite, we still get memory leaks again if the 
proxy receives SIP REGISTER messages. That is, we get the issue every time some 
client registers. In this case we saw the memory leak in : " 
modparam("db_sqlite", "load_extension", "/usr/lib/sqlite3/pcre.so")"


Let us try the new solution and see what happens.


Best regards!


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



De: users-boun...@lists.opensips.org 
 em 
nome de Ionut Ionita 
Enviado: sexta-feira, 17 de junho de 2016 11:45
Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] What is the best SQLite version to be used with 
OpenSIPS 2.2? We investigate a memory leak.

Hi Rodrigo,

Pushed a fix both into 2.2[0] and master[1] branches. If you still think 
sqlite leaks even with this fix,
please feel free to open an issue on github.

[0] 
https://github.com/OpenSIPS/opensips/commit/c1aa55e73f7c56ea4894997aeb7f25a03cb289cf
[https://avatars3.githubusercontent.com/u/7924437?v=3&s=200]

[sqlite][bugfix] free column names when freeing the result · 
OpenSIPS/opensips@c1aa55e
github.com
(cherry picked from commit cf380773cec9f91ad08e343c03261154dabc36a5)


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

Regrads,
Ionut Ionita
OpenSIPS Developer

On 06/17/2016 05:19 PM, Rodrigo Pimenta Carvalho wrote:

Hi Liviu.


Very good.


We will see the resolution process.

Thank you very much!

Regards.



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



De: users-boun...@lists.opensips.org 
 
 em 
nome de Liviu Chircu 
Enviado: sexta-feira, 17 de junho de 2016 11:14
Para: users@lists.opensips.org
Assunto: Re: [OpenSIPS-Users] What is the best SQLite version to be used with 
OpenSIPS 2.2? We investigate a memory leak.

Hi Rodrigo!

A GitHub issue [1] regarding this leak was just reported today by Eric, so you 
can track the resolution process over there! You can even subscribe to that 
ticket if you have an account, in order to receive emails.

[1]: https://github.com/OpenSIPS/opensips/issues/911
[https://avatars3.githubusercontent.com/u/21685?v=3&s=400]

2.2 runs out of pkg_mem because of db/db_res.c memory leak · Issue #911 · 
OpenSIPS/opensips

Re: [OpenSIPS-Users] What is the best SQLite version to be used with OpenSIPS 2.2? We investigate a memory leak.

2016-06-17 Thread Rodrigo Pimenta Carvalho
Hi.


We discovered another memory leak in OpenSIPS 2.2, even using newest SQLite.

Now the issue doesn't relate to the data base. There is a issue related with a 
parser.


In few minutes I will post here more details, with valgrind log.


Regards.



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



De: users-boun...@lists.opensips.org  em nome 
de Rodrigo Pimenta Carvalho 
Enviado: sexta-feira, 17 de junho de 2016 14:23
Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] What is the best SQLite version to be used with 
OpenSIPS 2.2? We investigate a memory leak.


Hi Eric.


Probably not. Because I still don't know what is a federated-sip. And I didn't 
have to take control of RTPs in opensips script.

However, a coworker in my office will check these details and help us to 
conclude more things about it.

Is there a quick way to check if someone is using such federated-sip?


Our version 3.8.6 of SQLite presented the memory leak (when there was no SIP 
requests), but the version 3.13 doesn't present.


P.S.: I still have to read about federated SIP and see what are its advantages.


Thanks a lot.



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



De: users-boun...@lists.opensips.org  em nome 
de Eric Tamme 
Enviado: sexta-feira, 17 de junho de 2016 14:12
Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] What is the best SQLite version to be used with 
OpenSIPS 2.2? We investigate a memory leak.

Hey Rodrigo,

Are you running https://github.com/etamme/federated-sip by chance?  Your use of 
the PCRE module made me think you might be.  I run federated-sip and I do use 
sqlite3 with opensips - my current sqlite version is:  
sqlite-3.7.17-4.el7.x86_64
[https://avatars3.githubusercontent.com/u/21685?v=3&s=400]

GitHub - etamme/federated-sip: Federated SIP 
deployment
github.com
README.md Federated SIP server. The Federated SIP project is a set of scripts 
designed to run OpenSIPS + rtpengine in a way that will provide federated, open 
...



I do not know that I have memory leaks outside of what I reported in the github 
issue.

-Eric

On 06/17/2016 11:08 AM, Rodrigo Pimenta Carvalho wrote:

Thank you Ionut.


We will try it so.


Today morning, we noticed that OpenSIPS 2.2 while running and using SQLite, 
without online clients, without registers and without calls, causes a memory 
leak. That is, OpenSIPS even without any SIP request causes a memory leak due 
to the use of SQLite.


After updating the SQLite to a new version, such memory leak was vanished.


However, even with the newest SQLite, we still get memory leaks again if the 
proxy receives SIP REGISTER messages. That is, we get the issue every time some 
client registers. In this case we saw the memory leak in : " 
modparam("db_sqlite", "load_extension", "/usr/lib/sqlite3/pcre.so")"


Let us try the new solution and see what happens.


Best regards!


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



De: users-boun...@lists.opensips.org 
 em 
nome de Ionut Ionita 
Enviado: sexta-feira, 17 de junho de 2016 11:45
Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] What is the best SQLite version to be used with 
OpenSIPS 2.2? We investigate a memory leak.

Hi Rodrigo,

Pushed a fix both into 2.2[0] and master[1] branches. If you still think 
sqlite leaks even with this fix,
please feel free to open an issue on github.

[0] 
https://github.com/OpenSIPS/opensips/commit/c1aa55e73f7c56ea4894997aeb7f25a03cb289cf
[https://avatars3.githubusercontent.com/u/7924437?v=3&s=200]

[sqlite][bugfix] free column names when freeing the result · 
OpenSIPS/opensips@c1aa55e
github.com
(cherry picked from commit cf380773cec9f91ad08e343c03261154dabc36a5)


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

Regrads,
Ionut Ionita
OpenSIPS Developer

On 06/17/2016 05:19 PM, Rodrigo Pimenta Carvalho wrote:

Hi Liviu.


Very good.


We will see the resolution process.

Thank you very much!

Regards.



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



De: users-boun...@lists.opensips.org 
 
 em 
nome de Liviu Chircu 
Enviado: sexta-feira, 17 de junho de 2016 11:14
Para: users@lists.open

[OpenSIPS-Users] Parser memory Leak found.

2016-06-17 Thread Rodrigo Pimenta Carvalho
Hi.


Thanks Daniel Fússia, a coworker in my office, now I'm sending more details 
about the memory leak we saw in OpenSIPS 2.2 (newest commit from today):


The following configuration doesn't causes memory leaks:


modparam("dialog", "db_mode", 1)
modparam("dialog", "db_url",  "sqlite:///usr/local/opensips/db/sisc.sqlite")

But, when db_mode is 0, it causes memory leak. The problem is that when using 
db_mode = 0 we can't declare db_url. That is, if db_mode is zero, we have to 
comment the line that declares db_url.

See below the valgrind logs. One for the case without memory leak and another 
one with the issue.

-

==1792==
==1792== HEAP SUMMARY:
==1792== in use at exit: 3,142,778 bytes in 2,894 blocks
==1792==   total heap usage: 9,463 allocs, 6,569 frees, 4,960,116 bytes 
allocated
==1792==
==1792== LEAK SUMMARY:
==1792==definitely lost: 0 bytes in 0 blocks
==1792==indirectly lost: 0 bytes in 0 blocks
==1792==  possibly lost: 0 bytes in 0 blocks
==1792==still reachable: 3,142,778 bytes in 2,894 blocks
==1792== suppressed: 0 bytes in 0 blocks
==1792== Reachable blocks (those to which a pointer was found) are not shown.
==1792== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==1792==


Now with the isse:

---

Thank you for flying opensips
==1762==
==1762== HEAP SUMMARY:
==1762== in use at exit: 2,887,898 bytes in 2,193 blocks
==1762==   total heap usage: 7,991 allocs, 5,798 frees, 4,382,036 bytes 
allocated
==1762==
==1762== 80 bytes in 1 blocks are definitely lost in loss record 31 of 100
==1762==at 0x4C2745D: malloc (in 
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==1762==by 0x52D50B9: strdup (strdup.c:42)
==1762==by 0x4DF87E: set_mod_param_regex (modparam.c:97)
==1762==by 0x5AD2FB: yyparse (cfg.y:1085)
==1762==by 0x4177DE: main (main.c:999)
==1762==
==1762== LEAK SUMMARY:
==1762==definitely lost: 80 bytes in 1 blocks
==1762==indirectly lost: 0 bytes in 0 blocks
==1762==  possibly lost: 0 bytes in 0 blocks
==1762==still reachable: 2,887,818 bytes in 2,192 blocks
==1762== suppressed: 0 bytes in 0 blocks
==1762== Reachable blocks (those to which a pointer was found) are not shown.
==1762== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==1762==
-

The problem rises in the yyparser. The parser causes a memory leak whenever 
db_mode is zero and we still declare db_url, just in dialog module.

Regards.



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



De: Daniel Lopes Fússia
Enviado: sexta-feira, 17 de junho de 2016 14:41
Para: Rodrigo Pimenta Carvalho
Assunto: Leak no Parser


Pimenta,



Os logs e as configurações estão em anexo.

Qualquer dúvida me dá um tok.



Att,

Daniel Fussia


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


Re: [OpenSIPS-Users] Parser memory Leak found.

2016-06-17 Thread Rodrigo Pimenta Carvalho
Hi.


In addiction to my last message, the same problem also exists to the following 
configuration:


modparam("uri", "use_uri_table", 0)
modparam("uri", "db_url", "sqlite:///usr/local/opensips/db/sisc.sqlite") # 
CUSTOMIZE ME


If use_uri_table is equal to zero, we must comment the line that declare db_url.


But, what kind of side effect could I get with such decision?



Regards.


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



De: sisc-requ...@listas.inatel.br  em nome de 
Rodrigo Pimenta Carvalho 
Enviado: sexta-feira, 17 de junho de 2016 14:57
Para: users@lists.opensips.org
Assunto: [sisc] Parser memory Leak found.


Hi.


Thanks Daniel Fússia, a coworker in my office, now I'm sending more details 
about the memory leak we saw in OpenSIPS 2.2 (newest commit from today):


The following configuration doesn't causes memory leaks:


modparam("dialog", "db_mode", 1)
modparam("dialog", "db_url",  "sqlite:///usr/local/opensips/db/sisc.sqlite")

But, when db_mode is 0, it causes memory leak. The problem is that when using 
db_mode = 0 we can't declare db_url. That is, if db_mode is zero, we have to 
comment the line that declares db_url.

See below the valgrind logs. One for the case without memory leak and another 
one with the issue.

-

==1792==
==1792== HEAP SUMMARY:
==1792== in use at exit: 3,142,778 bytes in 2,894 blocks
==1792==   total heap usage: 9,463 allocs, 6,569 frees, 4,960,116 bytes 
allocated
==1792==
==1792== LEAK SUMMARY:
==1792==definitely lost: 0 bytes in 0 blocks
==1792==indirectly lost: 0 bytes in 0 blocks
==1792==  possibly lost: 0 bytes in 0 blocks
==1792==still reachable: 3,142,778 bytes in 2,894 blocks
==1792== suppressed: 0 bytes in 0 blocks
==1792== Reachable blocks (those to which a pointer was found) are not shown.
==1792== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==1792==


Now with the isse:

---

Thank you for flying opensips
==1762==
==1762== HEAP SUMMARY:
==1762== in use at exit: 2,887,898 bytes in 2,193 blocks
==1762==   total heap usage: 7,991 allocs, 5,798 frees, 4,382,036 bytes 
allocated
==1762==
==1762== 80 bytes in 1 blocks are definitely lost in loss record 31 of 100
==1762==at 0x4C2745D: malloc (in 
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==1762==by 0x52D50B9: strdup (strdup.c:42)
==1762==by 0x4DF87E: set_mod_param_regex (modparam.c:97)
==1762==by 0x5AD2FB: yyparse (cfg.y:1085)
==1762==by 0x4177DE: main (main.c:999)
==1762==
==1762== LEAK SUMMARY:
==1762==definitely lost: 80 bytes in 1 blocks
==1762==indirectly lost: 0 bytes in 0 blocks
==1762==  possibly lost: 0 bytes in 0 blocks
==1762==still reachable: 2,887,818 bytes in 2,192 blocks
==1762== suppressed: 0 bytes in 0 blocks
==1762== Reachable blocks (those to which a pointer was found) are not shown.
==1762== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==1762==
-

The problem rises in the yyparser. The parser causes a memory leak whenever 
db_mode is zero and we still declare db_url, just in dialog module.

Regards.



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



De: Daniel Lopes Fússia
Enviado: sexta-feira, 17 de junho de 2016 14:41
Para: Rodrigo Pimenta Carvalho
Assunto: Leak no Parser


Pimenta,



Os logs e as configurações estão em anexo.

Qualquer dúvida me dá um tok.



Att,

Daniel Fussia


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


[OpenSIPS-Users] TM flag 0x01 not working in 1.11.7

2016-06-17 Thread Newlin, Ben
In my script I send all “100 Trying” responses manually* and use the 0x01 flag 
when calling t_relay so that it will not send its own “100 Giving a try” 
response, as per the documentation [1].

Unfortunately, in 1.11.7 and 1.11.8 this flag seems to have stopped working 
which results in multiple 100 responses.

This should be easily reproducible with a script that simply calls t_relay with 
flag 0x01. You will see that a “100 Giving a try” response is still sent.

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

* I do this because I don’t like that the default is to send the non-standard 
response “100 Giving a try” instead of “100 Trying”. I’ve always wondered why 
this is that way. Additionally, the automatic response to CANCEL requests is 
“200 canceling” instead of the standard “200 OK”. Unfortunately, I have yet to 
find a way to workaround the behavior for CANCEL.

Ben Newlin

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