[Asterisk-code-review] res_pjsip_session: Added channel hangup check (asterisk[master])

Joshua Colp asteriskteam at digium.com
Mon Feb 17 08:33:10 CST 2020


Joshua Colp has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/13806 )

Change subject: res_pjsip_session: Added channel hangup check
......................................................................


Patch Set 2: Code-Review-1

(1 comment)

https://gerrit.asterisk.org/c/asterisk/+/13806/2/res/res_pjsip_session.c 
File res/res_pjsip_session.c:

https://gerrit.asterisk.org/c/asterisk/+/13806/2/res/res_pjsip_session.c@1572 
PS2, Line 1572: 	if (ast_check_hangup(session->channel) || (media_state && (!media_state->topology || !generate_new_sdp))) {
Would this not still have a race condition whereby the channel is marked as hung up after this check occurs?

I think this needs more explanation of the precise threading that is going on with what is happening when to be able to determine if this is the correct solution or not.



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

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: Ifa864e0e125b1a7ed2f3abd4164187e1dddc56da
Gerrit-Change-Number: 13806
Gerrit-PatchSet: 2
Gerrit-Owner: sungtae kim <pchero21 at gmail.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Comment-Date: Mon, 17 Feb 2020 14:33:10 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200217/9046a932/attachment.html>


More information about the asterisk-code-review mailing list