Author: rco
Date: 2010-05-25 16:42:10 +0200 (Tue, 25 May 2010)
New Revision: 1930

Modified:
   trunk/core/AmConfig.cpp
Log:
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]...@=>conference



Modified: trunk/core/AmConfig.cpp
===================================================================
--- trunk/core/AmConfig.cpp     2010-05-25 14:30:06 UTC (rev 1929)
+++ trunk/core/AmConfig.cpp     2010-05-25 14:42:10 UTC (rev 1930)
@@ -360,7 +360,7 @@
        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;

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to