[Freeswitch-svn] [commit] r8934 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Tue Jul 8 16:26:01 EDT 2008


Author: anthm
Date: Tue Jul  8 16:26:01 2008
New Revision: 8934

Modified:
   freeswitch/trunk/src/switch_ivr_originate.c

Log:
make forked dials return the first chan to get early media, add ignore_early_media=true to dial string to get previous behaviour

Modified: freeswitch/trunk/src/switch_ivr_originate.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_originate.c	(original)
+++ freeswitch/trunk/src/switch_ivr_originate.c	Tue Jul  8 16:26:01 2008
@@ -193,7 +193,7 @@
 			) {
 			(*hups)++;
 		} else if ((switch_channel_test_flag(peer_channels[i], CF_ANSWERED) ||
-					(early_ok && len == 1 && switch_channel_test_flag(peer_channels[i], CF_EARLY_MEDIA)) ||
+					(early_ok && switch_channel_test_flag(peer_channels[i], CF_EARLY_MEDIA)) ||
 					(*ring_ready && return_ring_ready && len == 1 && switch_channel_test_flag(peer_channels[i], CF_RING_READY))
 				   )
 				   && !switch_channel_test_flag(peer_channels[i], CF_TAGGED)



More information about the Freeswitch-svn mailing list