From 284339358179308a450172e9f58f65a646b9e8b8 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 19 Nov 2008 16:48:32 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10456 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index ea9e98c260..43c2606285 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -2215,22 +2215,9 @@ static void sofia_handle_sip_r_invite(switch_core_session_t *session, int status } if (!session && (status == 180 || status == 183 || status == 200)) { - /* This should never happen. It means the sip stack thinks there is a call but FreeSWITCH does not */ - const char *callid = "n/a"; - - if (sip && sip->sip_call_id && sip->sip_call_id->i_id) callid = sip->sip_call_id->i_id; - - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Received response to invite with no matching session, destroying callid [%s]!\n", callid); - - if (nh) { - if (status == 200) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Sending BYE to orphan call.\n"); - nua_bye(nh, TAG_END()); - } else { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Sending CANCEL to orphan call.\n"); - nua_cancel(nh, TAG_END()); - } - } + /* nevermind */ + nua_handle_bind(nh, NULL); + nua_handle_destroy(nh); } }