]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODAPP-257
authorMathieu Rene <mrene@avgs.ca>
Sat, 11 Apr 2009 23:12:26 +0000 (23:12 +0000)
committerMathieu Rene <mrene@avgs.ca>
Sat, 11 Apr 2009 23:12:26 +0000 (23:12 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13005 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_menu.c

index d8aaed39e84997baf7919ddb5b81e3d1f9704696..50e1a09d79b270502799b400f9a0477940cecfee 100644 (file)
@@ -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;