[Freeswitch-trunk] [commit] r13962 - freeswitch/trunk/contrib/jmesquita/mod_khomp

FreeSWITCH SVN raulfragoso at freeswitch.org
Thu Jun 25 11:54:29 PDT 2009


Author: raulfragoso
Date: Thu Jun 25 13:54:28 2009
New Revision: 13962

Log:
removed the (unnecessary) check for the VOICE flag when reading frames

Modified:
   freeswitch/trunk/contrib/jmesquita/mod_khomp/mod_khomp.cpp

Modified: freeswitch/trunk/contrib/jmesquita/mod_khomp/mod_khomp.cpp
==============================================================================
--- freeswitch/trunk/contrib/jmesquita/mod_khomp/mod_khomp.cpp	(original)
+++ freeswitch/trunk/contrib/jmesquita/mod_khomp/mod_khomp.cpp	Thu Jun 25 13:54:28 2009
@@ -364,8 +364,8 @@
 			return SWITCH_STATUS_FALSE;
 		}
 
-		if (switch_test_flag(tech_pvt, TFLAG_IO) && switch_test_flag(tech_pvt, TFLAG_VOICE)) {
-			switch_clear_flag_locked(tech_pvt, TFLAG_VOICE);
+		//if (switch_test_flag(tech_pvt, TFLAG_IO) && switch_test_flag(tech_pvt, TFLAG_VOICE)) {
+		//	switch_clear_flag_locked(tech_pvt, TFLAG_VOICE);
 			if (!tech_pvt->read_frame.datalen) {
 				continue;
 			}
@@ -376,7 +376,7 @@
 			}
 #endif
 			return SWITCH_STATUS_SUCCESS;
-		}
+		//}
 
 		switch_cond_next();
 	}



More information about the Freeswitch-trunk mailing list