[Freeswitch-trunk] [commit] r12763 - in freeswitch/trunk/src/mod: applications/mod_commands event_handlers/mod_event_socket

FreeSWITCH SVN anthm at freeswitch.org
Tue Mar 24 15:22:05 PDT 2009


Author: anthm
Date: Tue Mar 24 17:22:05 2009
New Revision: 12763

Log:
fix typo

Modified:
   freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c
   freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.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	Tue Mar 24 17:22:05 2009
@@ -2598,7 +2598,7 @@
 	} else if (!strcasecmp(command, "tasks")) {
 		sprintf(sql, "select * from %s", command);
 	} else if (!strcasecmp(command, "application") || !strcasecmp(command, "api")) {
-		if (argv[1]) {
+		if (argv[1] && strcasecmp(argv[1], "as")) {
 			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);
@@ -2628,7 +2628,7 @@
 
 		help = 1;
 		holder.print_title = 0;
-		if ((cmdname = strchr(command, ' ')) != 0) {
+		if ((cmdname = strchr(command, ' ')) && strcasecmp(cmdname, "as")) {
 			*cmdname++ = '\0';
 			switch_snprintf(sql, sizeof(sql) - 1, "select name, syntax, description from interfaces where type = 'api' and name = '%s' order by name",
 							cmdname);

Modified: freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c	(original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c	Tue Mar 24 17:22:05 2009
@@ -1593,7 +1593,7 @@
 				strip_cr(uuid);
 			}
 		}
-
+		
 		if (switch_strlen_zero(uuid)) {
 			uuid = switch_event_get_header(*event, "session-id");
 		}



More information about the Freeswitch-trunk mailing list