From 2aa6410366fb20119dee1deb1e9d7b6b2b6d2ebb Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 23 Jun 2008 21:30:14 +0000 Subject: [PATCH] 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 --- src/mod/endpoints/mod_sofia/sofia_glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;