[Asterisk-code-review] ari/bridge: Add mute, dtmf suppression controls (asterisk[master])

Richard Mudgett asteriskteam at digium.com
Mon Oct 9 18:35:10 CDT 2017


Richard Mudgett has posted comments on this change. ( https://gerrit.asterisk.org/6675 )

Change subject: ari/bridge: Add mute, dtmf suppression controls
......................................................................


Patch Set 2: Code-Review-1

(4 comments)

Guidelines: Use tabs not spaces for indentation.  Spaces were used in many change lines throughout this patch when tabs should be used.

https://gerrit.asterisk.org/#/c/6675/2/res/ari/resource_bridges.c
File res/ari/resource_bridges.c:

https://gerrit.asterisk.org/#/c/6675/2/res/ari/resource_bridges.c@223
PS2, Line 223:       if(!stasis_app_control_bridge_features_init(list->controls[i])) {
Space after if:
if () {
}


https://gerrit.asterisk.org/#/c/6675/2/res/stasis/control.c
File res/stasis/control.c:

https://gerrit.asterisk.org/#/c/6675/2/res/stasis/control.c@107
PS2, Line 107:    ast_bridge_features_destroy(control->bridge_features);
             : 
Use tabs not spaces for indentation.  Spaces were used in many lines throughout this patch when tabs should be used.

Also remove the extra blank line added.


https://gerrit.asterisk.org/#/c/6675/2/res/stasis/control.c@1340
PS2, Line 1340:       ast_log(LOG_ERROR, "Error initializing bridge_features: %s\n",
              :             strerror(errno));
Remove this error message.  It is redundant and errno is not set by the function.


https://gerrit.asterisk.org/#/c/6675/2/res/stasis/control.c@1351
PS2, Line 1351:    if (absorb == 1) {
Just use
if (absorb) {
} else {
}

Or more simply:

control->bridge_features->dtmf_passthrough = !absorb;

absorb gets set by two different functions.
One is ast_json_is_true() this returns 0 or 1.
The other is ast_true() this returns 0 or -1.



-- 
To view, visit https://gerrit.asterisk.org/6675
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Id4002adfb65c9a8027ee9e1a5f477e0f01cf9d61
Gerrit-Change-Number: 6675
Gerrit-PatchSet: 2
Gerrit-Owner: Seán C. McCord <ulexus at gmail.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Seán C. McCord <ulexus at gmail.com>
Gerrit-Comment-Date: Mon, 09 Oct 2017 23:35:10 +0000
Gerrit-HasComments: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171009/5945f791/attachment.html>


More information about the asterisk-code-review mailing list