Phrases: Allow phrase with no pattern to be processed

This commit is contained in:
Marc Olivier Chouinard 2013-01-22 22:14:58 -05:00
parent 67111b0770
commit 0bfddcfd0f

View File

@ -194,6 +194,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro_event(switch_core_sessio
field_expanded = field_expanded_alloc;
}
if (!pattern) {
pattern = ".*";
}
if (pattern) {
switch_regex_t *re = NULL;
int proceed = 0, ovector[100];