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 e852ef6411
commit 66bfd299f5
1 changed files with 10 additions and 1 deletions

View File

@ -2060,7 +2060,16 @@ 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;
const char *cdr_total_var;