<p>Kirill Katsnelson <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><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">Documentation of how this feature works is needed in sip.conf.sample.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">I spotted a lot of chan_sip-specific variables in code (just search for 'var_helper('), and none is documented in sip.conf.sample; it feels kind of out of place there (but maybe all variables should be documented there). I added the documentation to the function SIP_HEADER instead, as this is probable the place users will be looking for when they want access to the REFER headers. At least, I did.</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">A note about the addition of this feature is needed in the CHANGES file.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">Done.</p><p>(3 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><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Forgot to add:</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/6118/2/channels/chan_sip.c@18643">Patch Set #2, Line 18643:</a> <code style="font-family:monospace,monospace">                             struct ast_str *pbxvar = ast_str_alloca(120);</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Using ast_str_alloca() inside a loop can conceivably cause a crash because </blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">D-oh! Classic fail, thanks for spotting!</p><p style="white-space: pre-wrap; word-wrap: break-word;">Done.</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><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Use !ast_strlen_zero(get_xferdata) test here along with the '*' match all h</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</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: Kirill Katsnelson <kkm@smartaction.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 02 Aug 2017 00:04:55 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>