[Asterisk-code-review] cli: Prevent assertions on startup from bad ao2 refs. (asterisk[master])
N A
asteriskteam at digium.com
Wed May 18 12:26:23 CDT 2022
Attention is currently required from: Joshua Colp.
N A has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/18523 )
Change subject: cli: Prevent assertions on startup from bad ao2 refs.
......................................................................
Patch Set 1:
(1 comment)
File main/cli.c:
https://gerrit.asterisk.org/c/asterisk/+/18523/comment/6fbcaade_49f6d6dc
PS1, Line 1143: while (!ast_test_flag(&ast_options, AST_OPT_FLAG_FULLY_BOOTED)) {
> I don't see what the channel drivers have to do with anything regarding a core channels container. […]
core show channels gets registered with all the CLI builtins here: https://github.com/asterisk/asterisk/blob/master/main/asterisk.c#L4159
However, the channel cache only gets initialized at 4220: https://github.com/asterisk/asterisk/blob/master/main/asterisk.c#L4220
Would moving ast_builtins_init to, say, here be feasible? https://github.com/asterisk/asterisk/blob/master/main/asterisk.c#L4240
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/18523
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: If6b3cde802876bd738c1b4cf2683bea6ddc615b6
Gerrit-Change-Number: 18523
Gerrit-PatchSet: 1
Gerrit-Owner: N A <mail at interlinked.x10host.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Attention: Joshua Colp <jcolp at sangoma.com>
Gerrit-Comment-Date: Wed, 18 May 2022 17:26:23 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Joshua Colp <jcolp at sangoma.com>
Comment-In-Reply-To: N A <mail at interlinked.x10host.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220518/270a3649/attachment.html>
More information about the asterisk-code-review
mailing list