[Freeswitch-svn] [commit] r3796 - in freeswitch/trunk/src/mod: applications/mod_conference event_handlers/mod_event_socket
Freeswitch SVN
mikej at freeswitch.org
Fri Dec 22 13:39:38 EST 2006
Author: mikej
Date: Fri Dec 22 13:39:36 2006
New Revision: 3796
Modified:
freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c
freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
Log:
api commands should not return false unless there is a fatal error warnings about no such command etc still considered sucess cos it has io
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 Fri Dec 22 13:39:36 2006
@@ -3153,7 +3153,7 @@
}
if (argc >= 2) {
- status = conf_api_dispatch(conference, stream, argc, argv, (const char *)buf, 1);
+ conf_api_dispatch(conference, stream, argc, argv, (const char *)buf, 1);
} else {
stream->write_function(stream, "Conference command, not specified.\nTry 'help'\n");
}
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 Dec 22 13:39:36 2006
@@ -415,7 +415,9 @@
if (stream.data) {
if (switch_api_execute(acs->api_cmd, acs->arg, NULL, &stream) == SWITCH_STATUS_SUCCESS) {
-
+ if (!stream.data) {
+ stream.write_function(&stream, "Command returned no output!\n");
+ }
if (acs->bg) {
switch_event_t *event;
More information about the Freeswitch-svn
mailing list