mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-26 05:04:14 +00:00
fix codec
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@113 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
05ee76b30a
commit
0ad907ea46
3 files changed
+10
-21
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user