Commit 526af17d authored by Ghislain MARY's avatar Ghislain MARY
Browse files

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.
parent a45d28a3
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment