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

sungtae kim asteriskteam at digium.com
Fri Feb 14 02:54:18 CST 2020


sungtae kim has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/13806 )


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

Added channel hangup check

Change-Id: Ifa864e0e125b1a7ed2f3abd4164187e1dddc56da
---
M res/res_pjsip_session.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/06/13806/1

diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c
index 76740c1..0ab3b5d 100644
--- a/res/res_pjsip_session.c
+++ b/res/res_pjsip_session.c
@@ -1569,7 +1569,7 @@
 	pjmedia_sdp_session *new_sdp = NULL;
 	pjsip_tx_data *tdata;
 
-	if (media_state && (!media_state->topology || !generate_new_sdp)) {
+	if (ast_check_hangup(session->channel) || (media_state && (!media_state->topology || !generate_new_sdp))) {
 		ast_sip_session_media_state_free(media_state);
 		return -1;
 	}

-- 
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: 1
Gerrit-Owner: sungtae kim <pchero21 at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200214/da12da58/attachment.html>


More information about the asterisk-code-review mailing list