Revision
15101
Author
mochouinard
Date
2009-10-06 15:13:50 -0500 (Tue, 06 Oct 2009)

Log Message

PHRASES: Add Recursive phrases support (FSCORE-458)

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_ivr_play_say.c (15100 => 15101)


--- freeswitch/trunk/src/switch_ivr_play_say.c	2009-10-06 15:47:12 UTC (rev 15100)
+++ freeswitch/trunk/src/switch_ivr_play_say.c	2009-10-06 20:13:50 UTC (rev 15101)
@@ -274,6 +274,9 @@
 
 					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 */