From 759cd5ea35c5f6a788ec121e7926eaa468574279 Mon Sep 17 00:00:00 2001 From: agree <37550360+greenbea@users.noreply.github.com> Date: Sat, 23 Sep 2023 23:51:38 -0400 Subject: [PATCH] [core] Fix bug on originate_delay_start delays more than once When `switch_ivr_originate` is called with endpoints as the user endpoint that also calls `switch_ivr_originate`, freeswitch will wait for the `originate_delay_start` duration every time `switch_ivr_originate` is called. --- src/switch_ivr_originate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index 0b06d6029c..37c2a932ab 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -2330,6 +2330,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess tmp--; } } + + switch_event_del_header(var_event, "originate_delay_start"); } if (oglobals.session) {