]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Refactor load_module/unload_module 24/2224/5
authorGeorge Joseph <george.joseph@fairview5.com>
Tue, 9 Feb 2016 23:34:05 +0000 (16:34 -0700)
committerGeorge Joseph <george.joseph@fairview5.com>
Fri, 12 Feb 2016 00:44:53 +0000 (18:44 -0600)
commitb1b797e0e75231e1669f9f7e17cc3032657c24cb
treee217067d873126be9dfe50e30cd1160d4db519a8
parent8c15f309c2c4c9979727366f4d1263f5bddf5aa0
res_pjsip:  Refactor load_module/unload_module

load_module was just too hairy with every step having to clean up all
previous steps on failure.

Some of the pjproject init calls have now been moved to a separate
load_pjsip function and the unload_pjsip function was enhanced to clean
up everything if an error happened at any stage of the load process.

In the process, a bunch of missing pj_shutdowns, serializer_pool_shutdowns
and ast_threadpool_shutdowns were also corrected.

Change-Id: I5eec711b437c35b56605ed99537ebbb30463b302
res/res_pjsip.c
res/res_pjsip/pjsip_configuration.c