[Freeswitch-svn] [commit] r5291 - in freeswitch/trunk/src: . mod/event_handlers/mod_event_socket
Freeswitch SVN
anthm at freeswitch.org
Fri Jun 8 11:17:44 EDT 2007
Author: anthm
Date: Fri Jun 8 11:17:43 2007
New Revision: 5291
Modified:
freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
freeswitch/trunk/src/switch_event.c
Log:
fix accidental missing event enum name
Modified: freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c (original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c Fri Jun 8 11:17:43 2007
@@ -129,19 +129,24 @@
if (!switch_test_flag(l, LFLAG_EVENTS)) {
continue;
}
-
- if (l->event_list[(uint8_t) SWITCH_EVENT_ALL]) {
+
+ if (l->event_list[SWITCH_EVENT_ALL]) {
send = 1;
- } else if ((l->event_list[(uint8_t) event->event_id])) {
+ } else if ((l->event_list[event->event_id])) {
if (event->event_id != SWITCH_EVENT_CUSTOM || (event->subclass && switch_core_hash_find(l->event_hash, event->subclass->name))) {
send = 1;
}
+ } else {
+ int x;
+ for(x = 0; x <= SWITCH_EVENT_ALL; x++) {
+ printf("%d ", l->event_list[x]);
+ }
}
if (send && switch_test_flag(l, LFLAG_MYEVENTS)) {
char *uuid = switch_event_get_header(event, "unique-id");
if (!uuid || strcmp(uuid, switch_core_session_get_uuid(l->session))) {
- send = 1;
+ send = 0;
}
}
Modified: freeswitch/trunk/src/switch_event.c
==============================================================================
--- freeswitch/trunk/src/switch_event.c (original)
+++ freeswitch/trunk/src/switch_event.c Fri Jun 8 11:17:43 2007
@@ -133,6 +133,7 @@
"CODEC",
"BACKGROUND_JOB",
"DETECTED_SPEECH",
+ "DETECTED_FAX",
"PRIVATE_COMMAND",
"HEARTBEAT",
"TRAP",
More information about the Freeswitch-svn
mailing list