<p>Stanislav Abramenkov has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/20033">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pjproject_bundled: Fixed race condition between session timer and call disconnection<br><br>ASTERISK-29466<br><br>Change-Id: I77bbb02423e158d886175a5114508efecaf8deb4<br>---<br>A third-party/pjproject/patches/0011-Fixed-race-condition-between-session-timer-and-call.patch<br>1 file changed, 35 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/33/20033/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/third-party/pjproject/patches/0011-Fixed-race-condition-between-session-timer-and-call.patch b/third-party/pjproject/patches/0011-Fixed-race-condition-between-session-timer-and-call.patch</span><br><span>new file mode 100644</span><br><span>index 0000000..70bec12</span><br><span>--- /dev/null</span><br><span>+++ b/third-party/pjproject/patches/0011-Fixed-race-condition-between-session-timer-and-call.patch</span><br><span>@@ -0,0 +1,24 @@</span><br><span style="color: hsl(120, 100%, 40%);">+From 39f7f61c247432a6a436f792135ee0f5713272fe Mon Sep 17 00:00:00 2001</span><br><span style="color: hsl(120, 100%, 40%);">+From: sauwming <ming@teluu.com></span><br><span style="color: hsl(120, 100%, 40%);">+Date: Thu, 6 Apr 2023 15:44:40 +0800</span><br><span style="color: hsl(120, 100%, 40%);">+Subject: [PATCH] Fixed race condition between session timer and call</span><br><span style="color: hsl(120, 100%, 40%);">+ disconnection</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+---</span><br><span style="color: hsl(120, 100%, 40%);">+ pjsip/src/pjsip-ua/sip_inv.c | 3 +++</span><br><span style="color: hsl(120, 100%, 40%);">+ 1 file changed, 3 insertions(+)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+diff --git a/pjsip/src/pjsip-ua/sip_inv.c b/pjsip/src/pjsip-ua/sip_inv.c</span><br><span style="color: hsl(120, 100%, 40%);">+index cd4ee021b..26c61bef8 100644</span><br><span style="color: hsl(120, 100%, 40%);">+--- a/pjsip/src/pjsip-ua/sip_inv.c</span><br><span>++++ b/pjsip/src/pjsip-ua/sip_inv.c</span><br><span style="color: hsl(120, 100%, 40%);">+@@ -3922,6 +3922,9 @@ static void inv_respond_incoming_bye( pjsip_inv_session *inv,</span><br><span style="color: hsl(120, 100%, 40%);">+ status = pjsip_dlg_send_response(inv->dlg, bye_tsx, tdata);</span><br><span style="color: hsl(120, 100%, 40%);">+ if (status != PJ_SUCCESS) return;</span><br><span style="color: hsl(120, 100%, 40%);">+ </span><br><span style="color: hsl(120, 100%, 40%);">++ /* End Session Timer */</span><br><span style="color: hsl(120, 100%, 40%);">++ pjsip_timer_end_session(inv);</span><br><span style="color: hsl(120, 100%, 40%);">++</span><br><span style="color: hsl(120, 100%, 40%);">+ /* Terminate session: */</span><br><span style="color: hsl(120, 100%, 40%);">+ </span><br><span style="color: hsl(120, 100%, 40%);">+ if (inv->state != PJSIP_INV_STATE_DISCONNECTED) {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/20033">change 20033</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/+/20033"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 18 </div>
<div style="display:none"> Gerrit-Change-Id: I77bbb02423e158d886175a5114508efecaf8deb4 </div>
<div style="display:none"> Gerrit-Change-Number: 20033 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Stanislav Abramenkov <stas.abramenkov@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>