]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
api commands should not return false unless there is a fatal error warnings about...
authorMichael Jerris <mike@jerris.com>
Fri, 22 Dec 2006 18:39:36 +0000 (18:39 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 22 Dec 2006 18:39:36 +0000 (18:39 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3796 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_conference/mod_conference.c
src/mod/event_handlers/mod_event_socket/mod_event_socket.c

index 0c007a1679bfcd0fe108324be6ed4d1bd5b37ccf..e200179be356f0fea9507c1e30635ff375fb5521 100644 (file)
@@ -3153,7 +3153,7 @@ static switch_status_t conf_api_main(char *buf, switch_core_session_t *session,
             }
 
             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");
             }
index 550b45cf2831cdd52a06f2a35ee362415abf5211..02b661103f7b2266efc692effddc8c0dc9c41008 100644 (file)
@@ -415,7 +415,9 @@ static void *SWITCH_THREAD_FUNC api_exec(switch_thread_t *thread, void *obj)
 
        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;