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:
Ghislain MARY 2014-03-11 15:14:38 +01:00
parent a45d28a328
commit 526af17dd5

View file

@ -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);
}