[core] reset SWITCH_READ_TERMINATOR_USED_VARIABLE
The variable might be set from previous times that switch_ivr_read was terminated
This commit is contained in:
parent
75e858407f
commit
3abdbb4f6d
|
@ -2542,6 +2542,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_read(switch_core_session_t *session,
|
|||
|
||||
channel = switch_core_session_get_channel(session);
|
||||
switch_channel_set_variable(channel, SWITCH_READ_RESULT_VARIABLE, NULL);
|
||||
switch_channel_set_variable(channel, SWITCH_READ_TERMINATOR_USED_VARIABLE, NULL);
|
||||
|
||||
if (var_name) {
|
||||
switch_channel_set_variable(channel, var_name, NULL);
|
||||
|
|
Loading…
Reference in New Issue