[Asterisk-code-review] app_senddtmf: Add receive mode to AMI Action PlayDTMF (asterisk[16])
lvl
asteriskteam at digium.com
Mon Nov 18 09:39:41 CST 2019
lvl has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/13163 )
Change subject: app_senddtmf: Add receive mode to AMI Action PlayDTMF
......................................................................
Patch Set 4:
(1 comment)
https://gerrit.asterisk.org/c/asterisk/+/13163/1/apps/app_senddtmf.c
File apps/app_senddtmf.c:
https://gerrit.asterisk.org/c/asterisk/+/13163/1/apps/app_senddtmf.c@175
PS1, Line 175: if (ast_strlen_zero(receive_s)) {
: receive = 0;
: } else {
: receive = abs(ast_true(receive_s));
: }
:
: if (receive) {
> This can be simplified down to one if statement, like so: […]
Right, your suggestion works well, thanks :) FWIW I borrowed this style from one of the other manager action's code, but I presume changing any unrelated code within this branch is out of scope.
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/13163
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I183501297ae1dc294ae56b34acac9b0343eb2664
Gerrit-Change-Number: 13163
Gerrit-PatchSet: 4
Gerrit-Owner: lvl <digium at lvlconsultancy.nl>
Gerrit-Reviewer: Benjamin Keith Ford <bford at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Comment-Date: Mon, 18 Nov 2019 15:39:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Benjamin Keith Ford <bford at digium.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20191118/db84bd92/attachment.html>
More information about the asterisk-code-review
mailing list