robustize ice tests

This commit is contained in:
Simon Morlat 2016-02-19 10:31:17 +01:00
parent 0cdd55461d
commit 1e5fb420f5
2 changed files with 9 additions and 1 deletions

@ -1 +1 @@
Subproject commit 19e101d26bb39b47e0dd75038e5c68bbff1fc364
Subproject commit 3d3a63e7d2eccb097ce7d472cbc67eee536609f3

View file

@ -2502,6 +2502,10 @@ static void _call_with_ice_video(LinphoneVideoPolicy caller_policy, LinphoneVide
bool_t call_ok;
unsigned int nb_media_starts = 1;
/*force resolution of stun server before starting the test*/
linphone_core_get_stun_server_addrinfo(pauline->lc);
linphone_core_get_stun_server_addrinfo(marie->lc);
linphone_core_set_video_policy(pauline->lc, &caller_policy);
linphone_core_set_video_policy(marie->lc, &callee_policy);
linphone_core_set_firewall_policy(marie->lc, LinphonePolicyUseIce);
@ -2592,6 +2596,10 @@ static void call_with_ice_video_and_rtt(void) {
LinphoneCallParams *params = NULL;
LinphoneCall *marie_call = NULL;
/*force resolution of stun server before starting the test*/
linphone_core_get_stun_server_addrinfo(pauline->lc);
linphone_core_get_stun_server_addrinfo(marie->lc);
linphone_core_set_video_policy(pauline->lc, &policy);
linphone_core_set_video_policy(marie->lc, &policy);
linphone_core_enable_video_capture(marie->lc, TRUE);