From 1121c2724eb6ffe99a1ac44c5bb5e4e097ac5673 Mon Sep 17 00:00:00 2001 From: Ken Rice Date: Wed, 16 Jan 2008 20:16:37 +0000 Subject: [PATCH] Change limit query to allow for sql wildcard in query you can now do things like this will allow both individual extension limits and realm limits git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7250 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_limit/mod_limit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_limit/mod_limit.c b/src/mod/applications/mod_limit/mod_limit.c index ea7ce73556..d3dc200e60 100644 --- a/src/mod/applications/mod_limit/mod_limit.c +++ b/src/mod/applications/mod_limit/mod_limit.c @@ -616,7 +616,7 @@ SWITCH_STANDARD_APP(limit_function) cbt.buf = buf; cbt.len = sizeof(buf); - sql = switch_mprintf("select count(hostname) from limit_data where realm='%q' and id='%q'", realm, id); + sql = switch_mprintf("select count(hostname) from limit_data where realm='%q' and id like '%q'", realm, id); limit_execute_sql_callback(NULL, sql, sql2str_callback, &cbt); got = atoi(buf);