mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 16:09:20 +00:00
fix auto-resuming of call in case of transfer failures
This commit is contained in:
parent
05e04e2059
commit
cb41acb925
1 changed files with 4 additions and 4 deletions
|
|
@ -585,6 +585,10 @@ static void call_failure(SalOp *op, SalError error, SalReason sr, const char *de
|
|||
lc->ringstream=NULL;
|
||||
}
|
||||
linphone_call_stop_media_streams (call);
|
||||
if (call->referer && linphone_call_get_state(call->referer)==LinphoneCallPaused && call->referer->was_automatically_paused){
|
||||
/*resume to the call that send us the refer automatically*/
|
||||
linphone_core_resume_call(lc,call->referer);
|
||||
}
|
||||
if (sr == SalReasonDeclined) {
|
||||
call->reason=LinphoneReasonDeclined;
|
||||
linphone_call_set_state(call,LinphoneCallEnd,"Call declined.");
|
||||
|
|
@ -594,10 +598,6 @@ static void call_failure(SalOp *op, SalError error, SalReason sr, const char *de
|
|||
} else {
|
||||
linphone_call_set_state(call,LinphoneCallError,msg);
|
||||
}
|
||||
if (call->referer && linphone_call_get_state(call->referer)==LinphoneCallPaused && call->referer->was_automatically_paused){
|
||||
/*resume to the call that send us the refer automatically*/
|
||||
linphone_core_resume_call(lc,call->referer);
|
||||
}
|
||||
}
|
||||
|
||||
static void call_released(SalOp *op){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue