]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_exten_state,res_pjsip_mwi: Allow unload on shutdown
authorGeorge Joseph <gjoseph@sangoma.com>
Thu, 19 Oct 2023 13:40:26 +0000 (07:40 -0600)
committerres_pjsip_mwi: Allow unload on shutdown <George Joseph|gjoseph@sangoma.com|>
Fri, 20 Oct 2023 12:39:04 +0000 (12:39 +0000)
commit9efc4bdfbcf6d1ec641bbf87f44abdd2f9d18126
treee7285c17e25973129a40c5b5f8f2719cc28cc5e6
parentf89e56c178a30db81de90da184baa0e922544b60
res_pjsip_exten_state,res_pjsip_mwi: Allow unload on shutdown

Commit f66f77f last year prevents the res_pjsip_exten_state and
res_pjsip_mwi modules from unloading due to possible pjproject
asserts if the modules are reloaded. A side effect of the
implementation is that the taskprocessors these modules use aren't
being released. When asterisk is doing a graceful shutdown, it
waits AST_TASKPROCESSOR_SHUTDOWN_MAX_WAIT seconds for all
taskprocessors to stop but since those 2 modules don't release
theirs, the shutdown hangs for that amount of time.

This change allows the modules to be unloaded and their resources to
be released when ast_shutdown_final is true.

Resolves: #379
res/res_pjsip_exten_state.c
res/res_pjsip_mwi.c