]> 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)
committerAndreas Wehrmann <andreas-wehrmann@users.noreply.github.com>
Mon, 21 Apr 2025 14:46:06 +0000 (14:46 +0000)
commitc00e809ff0fd20e4b9a1a18ceddda47787a315c7
treeb1fecd96c57cb450f48495030b0089fbef4d5e7a
parentc251afadb91a80e6626449a86cda60567fa1f3c9
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