mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-08 20:43:51 +00:00
windows
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@202 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
1e8b78dc6b
commit
9e6a90602d
3 files changed
+15
-9
No files matched your search
@@ -66,7 +66,13 @@ char *arg = NULL;
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
if ((arg = strchr(cmd, '\r')) || (arg=strchr(cmd, '\n'))) {
|
||||
*arg = '\0';
|
||||
arg = NULL;
|
||||
}
|
||||
if ((arg = strchr(cmd, ' '))) {
|
||||
*arg++ = '\0';
|
||||
}
|
||||
if (switch_api_execute(cmd, arg, retbuf, sizeof(retbuf)) == SWITCH_STATUS_SUCCESS) {
|
||||
switch_console_printf(SWITCH_CHANNEL_CONSOLE_CLEAN, "API CALL [%s(%s)] output:\n%s\n", cmd, arg ? arg : "", retbuf);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user