]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
missed a spot
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 8 Apr 2010 00:09:16 +0000 (19:09 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 8 Apr 2010 00:09:16 +0000 (19:09 -0500)
src/mod/applications/mod_commands/mod_commands.c

index 3e37c6930f3d0ff3480f16232a909e6c846d87dc..c62bcd5d5b7875b49c8eff5086ca5416da4b35e3 100644 (file)
@@ -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];
                }