[sr-dev] [kamailio/kamailio] pv: new variable $xavp_count (PR #2936)

Nicolas C notifications at github.com
Wed Nov 17 15:17:28 CET 2021


> If I understand correctly, it works only for `$xavp(key)`, not for `$xavp(key1=>key2)`, right?
> 
> Also, I wonder if it is not better to enhance the `$cnt(...)` variable for this purpose, now it is for avps.


Yes… it works only with a single key. This is all I needed.

But you’re right, it would be better to also handle sub-keys.
That was a quick PR since I already had the code. Feel free to discard it. :)


-- 
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/pull/2936#issuecomment-971623717
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20211117/9f20018d/attachment.htm>


More information about the sr-dev mailing list