From 29d762924cfa384e985694260dae745855d5eb2e Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 19 Jan 2009 23:30:41 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11297 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr_originate.c | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index 7eb92a46aa..092b96c327 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -252,6 +252,15 @@ static switch_bool_t monitor_callback(switch_core_session_t *session, const char if (oglobals) { switch_channel_set_private(channel, "_oglobals_", NULL); + + if (!oglobals->progress) { + oglobals->progress = 1; + } + + if (!oglobals->ring_ready) { + oglobals->ring_ready = 1; + } + oglobals->early_ok = 1; } } @@ -409,12 +418,15 @@ static uint8_t check_channel_status(originate_global_t *oglobals, originate_stat } } - if (!oglobals->progress) { - oglobals->progress = 1; - } + if (!oglobals->monitor_early_media_ring) { + + if (!oglobals->progress) { + oglobals->progress = 1; + } - if (!oglobals->ring_ready) { - oglobals->ring_ready = 1; + if (!oglobals->ring_ready) { + oglobals->ring_ready = 1; + } } }