]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Phrases: Allow phrase with no pattern to be processed
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Wed, 23 Jan 2013 03:14:58 +0000 (22:14 -0500)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Wed, 23 Jan 2013 03:14:58 +0000 (22:14 -0500)
src/switch_ivr_play_say.c

index d86daed217c0e7bf99cd2aaa6ece190d926acae4..2b50b4cf5520a363c9ccd8c47076459ebca25a6e 100644 (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];