提交 47343dcb authored 作者: Michael Jerris's avatar Michael Jerris

api commands should not return false unless there is a fatal error warnings…

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

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3796 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 9bf1884d
......@@ -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");
}
......
......@@ -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;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论