mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-26 15:48:09 +00:00
Fixes infinite loop since if call redirection fails the calls don't actually get terminated.
This commit is contained in:
parent
4eced3bf2a
commit
d2843d526e
1 changed files with 6 additions and 4 deletions
|
|
@ -745,14 +745,16 @@ lpc_cmd_redirect(LinphoneCore *lc, char *args){
|
|||
if (linphone_call_get_state(call)==LinphoneCallIncomingReceived){
|
||||
if (linphone_core_redirect_call(lc,call,args) != 0) {
|
||||
linphonec_out("Could not redirect call.\n");
|
||||
elem=elem->next;
|
||||
} else {
|
||||
didit=1;
|
||||
/*as the redirection closes the call, we need to re-check the call list that is invalidated.*/
|
||||
elem=linphone_core_get_calls(lc);
|
||||
}
|
||||
didit=1;
|
||||
/*as the redirection closes the call, we need to re-check the call list that is invalidated.*/
|
||||
elem=linphone_core_get_calls(lc);
|
||||
}else elem=elem->next;
|
||||
}
|
||||
if (didit==0){
|
||||
linphonec_out("There is no pending incoming call to redirect.");
|
||||
linphonec_out("There is no pending incoming call to redirect.\n");
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue