Revision
15698
Author
anthm
Date
2009-11-27 13:02:20 -0600 (Fri, 27 Nov 2009)

Log Message

only assume sendonly is hold operation when call is already answered in proxy-media situation

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c (15697 => 15698)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	2009-11-27 16:47:08 UTC (rev 15697)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	2009-11-27 19:02:20 UTC (rev 15698)
@@ -1170,7 +1170,8 @@
 
 	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;
 	}