[sr-dev] [kamailio/kamailio] strange result from avp_db_query (#792)

Daniel-Constantin Mierla notifications at github.com
Mon Sep 26 10:52:09 CEST 2016


The avps are not single value variables, but a linked list. Practically it adds to the list whenever there is an assignment (in config or inside a function). It requires to empty the list yourself in the config if you expect some operations to add there and you don't want old values to remain.

In many cases I use avp_db_query() to load from different tables and store in same avp name.

So it is not a bug, but a design decision. If you want to discuss more, this should be dine on sr-users mailing lists to get more opinions...

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/792#issuecomment-249514395
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160926/00ea4f41/attachment.html>


More information about the sr-dev mailing list