<p>Mark Petersen has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/16346">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip_rfc3326: Q.850 reason code for CANCEL is set to AST_CAUSE_NORMAL_CLEARING<br><br>changed that for CANCEL that we send this Q.850 reason code if enabled<br>Reason: Q.850;cause=16<br>as defined in RFC3326<br>https://datatracker.ietf.org/doc/html/rfc3326#section-2<br><br>ASTERISK-28053<br>Reported by: roadkill<br><br>Change-Id: Ib653aec2282f55b59d87484391cc07c8e6612b89<br>---<br>M res/res_pjsip_rfc3326.c<br>1 file changed, 4 insertions(+), 0 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/16346/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_pjsip_rfc3326.c b/res/res_pjsip_rfc3326.c</span><br><span>index 6a02641..5feff54 100644</span><br><span>--- a/res/res_pjsip_rfc3326.c</span><br><span>+++ b/res/res_pjsip_rfc3326.c</span><br><span>@@ -105,6 +105,10 @@</span><br><span>                   (ast_channel_hangupcause(session->channel) & 0x7f),</span><br><span>                   ast_sorcery_object_get_id(session->endpoint));</span><br><span>    } else {</span><br><span style="color: hsl(120, 100%, 40%);">+              if (ast_channel_hangupcause(session->channel) == AST_CAUSE_NOTDEFINED) {</span><br><span style="color: hsl(120, 100%, 40%);">+                   ast_channel_hangupcause_set(session->channel, AST_CAUSE_NORMAL_CLEARING);</span><br><span style="color: hsl(120, 100%, 40%);">+                  ast_debug(1, "Setting hangupcause for endpoint '%s' to NORMAL_CLEARING\n", ast_sorcery_object_get_id(session->endpoint));</span><br><span style="color: hsl(120, 100%, 40%);">+                }</span><br><span>            snprintf(buf, sizeof(buf), "Q.850;cause=%i", ast_channel_hangupcause(session->channel) & 0x7f);</span><br><span>             ast_sip_add_header(tdata, "Reason", buf);</span><br><span>  }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/16346">change 16346</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/+/16346"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 19 </div>
<div style="display:none"> Gerrit-Change-Id: Ib653aec2282f55b59d87484391cc07c8e6612b89 </div>
<div style="display:none"> Gerrit-Change-Number: 16346 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Mark Petersen <bugs.digium.com@zombie.dk> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>