From df758a5f1fc42be582e1818666b8ae920e842c43 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Mon, 8 Feb 2016 11:01:23 +0100 Subject: [PATCH] Force STUN server resolution for ICE tests. --- tester/call_tester.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tester/call_tester.c b/tester/call_tester.c index 94bdeba04..ddea0e758 100644 --- a/tester/call_tester.c +++ b/tester/call_tester.c @@ -1140,6 +1140,10 @@ static void check_nb_media_starts(LinphoneCoreManager *caller, LinphoneCoreManag } static void _call_with_ice_base(LinphoneCoreManager* pauline,LinphoneCoreManager* marie, bool_t caller_with_ice, bool_t callee_with_ice, bool_t random_ports, bool_t forced_relay) { + // Force STUN server resolution to prevent DNS resolution issues on some machines + linphone_core_get_stun_server_addrinfo(pauline->lc); + linphone_core_get_stun_server_addrinfo(marie->lc); + linphone_core_set_user_agent(pauline->lc, "Natted Linphone", NULL); linphone_core_set_user_agent(marie->lc, "Natted Linphone", NULL);