git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8581 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-05-24 05:09:50 +00:00
parent 0c60b93f57
commit d9bdd7db0b
2 changed files with 7 additions and 2 deletions
+4 -1
View File
@@ -1354,8 +1354,11 @@ SWITCH_DECLARE(switch_status_t) switch_api_execute(const char *cmd, const char *
}
}
if (cmd && (api = switch_loadable_module_get_api_interface(cmd)) != 0) {
status = api->function(arg, session, stream);
if ((status = api->function(arg, session, stream)) != SWITCH_STATUS_SUCCESS) {
stream->write_function(stream, "COMMAND RETURNED ERROR!\n");
}
} else {
status = SWITCH_STATUS_FALSE;
stream->write_function(stream, "INVALID COMMAND!\n");