MODAPP-257

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13005 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Mathieu Rene 2009-04-11 23:12:26 +00:00
parent 01a65d062d
commit 5585731aeb
1 changed files with 5 additions and 0 deletions

View 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;