Commit 7de2c1bf authored by jehan's avatar jehan
Browse files

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

parent f5b65146
......@@ -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) {
......
mediastreamer2 @ 175a46b0
Subproject commit e4dcc515cebd7cf1b51cb538743312df53aaf0a0
Subproject commit 175a46b05d85a9dec2e5b3671db59340f1c3bd25
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment