[Asterisk-code-review] channels/chan pjsip: fix deadlock in response retransmissions (asterisk[13])

Torrey Searle asteriskteam at digium.com
Wed Jul 25 09:52:17 CDT 2018


Torrey Searle has posted comments on this change. ( https://gerrit.asterisk.org/9477 )

Change subject: channels/chan_pjsip: fix deadlock in response retransmissions
......................................................................


Patch Set 8:

> The timer must be stopped before the call to pjsip_inv_answer as
 > pjsip_inv_answer is what is modifying the tdata (and thus causing
 > the re transmission timer to get in an infinite loop)

To be more precise pjsip_inv_answer calls pjsip_dlg_modify_response on the inv->last_answer which is the same tdata object as the tsx->last_tx being used by the re-transmission timer.  so pjsip_inv_answer can not be called safely while any re-transmission timer is active


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

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic381004a3a212fe1d8eca0e707fe09dba4a6ab4e
Gerrit-Change-Number: 9477
Gerrit-PatchSet: 8
Gerrit-Owner: Torrey Searle <tsearle at gmail.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Torrey Searle <tsearle at gmail.com>
Gerrit-Comment-Date: Wed, 25 Jul 2018 14:52:17 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180725/3d694a8a/attachment-0001.html>


More information about the asterisk-code-review mailing list