]> 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:29 +0000 (20:41 -0500)
commit8041bd12c140d57506a7cc91ead8b5b3666ee085
tree5919d72e822029b53115b2ff960329eb2171aecb
parentf97e9aed85fde0298f2637b17b904d3854dae749
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