[Asterisk-code-review] pjproject_bundled: Fixed race condition between session timer and cal... (asterisk[18])
Stanislav Abramenkov
asteriskteam at digium.com
Thu Apr 6 03:19:39 CDT 2023
Stanislav Abramenkov has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/20033 )
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.patch
1 file changed, 35 insertions(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/33/20033/1
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
new file mode 100644
index 0000000..70bec12
--- /dev/null
+++ b/third-party/pjproject/patches/0011-Fixed-race-condition-between-session-timer-and-call.patch
@@ -0,0 +1,24 @@
+From 39f7f61c247432a6a436f792135ee0f5713272fe Mon Sep 17 00:00:00 2001
+From: sauwming <ming at teluu.com>
+Date: Thu, 6 Apr 2023 15:44:40 +0800
+Subject: [PATCH] Fixed race condition between session timer and call
+ disconnection
+
+---
+ 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/+/20033
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 18
Gerrit-Change-Id: I77bbb02423e158d886175a5114508efecaf8deb4
Gerrit-Change-Number: 20033
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/20230406/552ce708/attachment.html>
More information about the asterisk-code-review
mailing list