[Core] Adding fix for switch_ivr_originate to not copy group_confirm variables to the channel

This commit is contained in:
phonecomwire 2020-04-24 15:10:41 -07:00 committed by Andrey Volk
parent 21a536e774
commit 3c5773719e

View File

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