int proceed = 0, ovector[30];
char substituted[1024] = "";
char *odata = NULL;
+ char *expanded = NULL;
if ((proceed = switch_perform_regex(data, pattern, &re, ovector, sizeof(ovector) / sizeof(ovector[0])))) {
for (action = switch_xml_child(input, "action"); action; action = action->next) {
} else {
odata = adata;
}
+
+ expanded = switch_channel_expand_variables(channel, odata);
+ if (expanded == odata) {
+ expanded = NULL;
+ } else {
+ odata = expanded;
+ }
+
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Handle %s:[%s] (%s)\n", func, odata, lang);
if (!strcasecmp(func, "play-file")) {
}
switch_clean_re(re);
+ switch_safe_free(expanded);
}
input = input->next;