From 351480b99b059840c8876402abb2019320a54145 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 10 Nov 2006 00:01:22 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3297 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/mod_sofia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index eced7cb00d..2287b191aa 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -1786,7 +1786,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi } set_local_sdp(tech_pvt, NULL, 0, NULL, 1); do_invite(session); - while (!switch_rtp_ready(tech_pvt->rtp_session)) { + while (!switch_rtp_ready(tech_pvt->rtp_session) && switch_channel_get_state(channel) < CS_HANGUP) { switch_yield(1000); } }