]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_config_wizard: Fix concurrent Named ACL reloads
authorMichal Hajek <michal.hajek@daktela.com>
Wed, 17 Jun 2026 12:20:58 +0000 (14:20 +0200)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Thu, 13 Aug 2026 18:57:01 +0000 (18:57 +0000)
commit67d0900951cac372cae02ea40cd47f4d5834fe70
treef416282fe04642ab73528b4f462fa6dc5137163d
parent0de805e53b3b07ed37b7ae93951ae21aafa72a8f
res_pjsip_config_wizard: Fix concurrent Named ACL reloads

Named ACL change notifications reloaded PJSIP sorcery directly from the
Stasis callback. Under concurrent ACL, core, and config wizard reloads, that
could overlap with config wizard object type observers that compare, prune,
destroy, and replace the per-object-type last_config cache.

Route the ACL-triggered reload through the PJSIP servant path and track when
a Named ACL reload is pending or running so the observer still bypasses the
unchanged-file optimization. Also serialize the observer cache update to
prevent overlapping reload paths from mutating last_config at the same time.

UserNote: Fixes a PJSIP config wizard reload hang during overlapping reloads.
res/res_pjsip_config_wizard.c