mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 07:59:20 +00:00
enable auto-acceptance of "replacing" calls
This commit is contained in:
parent
66007b74fb
commit
2245cfb429
2 changed files with 6 additions and 2 deletions
|
|
@ -110,7 +110,6 @@ static void call_received(SalOp *h){
|
|||
linphone_address_clean(from_parsed);
|
||||
tmp=linphone_address_as_string(from_parsed);
|
||||
linphone_address_destroy(from_parsed);
|
||||
linphone_call_set_state(call,LinphoneCallIncomingReceived,"Incoming call");
|
||||
barmesg=ortp_strdup_printf("%s %s%s",tmp,_("is contacting you"),
|
||||
(sal_call_autoanswer_asked(h)) ?_(" and asked autoanswer."):_("."));
|
||||
if (lc->vtable.show) lc->vtable.show(lc);
|
||||
|
|
@ -146,6 +145,11 @@ static void call_received(SalOp *h){
|
|||
#endif
|
||||
ms_free(barmesg);
|
||||
ms_free(tmp);
|
||||
|
||||
linphone_call_set_state(call,LinphoneCallIncomingReceived,"Incoming call");
|
||||
if (sal_call_get_replaces(call->op)!=NULL && lp_config_get_int(lc->config,"sip","auto_answer_replacing_calls",1)){
|
||||
linphone_core_accept_call(lc,call);
|
||||
}
|
||||
}
|
||||
|
||||
static void call_ringing(SalOp *h){
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 21471e316965e7ce61964b18793ec0cadbd37658
|
||||
Subproject commit ffacf56718c198cb80a290f7a65975916d8a9b6b
|
||||
Loading…
Add table
Reference in a new issue