]> sjero.net Git - linphone/commitdiff
Do not create an ICE check list if it has already been created.
authorGhislain MARY <ghislain.mary@belledonne-communications.com>
Wed, 1 Aug 2012 13:11:39 +0000 (15:11 +0200)
committerGhislain MARY <ghislain.mary@belledonne-communications.com>
Wed, 1 Aug 2012 13:11:39 +0000 (15:11 +0200)
coreapi/linphonecall.c

index 47b23b47e7d4aa3011b2b9a0a26ed54f71ce1d44..edf381a9f4cc9a9d5c33004c1a6a24c137cedd5a 100644 (file)
@@ -248,7 +248,8 @@ static SalMediaDescription *_create_local_media_description(LinphoneCore *lc, Li
                                md->streams[i].crypto[1].algo = 0;
                        md->streams[i].crypto[2].algo = 0;
                }
-               if ((call->dir == LinphoneCallOutgoing) && (linphone_core_get_firewall_policy(call->core) == LinphonePolicyUseIce) && (ice_session != NULL)){
+               if ((call->dir == LinphoneCallOutgoing) && (linphone_core_get_firewall_policy(call->core) == LinphonePolicyUseIce)
+                       && (ice_session != NULL) && (ice_session_check_list(ice_session, i) == NULL)) {
                        ice_session_add_check_list(ice_session, ice_check_list_new());
                }
        }