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

FreeSWITCH SVN mikej at freeswitch.org
Fri Jun 26 12:56:10 PDT 2009


Author: mikej
Date: Fri Jun 26 14:56:10 2009
New Revision: 13986

Log:
Thu Jun 25 12:34:42 CDT 2009  Pekka Pessi <first.last at nokia.com>
  * nua_server.c: replying 200 OK to BYE left unreplied upon nua_handle_destroy



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

Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Fri Jun 26 14:56:10 2009
@@ -1 +1 @@
-Fri Jun 26 14:53:27 CDT 2009
+Fri Jun 26 14:54:58 CDT 2009

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_server.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_server.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_server.c	Fri Jun 26 14:56:10 2009
@@ -299,8 +299,12 @@
   if (SR_HAS_SAVED_SIGNAL(sr))
     nua_destroy_signal(sr->sr_signal);
 
-  if (sr->sr_irq)
+  if (sr->sr_irq) {
+    if (sr->sr_method == sip_method_bye && sr->sr_status < 200) {
+      nta_incoming_treply(sr->sr_irq, SIP_200_OK, TAG_END());
+    }
     nta_incoming_destroy(sr->sr_irq), sr->sr_irq = NULL;
+  }
 
   if (sr->sr_request.msg)
     msg_destroy(sr->sr_request.msg), sr->sr_request.msg = NULL;



More information about the Freeswitch-trunk mailing list