git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@202 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2005-12-23 16:54:49 +00:00
1 parent 1e8b78dc6b
commit 9e6a90602d
3 files changed
+15 -9

No files matched your search

+7 -1
View File
@@ -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 {