mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-08 00:33:20 +00:00
fix show module as json
This commit is contained in:
parent
4e7801905b
commit
03892b5556
@ -4598,7 +4598,7 @@ SWITCH_STANDARD_API(show_function)
|
|||||||
}
|
}
|
||||||
sprintf(sql, "select type, name, ikey from interfaces where hostname='%s' and type = '%s' order by type,name", hostname, command);
|
sprintf(sql, "select type, name, ikey from interfaces where hostname='%s' and type = '%s' order by type,name", hostname, command);
|
||||||
} else if (!strncasecmp(command, "module", 6)) {
|
} else if (!strncasecmp(command, "module", 6)) {
|
||||||
if (argv[1]) {
|
if (argv[1] && strcasecmp(argv[1], "as")) {
|
||||||
sprintf(sql, "select distinct type, name, ikey, filename from interfaces where hostname='%s' and ikey = '%s' order by type,name",
|
sprintf(sql, "select distinct type, name, ikey, filename from interfaces where hostname='%s' and ikey = '%s' order by type,name",
|
||||||
hostname, argv[1]);
|
hostname, argv[1]);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user