[OpenSIPS-Users] Does attr_avp (string) decrease the available RAM?

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Jun 2 09:08:59 CEST 2016


Hi Rodrigo,

The content of the AVP will be stored in memory, along with the 
registration info. Of course, additional memory will be consumed for 
that. If the info you attach is 10 bytes long and you have 1000 
registrations -> 10KB extra data (not so much after all).

Regards,

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

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
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160602/4a74be7f/attachment.htm>


More information about the Users mailing list