[commit] r7944 - freeswitch/trunk/src/mod/applications/mod_enum
Author: mikej Date: Wed Mar 19 23:36:30 2008 New Revision: 7944 Modified: freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c Log: return mistakenly removed code. Modified: freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c ============================================================================== --- freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c (original) +++ freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c Wed Mar 19 23:36:30 2008 @@ -285,6 +285,7 @@ char *service = NULL; char *regex = NULL; char *replace = NULL; + char *ptr; int argc = 0; char *argv[4] = { 0 }; int n; @@ -333,6 +334,12 @@ goto xperr; } + for (ptr = replace; ptr && *ptr; ptr++) { + if (*ptr == '\\') { + *ptr = '$'; + } + } + if (flags && service && regex && replace) { switch_regex_t *re = NULL; int proceed = 0, ovector[30];
participants (1)
-
Freeswitch SVN