From: Anthony Minessale Date: Mon, 23 Jun 2008 21:30:14 +0000 (+0000) Subject: ignore sendonly on sip calls that are not answered X-Git-Tag: v1.0.1~333 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2aa6410366fb20119dee1deb1e9d7b6b2b6d2ebb;p=thirdparty%2Ffreeswitch.git ignore sendonly on sip calls that are not answered git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8832 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 1ec66c065c..d338bb9931 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -1895,7 +1895,7 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, sdp_session_t * } } - if (sendonly) { + if (sendonly && switch_channel_test_flag(channel, CF_ANSWERED)) { if (!switch_test_flag(tech_pvt, TFLAG_SIP_HOLD)) { const char *stream;