Do not set the c= line to 0.0.0.0 to pause a call when ICE is used.

This commit is contained in:
Ghislain MARY 2012-08-13 15:03:17 +02:00
parent bccc94646a
commit 6f392caf46

View file

@ -144,7 +144,8 @@ static sdp_message_t *create_generic_sdp(const SalMediaDescription *desc)
osip_strdup ("IN"), inet6 ? osip_strdup("IP6") : osip_strdup ("IP4"),
osip_strdup (desc->addr));
sdp_message_s_name_set (local, osip_strdup ("Talk"));
if(!sal_media_description_has_dir (desc,SalStreamSendOnly))
/* Do not set the c= line to 0.0.0.0 if there is an ICE session. */
if((desc->ice_ufrag[0] != '\0') || !sal_media_description_has_dir (desc,SalStreamSendOnly))
{
sdp_message_c_connection_add (local, -1,
osip_strdup ("IN"), inet6 ? osip_strdup ("IP6") : osip_strdup ("IP4"),