From: Anthony Minessale Date: Thu, 8 Apr 2010 00:09:16 +0000 (-0500) Subject: missed a spot X-Git-Tag: git2svn-syncpoint-master~236^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=536ea60d6022bb20b309354a2be9561fb230dcb7;p=thirdparty%2Ffreeswitch.git missed a spot --- diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 3e37c6930f..c62bcd5d5b 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -3350,7 +3350,7 @@ SWITCH_STANDARD_API(show_function) } } else if (!strcasecmp(command, "distinct_channels")) { sprintf(sql, "select * from channels left join calls on " - "channels.uuid=calls.caller_uuid where channels.hostname='%s' channels.uuid not in (select callee_uuid from calls where hostname='%s') order by created_epoch", hostname, hostname); + "channels.uuid=calls.caller_uuid where channels.hostname='%s' and channels.uuid not in (select callee_uuid from calls where hostname='%s') order by created_epoch", hostname, hostname); if (argv[2] && !strcasecmp(argv[1], "as")) { as = argv[2]; }