]> 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)
committerGeorge Joseph <gjoseph@sangoma.com>
Wed, 24 Jul 2024 19:21:06 +0000 (19:21 +0000)
commitd11dc5247b9c945a2a720e10dfcb4509484b767e
tree4ef91603b42dc6551afea09d0f7ed27ae3744f24
parentef10fb4e6e71a1c1c53e4a9ece6239c12096fc1a
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.
res/res_pjsip_config_wizard.c