From 2c94b2a924533a0756af0a59c422556922ef1334 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 4 Nov 2009 19:49:02 +0000 Subject: [PATCH] fix assert in sofia lib git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15354 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/sofia-sip/libsofia-sip-ua/nta/nta.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/sofia-sip/libsofia-sip-ua/nta/nta.c b/libs/sofia-sip/libsofia-sip-ua/nta/nta.c index 51b2019539..656aecc195 100644 --- a/libs/sofia-sip/libsofia-sip-ua/nta/nta.c +++ b/libs/sofia-sip/libsofia-sip-ua/nta/nta.c @@ -9252,7 +9252,9 @@ int outgoing_recv(nta_outgoing_t *_orq, /* 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: