[SR-Users] registered4() is not adding xavp with details of the record
Andrew Pogrebennyk
apogrebennyk at sipwise.com
Thu Sep 3 12:04:55 CEST 2015
Hi,
I was trying to use registered("location", "$ru", 0, 1)
Last parameter is the flag according to
http://kamailio.org/docs/modules/stable/modules/registrar.html#registrar.f.registered
flag values is as follows:
1 - set xavp_rcd with value from matched contact
But I'm getting NULL instead of ruid.. While the same works after
lookup("location").
So I took a quick look into the code and that confirms that registered4
does not add the xavp with details of the record (ruid), i.e. it does
not do what the lookup_helper does.
Is this done on purpose or an oversight? While fixing this it might be
reasonable to introduce a new function for setting the XAVPs and call it
from lookup and registered4 functions, especially since we are going to
extend the attributes list beyond just ruid, but right now I'm
struggling just to understanding how the XAVP should be built.. Ideas?
Thanks,
Andrew
More information about the sr-users
mailing list