]> 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, 12 Sep 2024 18:44:38 +0000 (18:44 +0000)
commitc74d3328071dfc9cc68fce1a8c7b81e280fd3d8d
treea5ffc620fa3eead4e0540b91a339b5e86a9a4e6b
parentcb9c24c6d55c977b79108e3dde50a3fcee18a05a
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 c9e23c46b0849ea257dfb5da6d53923162c36ee3)
res/res_pjsip_config_wizard.c