[Freeswitch-svn] [commit] r2780 - freeswitch/trunk/src/mod/event_handlers/mod_event_socket
Freeswitch SVN
anthm at freeswitch.org
Fri Sep 22 09:52:36 EDT 2006
Author: anthm
Date: Fri Sep 22 09:52:36 2006
New Revision: 2780
Modified:
freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
Log:
add sendevent command to event_socket
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 Sep 22 09:52:36 2006
@@ -486,8 +486,13 @@
goto done;
}
-
- if (!strncasecmp(cmd, "sendmsg", 7)) {
+
+
+ if (!strncasecmp(cmd, "sendevent", 9)) {
+ switch_event_fire(&event);
+ snprintf(reply, reply_len, "+OK");
+ goto done;
+ } else if (!strncasecmp(cmd, "sendmsg", 7)) {
switch_core_session_t *session;
char *uuid = cmd + 8;
More information about the Freeswitch-svn
mailing list