[Freeswitch-svn] [commit] r13005 - freeswitch/trunk/src

FreeSWITCH SVN mrene at freeswitch.org
Sat Apr 11 16:12:26 PDT 2009


Author: mrene
Date: Sat Apr 11 18:12:26 2009
New Revision: 13005

Log:
MODAPP-257

Modified:
   freeswitch/trunk/src/switch_ivr_menu.c

Modified: freeswitch/trunk/src/switch_ivr_menu.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_menu.c	(original)
+++ freeswitch/trunk/src/switch_ivr_menu.c	Sat Apr 11 18:12:26 2009
@@ -290,11 +290,16 @@
 	char *ptr;
 	switch_status_t status = SWITCH_STATUS_FALSE;
 	switch_input_args_t args = { 0 };
+	switch_channel_t *channel;
 
 	if (!session || !menu || switch_strlen_zero(sound)) {
 		return status;
 	}
 
+	if ((channel = switch_core_session_get_channel(session))) {
+		sound = switch_channel_expand_variables(channel, sound);
+	}
+
 	memset(menu->buf, 0, menu->inlen + 1);
 	menu->ptr = menu->buf;
 



More information about the Freeswitch-svn mailing list