From a2e840a7b3b7a74c0bd65b3ccba31ff1154e1c15 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Tue, 25 May 2010 14:42:10 +0000 Subject: [PATCH] Changes the regular expression type from basic to extended to allow for more fancy expressions like: ^sip:(999)|(echo)@=>echo ^sip:(100)|(conf)[0-9]{4}@=>conference git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1930 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/AmConfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/AmConfig.cpp b/core/AmConfig.cpp index 1e91a161..8c0e4aa6 100644 --- a/core/AmConfig.cpp +++ b/core/AmConfig.cpp @@ -360,7 +360,7 @@ int AmConfig::readConfiguration() return -1; } regex_t app_re; - if (regcomp(&app_re, re_v[0].c_str(), REG_NOSUB)) { + if (regcomp(&app_re, re_v[0].c_str(), REG_EXTENDED | REG_NOSUB)) { ERROR("compiling regex '%s' in %s.\n", re_v[0].c_str(), appcfg_fname.c_str()); return -1;