fix codec

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@113 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2005-12-10 22:37:21 +00:00
1 parent 05ee76b30a
commit 0ad907ea46
3 files changed
+10 -21

No files matched your search

+2 -2
View File
@@ -56,12 +56,12 @@ char *arg = NULL;
return 1;
}
if (arg = strchr(cmd, ' ')) {
if ((arg = strchr(cmd, ' '))) {
*arg++ = '\0';
}
if ((api = loadable_module_get_api_interface(cmd))) {
char retbuf[512] = "";
switch_status status = api->function(arg, retbuf, sizeof(retbuf));
api->function(arg, retbuf, sizeof(retbuf));
switch_console_printf(SWITCH_CHANNEL_CONSOLE_CLEAN, "API CALL [%s(%s)] output:\n%s\n", cmd, arg ? arg : "", retbuf);
return 1;
}