From 6b1e2b2a83ee8af1b9114144bcfd0cf3a03ed4f9 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 1 May 2009 12:32:44 +0000 Subject: [PATCH] MODAPP-269 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13215 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_commands/mod_commands.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index ff5453ea1d..1e5af21e0b 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -2750,11 +2750,11 @@ SWITCH_STANDARD_API(show_function) } } if (strchr(argv[2], '%')) { - sprintf(sql, "select * from channels where name like '%s' or cid_name like '%s' or cid_num like '%s' order by created_epoch", - argv[2], argv[2], argv[2]); + sprintf(sql, "select * from channels where uuid like '%s' or name like '%s' or cid_name like '%s' or cid_num like '%s' order by created_epoch", + argv[2], argv[2], argv[2], argv[2]); } else { - sprintf(sql, "select * from channels where name like '%%%s%%' or cid_name like '%%%s%%' or cid_num like '%%%s%%' order by created_epoch", - argv[2], argv[2], argv[2]); + sprintf(sql, "select * from channels where uuid like '%%%s%%' or name like '%%%s%%' or cid_name like '%%%s%%' or cid_num like '%%%s%%' order by created_epoch", + argv[2], argv[2], argv[2], argv[2]); }