From bdf7a68612f79e41ce691d7cbcd9bebec2ac5d29 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 15 Feb 2008 16:23:03 +0000 Subject: [PATCH] can't assert people behaving nicely. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7620 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c b/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c index ad9f17ea30..f4a07b6a28 100644 --- a/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c +++ b/libs/sofia-sip/libsofia-sip-ua/nua/nua_session.c @@ -1972,8 +1972,8 @@ int nua_invite_server_preprocess(nua_server_request_t *sr) 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 */