[Asterisk-code-review] pjproject_bundled: Fixed race condition between session timer and cal... (asterisk[master])

Stanislav Abramenkov asteriskteam at digium.com
Tue Apr 11 06:20:56 CDT 2023


Stanislav Abramenkov has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/20059 )


Change subject: pjproject_bundled: Fixed race condition between session timer and call disconnection
......................................................................

pjproject_bundled: Fixed race condition between session timer and call disconnection

ASTERISK-29466

Change-Id: I77bbb02423e158d886175a5114508efecaf8deb4
---
A third-party/pjproject/patches/0011-Fixed-race-condition-between-session-timer-and-call-disconnection.patch
1 file changed, 35 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/59/20059/1

diff --git a/third-party/pjproject/patches/0011-Fixed-race-condition-between-session-timer-and-call-disconnection.patch b/third-party/pjproject/patches/0011-Fixed-race-condition-between-session-timer-and-call-disconnection.patch
new file mode 100644
index 0000000..aa1140b
--- /dev/null
+++ b/third-party/pjproject/patches/0011-Fixed-race-condition-between-session-timer-and-call-disconnection.patch
@@ -0,0 +1,24 @@
+From 79b4a3d83d8dca2ea8c21e67f7d6c64da3763b78 Mon Sep 17 00:00:00 2001
+From: sauwming <ming at teluu.com>
+Date: Tue, 11 Apr 2023 18:16:52 +0800
+Subject: [PATCH] Fixed race condition between session timer and call
+ disconnection (#3494)
+
+---
+ pjsip/src/pjsip-ua/sip_inv.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/pjsip/src/pjsip-ua/sip_inv.c b/pjsip/src/pjsip-ua/sip_inv.c
+index cd4ee021b..26c61bef8 100644
+--- a/pjsip/src/pjsip-ua/sip_inv.c
++++ b/pjsip/src/pjsip-ua/sip_inv.c
+@@ -3922,6 +3922,9 @@ static void inv_respond_incoming_bye( pjsip_inv_session *inv,
+     status = pjsip_dlg_send_response(inv->dlg, bye_tsx, tdata);
+     if (status != PJ_SUCCESS) return;
+ 
++    /* End Session Timer */
++    pjsip_timer_end_session(inv);
++
+     /* Terminate session: */
+ 
+     if (inv->state != PJSIP_INV_STATE_DISCONNECTED) {

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/20059
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I77bbb02423e158d886175a5114508efecaf8deb4
Gerrit-Change-Number: 20059
Gerrit-PatchSet: 1
Gerrit-Owner: Stanislav Abramenkov <stas.abramenkov at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20230411/48913a2e/attachment-0001.html>


More information about the asterisk-code-review mailing list