[Asterisk-code-review] pbx: Ensure we don't operate on dialplan while dialplan is reloading, ... (asterisk[18])

Mark Murawski asteriskteam at digium.com
Tue Jan 18 07:44:40 CST 2022


Attention is currently required from: Sean Bright, Joshua Colp, Kevin Harwell.
Mark Murawski has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/17798 )

Change subject: pbx: Ensure we don't operate on dialplan while dialplan is reloading, which causes deadlocks
......................................................................


Patch Set 5:

(1 comment)

File main/pbx.c:

https://gerrit.asterisk.org/c/asterisk/+/17798/comment/a0aeac8c_17b5c546 
PS5, Line 7307: 	if (ast_mutex_trylock(&conlock)) {
> Have you audited all of the callers of this to see how they react? What user experience/etc occurs? […]
Yeah I did a review of all the callers to the various ast_add_extension*, most of which are in pbx_config.c and pbx.c and all have graceful error handling for ast_add_extension2 failing.

But with a new approach noted below, all callers would need to be refactored to use a new add_extension_queued().



-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/17798
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 18
Gerrit-Change-Id: I435db97fc56f18b6f5c25a3e400603817b07aa49
Gerrit-Change-Number: 17798
Gerrit-PatchSet: 5
Gerrit-Owner: Mark Murawski <markm at intellasoft.net>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Sean Bright <sean at seanbright.com>
Gerrit-CC: Kevin Harwell <kharwell at digium.com>
Gerrit-Attention: Sean Bright <sean at seanbright.com>
Gerrit-Attention: Joshua Colp <jcolp at sangoma.com>
Gerrit-Attention: Kevin Harwell <kharwell at digium.com>
Gerrit-Comment-Date: Tue, 18 Jan 2022 13:44:40 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Joshua Colp <jcolp at sangoma.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220118/f86c1c7d/attachment.html>


More information about the asterisk-code-review mailing list