]> git.ipfire.org Git - thirdparty/asterisk.git/commit
cli: Prevent assertions on startup from bad ao2 refs.
authorNaveen Albert <asterisk@phreaknet.org>
Tue, 3 May 2022 12:53:28 +0000 (12:53 +0000)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Sat, 10 Sep 2022 01:41:23 +0000 (20:41 -0500)
commit116ec0b9bbbb95cf238cb477a9f8f044e2bc1060
treef6a219a7bd5a41c4d6f84b5f80f8640de971b31e
parent03bda8845c35a8cf73c067799b1bc4d9449954fe
cli: Prevent assertions on startup from bad ao2 refs.

If "core show channels" is run before startup has completed, it
is possible for bad ao2 refs to occur because the system is not
yet fully initialized. This will lead to an assertion failing.

To prevent this, initialization of CLI builtins is moved to be
later along in the main load sequence. Core CLI commands are
loaded at the same time, but channel-related commands are loaded
later on.

ASTERISK-29846 #close

Change-Id: If6b3cde802876bd738c1b4cf2683bea6ddc615b6
include/asterisk/_private.h
main/asterisk.c
main/cli.c