[Freeswitch-trunk] [commit] r6374 - freeswitch/trunk/src/mod/applications/mod_conference

Freeswitch SVN mikej at freeswitch.org
Thu Nov 22 01:56:02 EST 2007


Author: mikej
Date: Thu Nov 22 01:56:02 2007
New Revision: 6374

Modified:
   freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c

Log:
fix for MODENDP-31, send stop-talking events after CNG packets as well as silent frames.

Modified: freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c	Thu Nov 22 01:56:02 2007
@@ -1356,6 +1356,22 @@
 		}
 
 		if (switch_test_flag(read_frame, SFF_CNG)) {
+			if (hangunder_hits) {
+				hangunder_hits--;
+			}
+			if (talking) {
+				switch_event_t *event;
+				if (++hangover_hits >= hangover) {
+					hangover_hits = hangunder_hits = 0;
+					talking = 0;
+
+					if (switch_event_create_subclass(&event, SWITCH_EVENT_CUSTOM, CONF_EVENT_MAINT) == SWITCH_STATUS_SUCCESS) {
+						conference_add_event_member_data(member, event);
+						switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Action", "stop-talking");
+						switch_event_fire(&event);
+					}
+				}
+			}
 			continue;
 		}
 



More information about the Freeswitch-trunk mailing list