FS-2827
This commit is contained in:
parent
10119e9e88
commit
5875905285
|
@ -1363,7 +1363,7 @@ static void *SWITCH_THREAD_FUNC api_exec(switch_thread_t *thread, void *obj)
|
||||||
|
|
||||||
if (acs->console_execute) {
|
if (acs->console_execute) {
|
||||||
if ((status = switch_console_execute(acs->api_cmd, 0, &stream)) != SWITCH_STATUS_SUCCESS) {
|
if ((status = switch_console_execute(acs->api_cmd, 0, &stream)) != SWITCH_STATUS_SUCCESS) {
|
||||||
stream.write_function(&stream, "%s: Command not found!\n", acs->api_cmd);
|
stream.write_function(&stream, "-ERR %s Command not found!\n", acs->api_cmd);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
status = switch_api_execute(acs->api_cmd, acs->arg, NULL, &stream);
|
status = switch_api_execute(acs->api_cmd, acs->arg, NULL, &stream);
|
||||||
|
@ -1372,7 +1372,7 @@ static void *SWITCH_THREAD_FUNC api_exec(switch_thread_t *thread, void *obj)
|
||||||
if (status == SWITCH_STATUS_SUCCESS) {
|
if (status == SWITCH_STATUS_SUCCESS) {
|
||||||
reply = stream.data;
|
reply = stream.data;
|
||||||
} else {
|
} else {
|
||||||
freply = switch_mprintf("%s: Command not found!\n", acs->api_cmd);
|
freply = switch_mprintf("-ERR %s Command not found!\n", acs->api_cmd);
|
||||||
reply = freply;
|
reply = freply;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue