<p>Joshua Colp has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/8460">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip_rfc3326: Order of 'Reason' headers break many endpoints<br><br>ASTERISK-27554<br><br>Change-Id: If61c7faab7d2fa1031c056ed6268fe928e2391cf<br>---<br>M res/res_pjsip_rfc3326.c<br>1 file changed, 3 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/8460/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_pjsip_rfc3326.c b/res/res_pjsip_rfc3326.c<br>index 6c02a17..5ac16f0 100644<br>--- a/res/res_pjsip_rfc3326.c<br>+++ b/res/res_pjsip_rfc3326.c<br>@@ -91,12 +91,12 @@<br> {<br> char buf[20];<br> <br>- snprintf(buf, sizeof(buf), "Q.850;cause=%i", ast_channel_hangupcause(session->channel) & 0x7f);<br>- ast_sip_add_header(tdata, "Reason", buf);<br>-<br> if (ast_channel_hangupcause(session->channel) == AST_CAUSE_ANSWERED_ELSEWHERE) {<br> ast_sip_add_header(tdata, "Reason", "SIP;cause=200;text=\"Call completed elsewhere\"");<br> }<br>+<br>+ snprintf(buf, sizeof(buf), "Q.850;cause=%i", ast_channel_hangupcause(session->channel) & 0x7f);<br>+ ast_sip_add_header(tdata, "Reason", buf);<br> }<br> <br> static void rfc3326_outgoing_request(struct ast_sip_session *session, struct pjsip_tx_data *tdata)<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/8460">change 8460</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/8460"/><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: newchange </div>
<div style="display:none"> Gerrit-Change-Id: If61c7faab7d2fa1031c056ed6268fe928e2391cf </div>
<div style="display:none"> Gerrit-Change-Number: 8460 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Ross Beer <ross.beer@voicehost.co.uk> </div>