[Freeswitch-svn] [commit] r13215 - freeswitch/trunk/src/mod/applications/mod_commands
FreeSWITCH SVN
anthm at freeswitch.org
Fri May 1 05:32:44 PDT 2009
Author: anthm
Date: Fri May 1 07:32:44 2009
New Revision: 13215
Log:
MODAPP-269
Modified:
freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.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 Fri May 1 07:32:44 2009
@@ -2750,11 +2750,11 @@
}
}
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]);
}
More information about the Freeswitch-svn
mailing list