]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 19 Jan 2009 23:30:41 +0000 (23:30 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 19 Jan 2009 23:30:41 +0000 (23:30 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11297 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_originate.c

index 7eb92a46aa97de7a7ee05993eb4e0e5152d13dc1..092b96c32705b395023ab11a8a45303aaf06e4e2 100644 (file)
@@ -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;
+                               }
                        }
                }