From 5585731aeb02a1356498c42c39fa8d17315166ee Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Sat, 11 Apr 2009 23:12:26 +0000 Subject: [PATCH] MODAPP-257 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13005 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr_menu.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/switch_ivr_menu.c b/src/switch_ivr_menu.c index d8aaed39e8..50e1a09d79 100644 --- a/src/switch_ivr_menu.c +++ b/src/switch_ivr_menu.c @@ -290,11 +290,16 @@ static switch_status_t play_and_collect(switch_core_session_t *session, switch_i 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;