mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-27 04:18:37 +00:00
fix linphone_core_update_call()
This commit is contained in:
parent
22f6228c96
commit
16c47f7b01
2 changed files with 8 additions and 2 deletions
|
|
@ -3148,7 +3148,13 @@ int linphone_core_update_call(LinphoneCore *lc, LinphoneCall *call, const Linpho
|
||||||
bool_t has_video = FALSE;
|
bool_t has_video = FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (call->state!=LinphoneCallStreamsRunning){
|
switch(call->state){
|
||||||
|
case LinphoneCallIncomingEarlyMedia:
|
||||||
|
case LinphoneCallIncomingReceived:
|
||||||
|
case LinphoneCallStreamsRunning:
|
||||||
|
/*these states are allowed for linphone_core_update_call()*/
|
||||||
|
break;
|
||||||
|
default:
|
||||||
ms_error("linphone_core_update_call() is not allowed in [%s] state",linphone_call_state_to_string(call->state));
|
ms_error("linphone_core_update_call() is not allowed in [%s] state",linphone_call_state_to_string(call->state));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -681,7 +681,7 @@ static void io_recv_error_late_recovery(){
|
||||||
CU_ASSERT_TRUE(wait_for(lc,NULL,&counters->number_of_LinphoneRegistrationProgress,(register_ok-number_of_udp_proxy)+register_ok /*because 1 udp*/));
|
CU_ASSERT_TRUE(wait_for(lc,NULL,&counters->number_of_LinphoneRegistrationProgress,(register_ok-number_of_udp_proxy)+register_ok /*because 1 udp*/));
|
||||||
CU_ASSERT_EQUAL(counters->number_of_LinphoneRegistrationFailed,0)
|
CU_ASSERT_EQUAL(counters->number_of_LinphoneRegistrationFailed,0)
|
||||||
|
|
||||||
CU_ASSERT_TRUE(wait_for_list(lcs=ms_list_append(NULL,lc),&counters->number_of_LinphoneRegistrationFailed,(register_ok-number_of_udp_proxy),sal_get_refresher_retry_after(lc->sal)+1000));
|
CU_ASSERT_TRUE(wait_for_list(lcs=ms_list_append(NULL,lc),&counters->number_of_LinphoneRegistrationFailed,(register_ok-number_of_udp_proxy),sal_get_refresher_retry_after(lc->sal)+3000));
|
||||||
|
|
||||||
sal_set_recv_error(lc->sal, 1); /*reset*/
|
sal_set_recv_error(lc->sal, 1); /*reset*/
|
||||||
sal_set_send_error(lc->sal, 0);
|
sal_set_send_error(lc->sal, 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue