ms2: disable symmetric rtp triggered by stun in case of multicast

This commit is contained in:
Jehan Monnier 2015-05-27 18:00:29 +02:00
parent f5b65146ac
commit 7de2c1bf33
3 changed files with 3 additions and 3 deletions

View file

@ -748,7 +748,7 @@ static int select_random_port(LinphoneCore *lc, int stream_index, int min_port,
int existing_port = 0;
bool_t already_used = FALSE;
tried_port = (rand() % (max_port - min_port) + min_port) & ~0x1;
tried_port = (ortp_random() % (max_port - min_port) + min_port) & ~0x1;
if (tried_port < min_port) tried_port = min_port + 2;
for (nb_tries = 0; nb_tries < 100; nb_tries++) {
for (elem = lc->calls; elem != NULL; elem = elem->next) {

@ -1 +1 @@
Subproject commit e4dcc515cebd7cf1b51cb538743312df53aaf0a0
Subproject commit 175a46b05d85a9dec2e5b3671db59340f1c3bd25

View file

@ -53,7 +53,7 @@ static void call_multicast_base(bool_t video) {
linphone_core_enable_audio_multicast(pauline->lc,TRUE);
BC_ASSERT_TRUE(call(pauline,marie));
wait_for_until(marie->lc, pauline->lc, NULL, 1, 4000);
wait_for_until(marie->lc, pauline->lc, NULL, 1, 6000);
if (linphone_core_get_current_call(marie->lc)) {
BC_ASSERT_GREATER(linphone_core_manager_get_max_audio_down_bw(marie),70,int,"%d");
if (video) {