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

Freeswitch SVN anthm at freeswitch.org
Sun Dec 3 18:58:01 EST 2006


Author: anthm
Date: Sun Dec  3 18:58:01 2006
New Revision: 3523

Modified:
   freeswitch/trunk/src/switch_ivr.c

Log:
fix

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Sun Dec  3 18:58:01 2006
@@ -2634,7 +2634,7 @@
 				goto notready;
 			}
 
-			if (switch_core_session_dequeue_message(peer_sessions[0], &message) == SWITCH_STATUS_SUCCESS) {
+			if (peer_sessions[0] && switch_core_session_dequeue_message(peer_sessions[0], &message) == SWITCH_STATUS_SUCCESS) {
 				if (session && !ringback_data && or_argc == 1 && and_argc == 1) { /* when there is only 1 channel to call and bridge and no ringback */
 					switch_core_session_receive_message(session, message);
 				}



More information about the Freeswitch-svn mailing list