]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
This patch will probably make it work but the bug is actually in the phone, the patch...
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 8 Sep 2011 15:22:46 +0000 (10:22 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 8 Sep 2011 15:22:46 +0000 (10:22 -0500)
src/mod/endpoints/mod_sofia/sofia_glue.c

index f57c2ab350f9ebb394c3077e196d852c72a57473..0c44cf34395fb19ced138973baefb37dcf3c891b 100644 (file)
@@ -4345,7 +4345,9 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, const char *r_s
                }
        }
 
-       if ((m = sdp->sdp_media) && (m->m_mode == sdp_sendonly || m->m_mode == sdp_inactive)) {
+       if ((m = sdp->sdp_media) && 
+               (m->m_mode == sdp_sendonly || m->m_mode == sdp_inactive || 
+                (m->m_connections && m->m_connections->c_address && !strcmp(m->m_connections->c_address, "0.0.0.0")))) {
                sendonly = 2;                   /* global sendonly always wins */
        }