[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.
This commit is contained in:
agree 2023-09-23 23:51:38 -04:00 committed by GitHub
parent 792eee44d0
commit 759cd5ea35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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) {