mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 11:38:08 +00:00
Do not notify on-the-phone presence automatically when starting the first call.
It is the application that has to handle the presence as it wishes.
This commit is contained in:
parent
a45d28a328
commit
526af17dd5
1 changed files with 0 additions and 7 deletions
|
|
@ -805,13 +805,6 @@ void linphone_call_set_state(LinphoneCall *call, LinphoneCallState cstate, const
|
|||
linphone_call_set_terminated(call);
|
||||
}
|
||||
if (cstate == LinphoneCallConnected) {
|
||||
if (ms_list_size(lc->calls)==1){
|
||||
LinphonePresenceModel *model;
|
||||
/*there were no call, and now there is a call, send an on-the-phone presence notification automatically*/
|
||||
model = linphone_presence_model_new_with_activity(LinphonePresenceActivityOnThePhone, NULL);
|
||||
linphone_core_send_presence(call->core,model);
|
||||
linphone_presence_model_unref(model);
|
||||
}
|
||||
call->log->status=LinphoneCallSuccess;
|
||||
call->media_start_time=time(NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue