]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
PHRASES: Add Recursive phrases support (FSCORE-458)
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Tue, 6 Oct 2009 20:13:50 +0000 (20:13 +0000)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Tue, 6 Oct 2009 20:13:50 +0000 (20:13 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15101 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_play_say.c

index 9089cce8dd6cfec56f7770bb6c23ecd28b3a4e17..8294530b7fef5d3b9607390be318af82eb97f600 100644 (file)
@@ -274,6 +274,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro(switch_core_session_t *s
 
                                        if (!strcasecmp(func, "play-file")) {
                                                status = switch_ivr_play_file(session, NULL, odata, args);
+                                       } else if (!strcasecmp(func, "phrase")) {
+                                               char *name = (char *) switch_xml_attr_soft(action, "phrase");
+                                               status = switch_ivr_phrase_macro(session, name, odata, chan_lang, args);
                                        } else if (!strcasecmp(func, "break")) {
                                                done = 1;
                                                /* must allow the switch_safe_free below to execute or we leak - do not break here */