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

Freeswitch SVN anthm at freeswitch.org
Thu Sep 7 23:28:49 EDT 2006


Author: anthm
Date: Thu Sep  7 23:28:49 2006
New Revision: 2570

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

Log:
wild guess

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Thu Sep  7 23:28:49 2006
@@ -550,7 +550,11 @@
 
 	if (tech_pvt->nh) {
 		if (!switch_test_flag(tech_pvt, TFLAG_BYE)) {
-			nua_bye(tech_pvt->nh, TAG_END());
+			if (switch_test_flag(tech_pvt, TFLAG_ANS)) {
+				nua_bye(tech_pvt->nh, TAG_END());
+			} else {
+				nua_cancel(tech_pvt->nh, TAG_END());
+			}
 		}
 		nua_handle_bind(tech_pvt->nh, NULL);
 		nua_handle_destroy(tech_pvt->nh);



More information about the Freeswitch-svn mailing list