提交 afd6c9f4 authored 作者: Mathieu Rene's avatar Mathieu Rene

Add show api [name] and show application [name]

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12296 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 9c17221b
...@@ -2598,7 +2598,11 @@ SWITCH_STANDARD_API(show_function) ...@@ -2598,7 +2598,11 @@ SWITCH_STANDARD_API(show_function)
} else if (!strcasecmp(command, "tasks")) { } else if (!strcasecmp(command, "tasks")) {
sprintf(sql, "select * from %s", command); sprintf(sql, "select * from %s", command);
} else if (!strcasecmp(command, "application") || !strcasecmp(command, "api")) { } else if (!strcasecmp(command, "application") || !strcasecmp(command, "api")) {
if (argv[1]) {
sprintf(sql, "select name, description, syntax from interfaces where type = '%s' and description != '' and name = '%s' order by type,name", command, argv[1]);
} else {
sprintf(sql, "select name, description, syntax from interfaces where type = '%s' and description != '' order by type,name", command); sprintf(sql, "select name, description, syntax from interfaces where type = '%s' and description != '' order by type,name", command);
}
} else if (!strcasecmp(command, "calls")) { } else if (!strcasecmp(command, "calls")) {
sprintf(sql, "select * from calls order by created_epoch"); sprintf(sql, "select * from calls order by created_epoch");
if (argv[1] && !strcasecmp(argv[1],"count")) { if (argv[1] && !strcasecmp(argv[1],"count")) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论