Commit 947d39f9 authored by Simon Morlat's avatar Simon Morlat
Browse files

fix too short timeouts for redirect test

parent 285af557
...@@ -161,7 +161,7 @@ int main(int argc, char *argv[]){ ...@@ -161,7 +161,7 @@ int main(int argc, char *argv[]){
} }
} }
linphone_core_get_default_proxy(lc,&proxy_cfg); /* get default proxy config*/ proxy_cfg = linphone_core_get_default_proxy_config(lc); /* get default proxy config*/
linphone_proxy_config_edit(proxy_cfg); /*start editing proxy configuration*/ linphone_proxy_config_edit(proxy_cfg); /*start editing proxy configuration*/
linphone_proxy_config_enable_register(proxy_cfg,FALSE); /*de-activate registration for this proxy config*/ linphone_proxy_config_enable_register(proxy_cfg,FALSE); /*de-activate registration for this proxy config*/
linphone_proxy_config_done(proxy_cfg); /*initiate REGISTER with expire = 0*/ linphone_proxy_config_done(proxy_cfg); /*initiate REGISTER with expire = 0*/
......
...@@ -3624,12 +3624,12 @@ static void call_redirect(void){ ...@@ -3624,12 +3624,12 @@ static void call_redirect(void){
/* pauline should have ended the call */ /* pauline should have ended the call */
BC_ASSERT_TRUE(wait_for_list(lcs, &pauline->stat.number_of_LinphoneCallEnd,1,1000)); BC_ASSERT_TRUE(wait_for_list(lcs, &pauline->stat.number_of_LinphoneCallEnd,1,1000));
/* the call should still be ringing on marie's side */ /* the call should still be ringing on marie's side */
BC_ASSERT_TRUE(wait_for_list(lcs, &marie->stat.number_of_LinphoneCallOutgoingRinging, 1,1000)); BC_ASSERT_EQUAL(marie->stat.number_of_LinphoneCallOutgoingRinging, 1, int, "%i");
linphone_core_accept_call(laure->lc, linphone_core_get_current_call(laure->lc)); linphone_core_accept_call(laure->lc, linphone_core_get_current_call(laure->lc));
BC_ASSERT_TRUE(wait_for_list(lcs, &marie->stat.number_of_LinphoneCallStreamsRunning, 1,1000)); BC_ASSERT_TRUE(wait_for_list(lcs, &marie->stat.number_of_LinphoneCallStreamsRunning, 1,5000));
BC_ASSERT_TRUE(wait_for_list(lcs, &laure->stat.number_of_LinphoneCallStreamsRunning, 1,1000)); BC_ASSERT_TRUE(wait_for_list(lcs, &laure->stat.number_of_LinphoneCallStreamsRunning, 1,5000));
BC_ASSERT_PTR_EQUAL(marie_call, linphone_core_get_current_call(marie->lc)); BC_ASSERT_PTR_EQUAL(marie_call, linphone_core_get_current_call(marie->lc));
......
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