]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
ignore sendonly on sip calls that are not answered
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 23 Jun 2008 21:30:14 +0000 (21:30 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 23 Jun 2008 21:30:14 +0000 (21:30 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8832 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_glue.c

index 1ec66c065c71974b043f88c5e53ca17e283470c0..d338bb9931ab4cb78a8e8dee214a0879c7e07d9d 100644 (file)
@@ -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;