From 8b31ffcfd7f691267646d388dcf3fd0ee5f45884 Mon Sep 17 00:00:00 2001 From: agree <37550360+greenbea@users.noreply.github.com> Date: Thu, 15 Apr 2021 15:42:01 -0400 Subject: [PATCH] [core] switch_ivr_read allow to initialize the channel variable in case there will be no dtmf input --- src/switch_ivr_play_say.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index a8cb5fd4a1..1b3ff2acca 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -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;