<p>Frederic LE FOLL <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/12846">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_dahdi: set CHANNEL(hangupsource) when a PRI channel hangs up<br><br>When the remote ISDN party ends an ISDN call on a PRI link<br>(DISCONNECT), CHANNEL(hangupsource) information is not available.<br><br>chan_dahdi already contains an ast_set_hangupsource() in<br>__dahdi_exception() function but it seems that ISDN message processing<br>does not use this part of code.<br><br>Two other channel modules associate ast_queue_hangup() and<br>ast_set_hangupsource() functions calls:<br>- chan_pjsip in chan_pjsip_session_end() function,<br>- chan_sip in sip_queue_hangup_cause() function.<br>chan_iax2 separates them, in iax2_queue_hangup()/iax2_destroy() and<br>set_hangup_source_and_cause().<br><br>Thus, I propose to include to add ast_set_hangupsource() beside<br>ast_queue_hangup() in sig_pri_queue_hangup(), like chan_pjsip and<br>chan_sip already do.<br><br>Patch Set 2: Thank you for code review. Code modified as suggested to<br>avoid possible deadlock.<br><br>ASTERISK-28525<br><br>Change-Id: I0f588a4bcf15ccd0648fd69830d1b801c3f21b7c<br>---<br>M channels/sig_pri.c<br>1 file changed, 14 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/46/12846/2</pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/12846">change 12846</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/+/12846"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: I0f588a4bcf15ccd0648fd69830d1b801c3f21b7c </div>
<div style="display:none"> Gerrit-Change-Number: 12846 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Frederic LE FOLL <frederic.lefoll@c-s.fr> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>