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
sayer/1.4-spce2.6
Raphael Coeffic 16 years ago
parent b48a60d12c
commit a2e840a7b3

@ -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;

Loading…
Cancel
Save