Revision
14846
Author
anthm
Date
2009-09-14 13:03:25 -0500 (Mon, 14 Sep 2009)

Log Message

fix edge case where originate does not give up properly with timed calls

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_ivr_originate.c (14845 => 14846)


--- freeswitch/trunk/src/switch_ivr_originate.c	2009-09-14 18:02:05 UTC (rev 14845)
+++ freeswitch/trunk/src/switch_ivr_originate.c	2009-09-14 18:03:25 UTC (rev 14846)
@@ -330,6 +330,7 @@
 	for (i = 0; i < len; i++) {
 		switch_channel_state_t state;
 		if (!(originate_status[i].peer_channel && originate_status[i].peer_session)) {
+			oglobals->hups++;
 			continue;
 		}
 
@@ -342,7 +343,7 @@
 				oglobals->ring_ready = 1;
 			}
 		}
-		
+
 		if (switch_channel_test_flag(originate_status[i].peer_channel, CF_EARLY_MEDIA)) {
 			if (!originate_status[i].early_media) {
 				originate_status[i].early_media = 1;