[OpenSIPS-Users] Does attr_avp (string) decrease the available RAM?
Rodrigo Pimenta Carvalho
pimenta at inatel.br
Mon Jun 6 15:02:21 CEST 2016
Thank you Liviu and Bogdan.
RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979
________________________________
De: users-bounces at lists.opensips.org <users-bounces at lists.opensips.org> em nome de Liviu Chircu <liviu at opensips.org>
Enviado: quinta-feira, 2 de junho de 2016 05:18
Para: users at lists.opensips.org
Assunto: Re: [OpenSIPS-Users] Does attr_avp (string) decrease the available RAM?
AVPs eat up shared memory. For each "lookup()" you perform on a different INVITE request, a different $avp(attr) will be populated with the attributes of each contact behind the AoR you looked up. All AVPs of a transaction are then freed along with the transaction itself.
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
Home - OpenSIPS Solutions<http://www.opensips-solutions.com/>
www.opensips-solutions.com
OpenSIPS is a mature Open Source implementation of a SIP server. OpenSIPS is more than a SIP proxy/router as it includes application-level functionalities.
On 01.06.2016 21:19, Rodrigo Pimenta Carvalho wrote:
Hi.
I'm using OpenSIPS 2.1 and the module REGISTRAR.
So, in my script I have:
modparam("registrar", "attr_avp", "$avp(attr)")
...
if (is_method("REGISTER")) {
$avp(attr) = "contact_info";
save("location");
exit;
}
...
lookup("location");
I would like to know whether every time such code is executed the available memory decreases. What happens? Does the avp demand more and more memory to keep its information about lots of "contact_info"?
Any hint will be very helpful!
Thanks alot.
RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979
_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160606/9a579517/attachment.htm>
More information about the Users
mailing list