[Asterisk-code-review] app_waitforcond: New application (asterisk[16])

N A asteriskteam at digium.com
Tue Jun 8 09:16:22 CDT 2021


Attention is currently required from: Joshua Colp, Richard Mudgett.
N A has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/15928 )

Change subject: app_waitforcond: New application
......................................................................


Patch Set 6:

(2 comments)

File apps/app_waitforcond.c:

https://gerrit.asterisk.org/c/asterisk/+/15928/comment/ce2dad84_a7855cb4 
PS6, Line 212: 		buffer = ast_malloc(strlen(condition) + 1);
> Why is this needed at all?
I was told to avoid ast_strdupa since that would blow the stack. So instead we malloc and free each time.


https://gerrit.asterisk.org/c/asterisk/+/15928/comment/413d21f3_a63145e6 
PS6, Line 215: 		if (pbx_checkcondition(cond)) {
> It should be fine to pass condition in here. […]
Yeah, got a warning that pbx_checkcondition needed a constant argument.



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

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I08adf2824b8bc63405778cf355963b5005612f41
Gerrit-Change-Number: 15928
Gerrit-PatchSet: 6
Gerrit-Owner: N A <mail at interlinked.x10host.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Attention: Joshua Colp <jcolp at sangoma.com>
Gerrit-Attention: Richard Mudgett <rmudgett at digium.com>
Gerrit-Comment-Date: Tue, 08 Jun 2021 14:16:22 +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/20210608/6a7d2b84/attachment.html>


More information about the asterisk-code-review mailing list