From c01e6fe6eeaee8ae23a882a79dbc03cdc418b800 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 23 Sep 2008 19:01:22 +0000 Subject: [PATCH] add var to assume ring_ready git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9625 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr_originate.c | 6 ++++++ 1 file changed, 6 insertions(+) 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) {