add new detailed_calls view a version of the channels table that shows only one legged calls or bridged calls

This commit is contained in:
Anthony Minessale
2011-07-29 13:59:26 -05:00
parent 3dc4b53051
commit beecd937bf
2 changed files with 103 additions and 9 deletions
@@ -4042,6 +4042,11 @@ SWITCH_STANDARD_API(show_function)
if (argv[2] && !strcasecmp(argv[1], "as")) {
as = argv[2];
}
} else if (!strcasecmp(command, "detailed_calls")) {
sprintf(sql, "select * from detailed_calls where hostname='%s' order by created_epoch", hostname);
if (argv[2] && !strcasecmp(argv[1], "as")) {
as = argv[2];
}
} else if (!strcasecmp(command, "aliases")) {
sprintf(sql, "select * from aliases where hostname='%s' order by alias", hostname);
} else if (!strcasecmp(command, "complete")) {