mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-15 15:54:13 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8581 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
0c60b93f57
commit
d9bdd7db0b
2 files changed
+7
-2
No files matched your search
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user