From: Anthony Minessale Date: Tue, 24 Mar 2009 22:22:05 +0000 (+0000) Subject: fix typo X-Git-Tag: v1.0.4~1389 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50faa8bcd9dbf21a3b0bae14ba073acddca863cf;p=thirdparty%2Ffreeswitch.git fix typo git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12763 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 94ad9639d3..fceeb165a8 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -2598,7 +2598,7 @@ SWITCH_STANDARD_API(show_function) } 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 @@ SWITCH_STANDARD_API(show_function) 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); diff --git a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c index d7ecbd39aa..40c5abfb15 100644 --- a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c +++ b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c @@ -1593,7 +1593,7 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t **even strip_cr(uuid); } } - + if (switch_strlen_zero(uuid)) { uuid = switch_event_get_header(*event, "session-id"); }