[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:
agree 2022-06-28 02:14:26 -04:00 committed by GitHub
parent 75e858407f
commit 3abdbb4f6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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);