[Freeswitch-svn] [commit] r8052 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/nua

Freeswitch SVN mikej at freeswitch.org
Mon Apr 7 15:44:39 EDT 2008


Author: mikej
Date: Mon Apr  7 15:44:39 2008
New Revision: 8052

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

Log:
Mon Apr  7 13:20:55 EDT 2008  Pekka.Pessi at nokia.com
  * nua_session.c: fixed call state reporting from failed INVITE
  
  If INVITE was returned a failure response, and session was being terminated
  (like BYE was sent while INVITE transaction was on-going), Sofia reported
  session as already terminated.



Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Mon Apr  7 15:44:39 2008
@@ -1 +1 @@
-Mon Apr  7 13:06:49 EDT 2008
+Mon Apr  7 15:44:29 EDT 2008

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	Mon Apr  7 15:44:39 2008
@@ -3910,6 +3910,8 @@
 	ss->ss_state = next_state;
       else if (ss->ss_state == nua_callstate_ready)
 	next_state = ss->ss_state;
+      else if (ss->ss_state == nua_callstate_terminating)
+	return;
       else 
 	ss->ss_state = next_state = nua_callstate_terminated;
     }



More information about the Freeswitch-svn mailing list