]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pbx_ael: unregister AELSub application and CLI commands on module load failure
authorAndreas Wehrmann <andreas-wehrmann@users.noreply.github.com>
Fri, 18 Apr 2025 08:56:05 +0000 (10:56 +0200)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 1 May 2025 12:44:58 +0000 (12:44 +0000)
commit9d2447afc796fda4a2977512ef7a34bef4ed16c4
treedc681438bf86be8303df55869db111f76f0b6bd4
parentd7b8f1a3a16c3cb0781d9b00265ae79ada4ea650
pbx_ael: unregister AELSub application and CLI commands on module load failure

This fixes crashes/hangs I noticed with Asterisk 20.3.0 and 20.13.0 and quickly found out,
that the AEL module doesn't do proper cleanup when it fails to load.
This happens for example when there are syntax errors and AEL fails to compile in which case pbx_load_module()
returns an error but load_module() doesn't then unregister CLI cmds and the application.

(cherry picked from commit 54004e3c445fd96a2dd7752fcd1c129129900343)
pbx/pbx_ael.c