add sendevent command to event_socket
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2780 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
d08bf6cf00
commit
464eada653
|
@ -486,8 +486,13 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t *event
|
|||
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue