Revision
15354
Author
anthm
Date
2009-11-04 13:49:02 -0600 (Wed, 04 Nov 2009)

Log Message

fix assert in sofia lib

Modified Paths

Diff

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c (15353 => 15354)


--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c	2009-11-04 19:27:35 UTC (rev 15353)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c	2009-11-04 19:49:02 UTC (rev 15354)
@@ -9252,7 +9252,9 @@
     /* Non-INVITE */
     if (orq->orq_queue == sa->sa_out.trying ||
 	orq->orq_queue == sa->sa_out.resolving) {
-      assert(orq->orq_status < 200);
+	  /* hacked by freeswitch, this is being hit by options 404 status with 404 orq->orq_status and orq_destroyed = 1, orq_completed = 1 */  
+	  /*      assert(orq->orq_status < 200); */
+	  if (orq->orq_status >= 200) {msg_destroy(msg); return 0;}
 
       if (status < 200) {
 	/* @RFC3261 17.1.2.1: