<p>Richard Mudgett <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/6675">View Change</a></p><p>Patch set 2:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p style="white-space: pre-wrap; word-wrap: break-word;">Guidelines: Use tabs not spaces for indentation. Spaces were used in many change lines throughout this patch when tabs should be used.</p><p>(4 comments)</p><ul style="list-style: none; padding-left: 20px;"><li><p><a href="https://gerrit.asterisk.org/#/c/6675/2/res/ari/resource_bridges.c">File res/ari/resource_bridges.c:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/6675/2/res/ari/resource_bridges.c@223">Patch Set #2, Line 223:</a> <code style="font-family:monospace,monospace"> if(!stasis_app_control_bridge_features_init(list->controls[i])) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Space after if:<br>if () {<br>}</p></li></ul></li><li><p><a href="https://gerrit.asterisk.org/#/c/6675/2/res/stasis/control.c">File res/stasis/control.c:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/6675/2/res/stasis/control.c@107">Patch Set #2, Line 107:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;"> ast_bridge_features_destroy(control->bridge_features);<br><br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Use tabs not spaces for indentation. Spaces were used in many lines throughout this patch when tabs should be used.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Also remove the extra blank line added.</p></li><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/6675/2/res/stasis/control.c@1340">Patch Set #2, Line 1340:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;"> ast_log(LOG_ERROR, "Error initializing bridge_features: %s\n",<br> strerror(errno));<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Remove this error message. It is redundant and errno is not set by the function.</p></li><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/6675/2/res/stasis/control.c@1351">Patch Set #2, Line 1351:</a> <code style="font-family:monospace,monospace"> if (absorb == 1) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Just use<br>if (absorb) {<br>} else {<br>}</p><p style="white-space: pre-wrap; word-wrap: break-word;">Or more simply:</p><p style="white-space: pre-wrap; word-wrap: break-word;">control->bridge_features->dtmf_passthrough = !absorb;</p><p style="white-space: pre-wrap; word-wrap: break-word;">absorb gets set by two different functions.<br>One is ast_json_is_true() this returns 0 or 1.<br>The other is ast_true() this returns 0 or -1.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/6675">change 6675</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/6675"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Id4002adfb65c9a8027ee9e1a5f477e0f01cf9d61 </div>
<div style="display:none"> Gerrit-Change-Number: 6675 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Seán C. McCord <ulexus@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Seán C. McCord <ulexus@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 09 Oct 2017 23:35:10 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>