- add xavp when registered returns success - add reg_received_avp param for strict matching the contact - add reg_contact_avp param for strict matching the contact - add xavp to reg_fetch_contacts
modparam("usrloc", "xavp_contact", "ulattrs") modparam("registrar", "reg_received_avp", "$avp(chk_origin)") modparam("registrar", "reg_contact_avp", "$avp(chk_contact)")
using xavp with registered $avp(chk_origin) = $su; $avp(chk_contact) = $(ct{nameaddr.uri}); if (registered("location","$fu")) { xlog("L_INFO", "$ci|log| checking $fu - $xavp(ulattrs=>account_id)"); }
using xavp with reg_fetch_contacts if(reg_fetch_contacts("location", "$fu", "caller")) { xlog("L_INFO", "$ci|log| checking $fu - $(ulc(caller=>ulattrs=>account_id))"); }
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/91
-- Commit Summary --
* registrar - add user xavp on successful registered call * registrar - add optional avp params for usrloc comparison * registrar - add xavp to reg_fetch_contacts
-- File Changes --
M modules/registrar/lookup.c (35) M modules/registrar/reg_mod.c (50) M modules/registrar/reg_mod.h (4) M modules/registrar/regpv.c (307)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/91.patch https://github.com/kamailio/kamailio/pull/91.diff
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/91