[Freeswitch-svn] [commit] r8722 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN anthm at freeswitch.org
Thu May 29 15:05:49 EDT 2008


Author: anthm
Date: Thu May 29 15:05:48 2008
New Revision: 8722

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c

Log:
hangup properly on malformed 3pcc calls being bastardized into a way to ping

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	Thu May 29 15:05:48 2008
@@ -2056,7 +2056,9 @@
 		break;
 	case nua_callstate_terminating:
 		if (session) {
-			if (!switch_test_flag(tech_pvt, TFLAG_BYE)) {
+			if (status == 488 || switch_channel_get_state(channel) == CS_HIBERNATE) {
+				tech_pvt->q850_cause = SWITCH_CAUSE_MANDATORY_IE_MISSING;
+			} else if (!switch_test_flag(tech_pvt, TFLAG_BYE)) {
 				switch_set_flag_locked(tech_pvt, TFLAG_BYE);
 			}
 		}



More information about the Freeswitch-svn mailing list