[Asterisk-code-review] app_assert: Add Assert application (asterisk[master])

Kevin Harwell asteriskteam at digium.com
Mon Oct 25 15:57:14 CDT 2021


Attention is currently required from: N A.
Kevin Harwell has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/16629 )

Change subject: app_assert: Add Assert application
......................................................................


Patch Set 2:

(1 comment)

Patchset:

PS2: 
I agree with Josh, and his general sentiments as to why this is not needed.

I'll also add I don't think this fully reflects what an assert is for in the general programming sense. Asserts are for "this should never be" vs. "this might happen so do something if it does". Also, there is no "debug" mode in dialplan, and this doesn't abort processing.

This patch to me is more analogous to an if/then error, which as pointed out can easily be done with other dialplan applications such as ExecIf, GotoIf, or GosubIf.



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

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: Ia089c2debf608f42f5f87e6c29d50e8ebcc093e5
Gerrit-Change-Number: 16629
Gerrit-PatchSet: 2
Gerrit-Owner: N A <mail at interlinked.x10host.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-CC: Joshua Colp <jcolp at sangoma.com>
Gerrit-CC: Kevin Harwell <kharwell at digium.com>
Gerrit-Attention: N A <mail at interlinked.x10host.com>
Gerrit-Comment-Date: Mon, 25 Oct 2021 20:57:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20211025/ac88fcb2/attachment-0001.html>


More information about the asterisk-code-review mailing list