mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-15 05:08:26 +00:00
fix show module as json
This commit is contained in:
parent
c1f2c530a1
commit
2d7d64e855
@ -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);
|
||||
} 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",
|
||||
hostname, argv[1]);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user