FS-5346 --resolve use new originate_delay_start=<ms> to get this

This commit is contained in:
Anthony Minessale 2013-04-24 15:07:45 -05:00
parent 1627fb1a59
commit 032761c0f5
1 changed files with 10 additions and 1 deletions

View File

@ -2060,6 +2060,15 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
goto done;
}
if (var_event && (var = switch_event_get_header(var_event, "originate_delay_start"))) {
int tmp = atoi(var);
if (tmp > 0) {
while (tmp && (!cancel_cause || *cancel_cause == 0)) {
switch_cond_next();
tmp--;
}
}
}
if (oglobals.session) {
switch_event_header_t *hi;