<p>Richard Mudgett <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/6118">View Change</a></p><p>Patch set 2:</p><p>(2 comments)</p><ul style="list-style: none; padding-left: 20px;"><li><p><a href="https://gerrit.asterisk.org/#/c/6118/2/channels/chan_sip.c">File channels/chan_sip.c:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/6118/2/channels/chan_sip.c@18639">Patch Set #2, Line 18639:</a> <code style="font-family:monospace,monospace">         if (ast_begins_with(header, prefix)) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Forgot to add:</p><p style="white-space: pre-wrap; word-wrap: break-word;">I think that an empty prefix string value to match all headers has a subtle problem.  It can conceivably get confused with the variable not existing and you cannot disable the feature once it is enabled on the channel.  I suggest using an asterisk '*' as the match any header value instead so an empty or non-existing variable can mean the feature is disabled.</p></li><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/6118/2/channels/chan_sip.c@18722">Patch Set #2, Line 18722:</a> <code style="font-family:monospace,monospace">                      if (get_xfrdata != NULL) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Use !ast_strlen_zero(get_xferdata) test here along with the '*' match all headers idea.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/6118">change 6118</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/6118"/><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: I73d7a1e95981693bc59aa0d5093c074b555f708e </div>
<div style="display:none"> Gerrit-Change-Number: 6118 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Kirill Katsnelson <kkm@smartaction.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 01 Aug 2017 18:32:30 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>