From 3c5773719e1908a5a31102dd1001318225b9e447 Mon Sep 17 00:00:00 2001 From: phonecomwire <62449660+phonecomwire@users.noreply.github.com> Date: Fri, 24 Apr 2020 15:10:41 -0700 Subject: [PATCH] [Core] Adding fix for switch_ivr_originate to not copy group_confirm variables to the channel --- src/switch_ivr_originate.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index 2ae0919519..99370d7e79 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -830,6 +830,12 @@ static uint8_t check_channel_status(originate_global_t *oglobals, uint32_t len, } } else if (switch_channel_test_flag(oglobals->originate_status[i].peer_channel, CF_WINNER)) { + /* unset group_confirm variables */ + switch_channel_set_variable(oglobals->originate_status[i].peer_channel, "group_confirm_key", NULL); + switch_channel_set_variable(oglobals->originate_status[i].peer_channel, "group_confirm_file", NULL); + switch_channel_set_variable(oglobals->originate_status[i].peer_channel, "group_confirm_error_file", NULL); + switch_channel_set_variable(oglobals->originate_status[i].peer_channel, "group_confirm_cancel_timeout", NULL); + switch_channel_set_variable(oglobals->originate_status[i].peer_channel, "group_confirm_read_timeout", NULL); oglobals->idx = i; rval = 0; pindex = (uint32_t) i;