]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix show [interfacetype]
authorMathieu Rene <mrene@avgs.ca>
Fri, 3 Apr 2009 18:04:52 +0000 (18:04 +0000)
committerMathieu Rene <mrene@avgs.ca>
Fri, 3 Apr 2009 18:04:52 +0000 (18:04 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12908 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_commands/mod_commands.c

index d1314b9d07d4602650c20ed1431cc604f54b5f0f..4bfbe34b2d35a243c66ffc44d81f6dddc17a662e 100644 (file)
@@ -2589,7 +2589,7 @@ SWITCH_STANDARD_API(show_function)
                if (end_of(command) == 's') {
                        end_of(command) = '\0';
                }
-               sprintf(sql, "select type, name, key from interfaces where name = '%s' order by type,name", command);
+               sprintf(sql, "select type, name, key from interfaces where key = '%s' order by type,name", command);
        } else if (!strncasecmp(command, "module", 6)) {
                if (argv[1]) {
                        sprintf(sql, "select distinct type, name, key, filename from interfaces where key = '%s' order by type,name", argv[1]);