diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index 43320e8860..a8b1a918ac 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -620,6 +620,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess ok = 1; } else if (!strcasecmp((char *) hi->name, "return_ring_ready")) { ok = 1; + } else if (!strcasecmp((char *) hi->name, "ring_ready")) { + ok = 1; } else if (!strcasecmp((char *) hi->name, "originate_retries")) { ok = 1; } else if (!strcasecmp((char *) hi->name, "originate_timeout")) { @@ -709,6 +711,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess return_ring_ready = 1; } + if ((var_val = switch_event_get_header(var_event, "ring_ready")) && switch_true(var_val)) { + ring_ready = 1; + } + if ((var_val = switch_event_get_header(var_event, "originate_timeout"))) { int tmp = atoi(var_val); if (tmp > 0) {