[sr-dev] [kamailio/kamailio] Ability to reload location attributes at runtime (#2299)

Sergiu Pojoga notifications at github.com
Mon Apr 27 17:06:46 CEST 2020


Hi @henningw ,

I certainly do use `reg_fetch_contacts` to fetch all the Contacts of a caller/callee, it provides access to all the `location` parameters of a Contact (aor, addr, path, received, e.t.c) and that works fine. 

Here's the general Lookup flow I use:
1. reg_fetch_contacts("location"); exposes Contact's profile in $ulc pseudo-variable
2. registered("location"); exposes extra attributes from `location_attr` in $xavp(ulattrs)

The name of XAVP storing the attributes per Contact
modparam("tm|usrloc", "xavp_contact", "ulattrs")

My quarrel is with the extra attributes. I can't find a way to reload/refresh them at runtime. I have to alter the records in DB table `location_attrs` then restart Kamailio.

Having `db_load=1` loads all Contacts & Attributes on restart, so I thought - may be the function that does that on restart can do the same thing on-demand in some rpc?

Thanks.

-- 
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/2299#issuecomment-620044939
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20200427/41bbc3a9/attachment.html>


More information about the sr-dev mailing list