[Freeswitch-svn] [commit] r10131 - freeswitch/trunk/src/mod/event_handlers/mod_event_socket

Freeswitch SVN anthm at freeswitch.org
Thu Oct 23 09:04:09 EDT 2008


Author: anthm
Date: Thu Oct 23 09:04:08 2008
New Revision: 10131

Modified:
   freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c

Log:
let any channel get messages

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	Thu Oct 23 09:04:08 2008
@@ -881,13 +881,6 @@
 		}
 
 		if ((session = switch_core_session_locate(uuid))) {
-			if (!switch_channel_test_flag(switch_core_session_get_channel(session), CF_CONTROLLED)) {
-				switch_core_session_rwunlock(session);
-				session = NULL;
-			}
-		}
-
-		if (session) {
 			if ((status = switch_core_session_queue_private_event(session, event)) == SWITCH_STATUS_SUCCESS) {
 				switch_snprintf(reply, reply_len, "+OK");
 			} else {



More information about the Freeswitch-svn mailing list