If S-CSCF downloaded fresh keys from the HSS, put it on the top of the list, as they are already been sent to the UE via 401 message so it should be the first to be retrived to comparison once REGISTER with challenge comes from the UE You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/803
-- Commit Summary --
* ims_auth: Put fresh keys from HSS on top of list
-- File Changes --
M modules/ims_auth/authorize.c (11)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/803.patch https://github.com/kamailio/kamailio/pull/803.diff