]> 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)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Mon, 21 Apr 2025 14:46:11 +0000 (14:46 +0000)
commite5c05d42259ae3281ef208a734e6cef4c50aa5fd
treecdb16cbd49ed223ed279ca11d4f69bdbaa25921c
parenta9cd7f9b8dd00a9f67f73b40a56aca953ff5fefe
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.
pbx/pbx_ael.c