From 526af17dd5a61d03cbfdcc5ab75484ff656a097a Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 11 Mar 2014 15:14:38 +0100 Subject: [PATCH] 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. --- coreapi/linphonecall.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index f73779377..c03594da1 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -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); }