]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix mod_erlang_event
authorAndrey Volk <andywolk@gmail.com>
Sat, 12 Jul 2025 10:36:45 +0000 (13:36 +0300)
committerAndrey Volk <andywolk@gmail.com>
Sat, 12 Jul 2025 10:36:45 +0000 (13:36 +0300)
src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c

index bd7bf8e26c0354f6c4d2888dfc9d727c9c9d2782..f163b2197f09f24a969bbbc315516808d93c407c 100644 (file)
@@ -249,10 +249,7 @@ static void event_handler(switch_event_t *event)
                                                }
 
                                                if (*hp->value == '/') {
-                                                       switch_regex_t *re = NULL;
-                                                       int ovector[30];
-                                                       cmp = !!switch_regex_perform(hval, comp_to, &re, ovector, sizeof(ovector) / sizeof(ovector[0]));
-                                                       switch_regex_safe_free(re);
+                                                       cmp = !!switch_regex(hval, comp_to);
                                                } else {
                                                        cmp = !strcasecmp(hval, comp_to);
                                                }