<p style="white-space: pre-wrap; word-wrap: break-word;">Eventually a similar patch will need to be done for res_pjsip_refer.c as it will not send the pickup event either.</p><p>Patch set 1:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p><a href="https://gerrit.asterisk.org/10448">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/#/c/10448/1/channels/chan_sip.c">File channels/chan_sip.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/10448/1/channels/chan_sip.c@25687">Patch Set #1, Line 25687:</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;">              RAII_VAR(struct ast_channel_snapshot *, chan_snapshot, NULL, ao2_cleanup);<br>            RAII_VAR(struct ast_channel_snapshot *, target_snapshot, NULL, ao2_cleanup);<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">RAII_VAR should only be used when there are multiple exit points from the block.  In this case there is only one exit point.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/10448/1/channels/chan_sip.c@25695">Patch Set #1, Line 25695:</a> <code style="font-family:monospace,monospace">              ast_send_call_pickup_stasis_message(replaces_chan, chan_snapshot, target_snapshot);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This should not be called unconditionally.  ast_bridge_transfer_acquire_bridge() can return no bridge even though the channel is really in a bridge.  It does this for channels that are in a ConfBridge.  In this case the call is not a pickup.  You can check this by calling ast_channel_get_bridge().</p><p style="white-space: pre-wrap; word-wrap: break-word;">Beware that ast_channel_get_bridge() must be called with the channel locked and that it returns a bridge ref.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/10448">change 10448</a>. To unsubscribe, or for help writing mail filters, 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/10448"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ieb1442027a3ce6ae55faca47bc095e53972f947a </div>
<div style="display:none"> Gerrit-Change-Number: 10448 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Jasper Hafkenscheid <jasper.hafkenscheid@wearespindle.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 (1000185) </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 12 Oct 2018 22:23:18 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>