[Freeswitch-svn] [commit] r12296 -	freeswitch/trunk/src/mod/applications/mod_commands
    FreeSWITCH SVN 
    mrene at freeswitch.org
       
    Thu Feb 26 09:08:41 PST 2009
    
    
  
Author: mrene
Date: Thu Feb 26 11:08:41 2009
New Revision: 12296
Log:
Add show api [name] and show application [name]
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	Thu Feb 26 11:08:41 2009
@@ -2598,7 +2598,11 @@
 	} else if (!strcasecmp(command, "tasks")) {
 		sprintf(sql, "select * from %s", command);
 	} else if (!strcasecmp(command, "application") || !strcasecmp(command, "api")) {
-		sprintf(sql, "select name, description, syntax from interfaces where type = '%s' and description != '' order by type,name", command);
+		if (argv[1]) {
+			sprintf(sql, "select name, description, syntax from interfaces where type = '%s' and description != '' and name = '%s' order by type,name", command, argv[1]);
+		} else {
+			sprintf(sql, "select name, description, syntax from interfaces where type = '%s' and description != '' order by type,name", command);
+		}
 	} else if (!strcasecmp(command, "calls")) {
 		sprintf(sql, "select * from calls order by created_epoch");
 		if (argv[1] && !strcasecmp(argv[1],"count")) {
    
    
More information about the Freeswitch-svn
mailing list