[SR-Users] var vs avp...

Alex Balashov abalashov at evaristesys.com
Fri Apr 19 13:26:00 CEST 2013


You can have arrays of $vars too, though that is probably not what you meant by "stacks".

"Olle E. Johansson" <oej at edvina.net> wrote:

>
>19 apr 2013 kl. 10:43 skrev "Victor V. Kustov" <coyote at bks.tv>:
>
>> Hi!
>> 
>> whats difference $var() and $avp()?
>
>There's a whole set of differences.
>
>- $var is stored in process memory.
>
>- $avp is stored in transactions (in shared memory), so if you set them
>while processing a request you have them when processing responses and
>failures.
>
>- avp's are stacks, so you can store a set of data in them, not just
>one value.
>
>You can find out more details in the core cookbok on the web site.
>
>/O
>_______________________________________________
>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>sr-users at lists.sip-router.org
>http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

--
Sent from my Nexus 10, with all the figments of autocorrect that might imply.

Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
United States
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130419/79b074ee/attachment.htm>


More information about the sr-users mailing list