]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_config_wizard.c: Refactor load process
authorGeorge Joseph <gjoseph@sangoma.com>
Tue, 23 Jul 2024 16:04:26 +0000 (10:04 -0600)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 8 Aug 2024 13:26:34 +0000 (13:26 +0000)
commit740cdd7ebd877214110e916de60cc8d630ea2eea
tree69189dbc706d36ac64f25d2fd29083b22689e7a2
parent05847ee437ef526a886f00448a84108045fe4cee
res_pjsip_config_wizard.c: Refactor load process

The way we have been initializing the config wizard prevented it
from registering its objects if res_pjsip happened to load
before it.

* We now use the object_type_registered sorcery observer to kick
things off instead of the wizard_mapped observer.

* The load_module function now checks if res_pjsip has been loaded
already and if it was it fires the proper observers so the objects
load correctly.

Resolves: #816

UserNote: The res_pjsip_config_wizard.so module can now be reloaded.
(cherry picked from commit 5c437c572479b0e62126c56858002fb2216aa40c)
res/res_pjsip_config_wizard.c