[Freeswitch-svn] [commit] r7620 - freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua

Freeswitch SVN mikej at freeswitch.org
Fri Feb 15 11:23:04 EST 2008


Author: mikej
Date: Fri Feb 15 11:23:03 2008
New Revision: 7620

Modified:
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c

Log:
can't assert people behaving nicely.

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c	Fri Feb 15 11:23:03 2008
@@ -1972,8 +1972,8 @@
 
   session_timer_store(ss->ss_timer, request);
 
-  assert(ss->ss_state >= nua_callstate_ready ||
-	 ss->ss_state == nua_callstate_init);
+  if (!(ss->ss_state >= nua_callstate_ready || ss->ss_state == nua_callstate_init)) 
+    return SR_STATUS1(sr, SIP_500_INTERNAL_SERVER_ERROR);
 
   if (NH_PGET(nh, auto_answer) ||
       /* Auto-answer to re-INVITE unless auto_answer is set to 0 on handle */



More information about the Freeswitch-svn mailing list