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

FreeSWITCH SVN mrene at freeswitch.org
Fri Jan 23 06:16:34 PST 2009


Author: mrene
Date: Fri Jan 23 08:16:34 2009
New Revision: 11462

Log:
FSCORE-279 Prevent media setup on failed originates

Modified:
   freeswitch/trunk/src/switch_ivr_originate.c

Modified: freeswitch/trunk/src/switch_ivr_originate.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_originate.c	(original)
+++ freeswitch/trunk/src/switch_ivr_originate.c	Fri Jan 23 08:16:34 2009
@@ -2044,7 +2044,7 @@
 		switch_ivr_sleep(*bleg, 0, SWITCH_TRUE, NULL);
 	}
 
-	if (oglobals.session) {
+	if (oglobals.session && status == SWITCH_STATUS_SUCCESS) {
 		switch_ivr_sleep(oglobals.session, 0, SWITCH_TRUE, NULL);
 	}
 



More information about the Freeswitch-svn mailing list