From: Mark Spencer Date: Tue, 21 Dec 2004 01:39:49 +0000 (+0000) Subject: Fix Realtime to work with MySQL and Postgres both (bug #3029) X-Git-Tag: 1.2.0-beta1~1612 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a519477534ec520878f6aa00a58dd0fea3d2dd07;p=thirdparty%2Fasterisk.git Fix Realtime to work with MySQL and Postgres both (bug #3029) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4510 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/pbx/pbx_realtime.c b/pbx/pbx_realtime.c index 39c2845d5a..52931eea7a 100755 --- a/pbx/pbx_realtime.c +++ b/pbx/pbx_realtime.c @@ -114,7 +114,7 @@ static struct ast_variable *realtime_switch_common(const char *table, const char } var = ast_load_realtime(table, ematch, rexten, "context", context, "priority", pri, NULL); if (!var) { - cfg = ast_load_realtime_multientry(table, "exten RLIKE", "_.*", "context", context, "priority", pri, NULL); + cfg = ast_load_realtime_multientry(table, "exten LIKE", "\\_%", "context", context, "priority", pri, NULL); if (cfg) { cat = cfg->root; while(cat) {