<p>George Joseph <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/14460">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_fax: Don't start a gateway if either channel is hung up<br><br>When fax_gateway_framehook is called and a gateway hasn't already<br>been started, the framehook gets the t38 state for both the current<br>channel and the peer.  That call trickles down to the channel<br>driver which determines the state.  If either channel is hung up<br>(or in the process of being hung up), the channel driver's tech_pvt<br>is going to be NULL which, in the case of chan_pjsip, will cause a<br>segfault.<br><br>* Added a hangup check for both the channel and peer channel<br>  before starting a fax gateway.<br><br>* Added a check for NULL tech_pvt to chan_pjsip_queryoption<br>  so we don't attempt to reference a tech_pvt that's already<br>  gone.<br><br>ASTERISK-28923<br>Reported by: Yury Kirsanov<br><br>Change-Id: I4e10e63b667bbb68c1c8623f977488f5d807897c<br>---<br>M channels/chan_pjsip.c<br>M res/res_fax.c<br>2 files changed, 15 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/60/14460/2</pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/14460">change 14460</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/c/asterisk/+/14460"/><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-Change-Id: I4e10e63b667bbb68c1c8623f977488f5d807897c </div>
<div style="display:none"> Gerrit-Change-Number: 14460 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Benjamin Keith Ford <bford@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-CC: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>