Revision
15025
Author
anthm
Date
2009-09-30 15:15:00 -0500 (Wed, 30 Sep 2009)

Log Message

changing default behaviour ignore_early_media=true must be set together with ringback to generate local ringback on early media

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_ivr_originate.c (15024 => 15025)


--- freeswitch/trunk/src/switch_ivr_originate.c	2009-09-30 17:53:09 UTC (rev 15024)
+++ freeswitch/trunk/src/switch_ivr_originate.c	2009-09-30 20:15:00 UTC (rev 15025)
@@ -1162,9 +1162,12 @@
 		}
 	}
 
+#if 0
+	/* changing behaviour ignore_early_media=true must also be explicitly set for previous behaviour */
 	if (ringback_data) {
 		oglobals.early_ok = 0;
 	}
+#endif
 
 	if (switch_true(switch_event_get_header(var_event, "group_confirm_cancel_timeout"))) {
 		oglobals.cancel_timeout = -1;
@@ -1844,10 +1847,12 @@
 			
 		no_ringback:
 
+#if 0
+			/* changing behaviour ignore_early_media=true must also be explicitly set for previous behaviour */
 			if (ringback_data) {
 				oglobals.early_ok = 0;
 			}
-
+#endif
 			while ((!caller_channel || switch_channel_ready(caller_channel)) && check_channel_status(&oglobals, originate_status, and_argc)) {
 				time_t elapsed = switch_epoch_time_now(NULL) - start;
 				if (caller_channel && !oglobals.sent_ring && oglobals.ring_ready && !oglobals.return_ring_ready) {