[core] switch_ivr_read allow to initialize the channel variable in case there will be no dtmf input

This commit is contained in:
agree 2021-04-15 15:42:01 -04:00 committed by GitHub
parent 7fc5d9a7c3
commit 8b31ffcfd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -2451,10 +2451,6 @@ 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);
if (var_name) {
switch_channel_set_variable(channel, var_name, NULL);
}
if ((min_digits && digit_buffer_length < min_digits) || digit_buffer_length < max_digits) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Buffer too small!\n");
return SWITCH_STATUS_FALSE;