[Freeswitch-svn] [commit] r12908 - freeswitch/trunk/src/mod/applications/mod_commands

FreeSWITCH SVN mrene at freeswitch.org
Fri Apr 3 11:04:53 PDT 2009


Author: mrene
Date: Fri Apr  3 13:04:52 2009
New Revision: 12908

Log:
fix show [interfacetype]

Modified:
   freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c

Modified: freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c	Fri Apr  3 13:04:52 2009
@@ -2589,7 +2589,7 @@
 		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]);



More information about the Freeswitch-svn mailing list