<p>Kevin Harwell <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/13881">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Joshua Colp: Looks good to me, but someone else must approve
Kevin Harwell: Looks good to me, approved; Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip_refer: ensure refer progress is still sent after Proceeding()<br><br>ASTERISK-28766 #close<br><br>Change-Id: I5ce2210062f9325db762edbf6e46075079bb2cd1<br>---<br>M res/res_pjsip_refer.c<br>1 file changed, 4 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_pjsip_refer.c b/res/res_pjsip_refer.c</span><br><span>index 3c73801..1282d22 100644</span><br><span>--- a/res/res_pjsip_refer.c</span><br><span>+++ b/res/res_pjsip_refer.c</span><br><span>@@ -233,11 +233,12 @@</span><br><span> /* Determine the state of the REFER based on the control frames (or voice frames) passing */</span><br><span> if (f->frametype == AST_FRAME_VOICE && !progress->subclass) {</span><br><span> /* Media is passing without progress, this means the call has been answered */</span><br><span style="color: hsl(120, 100%, 40%);">+ progress->subclass = AST_CONTROL_ANSWER;</span><br><span> notification = refer_progress_notification_alloc(progress, 200, PJSIP_EVSUB_STATE_TERMINATED);</span><br><span> } else if (f->frametype == AST_FRAME_CONTROL) {</span><br><span> /* Based on the control frame being written we can send a NOTIFY advising of the progress */</span><br><span> if ((f->subclass.integer == AST_CONTROL_RING) || (f->subclass.integer == AST_CONTROL_RINGING)) {</span><br><span style="color: hsl(0, 100%, 40%);">- progress->subclass = f->subclass.integer;</span><br><span style="color: hsl(120, 100%, 40%);">+ /* Don't set progress->subclass; an ANSWER can still follow */</span><br><span> notification = refer_progress_notification_alloc(progress, 180, PJSIP_EVSUB_STATE_ACTIVE);</span><br><span> } else if (f->subclass.integer == AST_CONTROL_BUSY) {</span><br><span> progress->subclass = f->subclass.integer;</span><br><span>@@ -246,10 +247,10 @@</span><br><span> progress->subclass = f->subclass.integer;</span><br><span> notification = refer_progress_notification_alloc(progress, 503, PJSIP_EVSUB_STATE_TERMINATED);</span><br><span> } else if (f->subclass.integer == AST_CONTROL_PROGRESS) {</span><br><span style="color: hsl(0, 100%, 40%);">- progress->subclass = f->subclass.integer;</span><br><span style="color: hsl(120, 100%, 40%);">+ /* Don't set progress->subclass; an ANSWER can still follow */</span><br><span> notification = refer_progress_notification_alloc(progress, 183, PJSIP_EVSUB_STATE_ACTIVE);</span><br><span> } else if (f->subclass.integer == AST_CONTROL_PROCEEDING) {</span><br><span style="color: hsl(0, 100%, 40%);">- progress->subclass = f->subclass.integer;</span><br><span style="color: hsl(120, 100%, 40%);">+ /* Don't set progress->subclass; an ANSWER can still follow */</span><br><span> notification = refer_progress_notification_alloc(progress, 100, PJSIP_EVSUB_STATE_ACTIVE);</span><br><span> } else if (f->subclass.integer == AST_CONTROL_ANSWER) {</span><br><span> progress->subclass = f->subclass.integer;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/13881">change 13881</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/+/13881"/><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: I5ce2210062f9325db762edbf6e46075079bb2cd1 </div>
<div style="display:none"> Gerrit-Change-Number: 13881 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: lvl <digium@lvlconsultancy.nl> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>