]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
only assume sendonly is hold operation when call is already answered in proxy-media...
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 27 Nov 2009 19:02:20 +0000 (19:02 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 27 Nov 2009 19:02:20 +0000 (19:02 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15698 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_glue.c

index dd9293c88f14017a5d98077a7fb0a6f348791843..1146367382c26fc857b7d9341ce1dc58b16764ab 100644 (file)
@@ -1170,7 +1170,8 @@ void sofia_glue_tech_patch_sdp(private_object_t *tech_pvt)
 
        len = strlen(tech_pvt->local_sdp_str) * 2;
        
-       if (switch_stristr("sendonly", tech_pvt->local_sdp_str) || switch_stristr("0.0.0.0", tech_pvt->local_sdp_str)) {
+       if (switch_channel_test_flag(tech_pvt->channel, CF_ANSWERED) && 
+               (switch_stristr("sendonly", tech_pvt->local_sdp_str) || switch_stristr("0.0.0.0", tech_pvt->local_sdp_str))) {
            switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(tech_pvt->session), SWITCH_LOG_DEBUG, "Skip patch on hold SDP\n");
            return;
        }