mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-12 21:24:14 +00:00
MODAPP-257
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13005 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
01a65d062d
commit
5585731aeb
@ -290,11 +290,16 @@ static switch_status_t play_and_collect(switch_core_session_t *session, switch_i
|
|||||||
char *ptr;
|
char *ptr;
|
||||||
switch_status_t status = SWITCH_STATUS_FALSE;
|
switch_status_t status = SWITCH_STATUS_FALSE;
|
||||||
switch_input_args_t args = { 0 };
|
switch_input_args_t args = { 0 };
|
||||||
|
switch_channel_t *channel;
|
||||||
|
|
||||||
if (!session || !menu || switch_strlen_zero(sound)) {
|
if (!session || !menu || switch_strlen_zero(sound)) {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((channel = switch_core_session_get_channel(session))) {
|
||||||
|
sound = switch_channel_expand_variables(channel, sound);
|
||||||
|
}
|
||||||
|
|
||||||
memset(menu->buf, 0, menu->inlen + 1);
|
memset(menu->buf, 0, menu->inlen + 1);
|
||||||
menu->ptr = menu->buf;
|
menu->ptr = menu->buf;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user