]> sjero.net Git - linphone/commitdiff
Clean ICE remote candidates in the media description when sending re-invite after...
authorGhislain MARY <ghislain.mary@belledonne-communications.com>
Fri, 5 Oct 2012 09:28:27 +0000 (11:28 +0200)
committerGhislain MARY <ghislain.mary@belledonne-communications.com>
Fri, 5 Oct 2012 09:31:54 +0000 (11:31 +0200)
coreapi/misc.c

index ebb19b08383bf65e8c2c65287e4c49906ca23338..035017b51252f5d290e0043f07cbddfd62a0d380 100644 (file)
@@ -795,6 +795,11 @@ void linphone_core_update_local_media_description_from_ice(SalMediaDescription *
                        } else {
                                ms_error("ice: Selected valid remote candidates should be present if the check list is in the Completed state");
                        }
+               } else {
+                       for (j = 0; j < SAL_MEDIA_DESCRIPTION_MAX_ICE_REMOTE_CANDIDATES; j++) {
+                               stream->ice_remote_candidates[j].addr[0] = '\0';
+                               stream->ice_remote_candidates[j].port = 0;
+                       }
                }
        }
 }