From 1d0a356fcf951315f2915fc7c48eb420c443d24b Mon Sep 17 00:00:00 2001 From: Yann Diorcet Date: Wed, 29 Feb 2012 09:00:09 +0100 Subject: [PATCH] Add linphone_core_defer_call_update, linphone_call_params_copy, linphone_core_accept_call_with_params, linphone_core_accept_call_update to java code --- .../org/linphone/core/LinphoneCall.java | 2 ++ .../org/linphone/core/LinphoneCore.java | 35 +++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/java/common/org/linphone/core/LinphoneCall.java b/java/common/org/linphone/core/LinphoneCall.java index d0f97130d..7d258606f 100644 --- a/java/common/org/linphone/core/LinphoneCall.java +++ b/java/common/org/linphone/core/LinphoneCall.java @@ -159,6 +159,8 @@ public interface LinphoneCall { * @Return LinphoneCallLog **/ LinphoneCallLog getCallLog(); + + LinphoneCallParams getRemoteParams(); LinphoneCallParams getCurrentParamsCopy(); diff --git a/java/common/org/linphone/core/LinphoneCore.java b/java/common/org/linphone/core/LinphoneCore.java index 2905d6737..e9fe01677 100644 --- a/java/common/org/linphone/core/LinphoneCore.java +++ b/java/common/org/linphone/core/LinphoneCore.java @@ -22,6 +22,8 @@ package org.linphone.core; import java.util.List; import java.util.Vector; +import org.linphone.core.LinphoneCallParams; + /** * Linphone core main object created by method {@link LinphoneCoreFactory#createLinphoneCore(LinphoneCoreListener, String, String, Object)}. * @@ -372,6 +374,39 @@ public interface LinphoneCore { */ public void acceptCall(LinphoneCall aCall) throws LinphoneCoreException; + /** + * Accept an incoming call. + * + * Basically the application is notified of incoming calls within the + * {@link LinphoneCoreListener#inviteReceived(LinphoneCore, String)} listener. + * The application can later respond positively to the call using + * this method. + * @throws LinphoneCoreException + */ + public void acceptCallWithParams(LinphoneCall aCall, LinphoneCallParams params) throws LinphoneCoreException; + + /** + * Accept call modifications initiated by other end. + * + * Basically the application is notified of incoming calls within the + * {@link LinphoneCoreListener#inviteReceived(LinphoneCore, String)} listener. + * The application can later respond positively to the call using + * this method. + * @throws LinphoneCoreException + */ + public void acceptCallUpdate(LinphoneCall aCall, LinphoneCallParams params) throws LinphoneCoreException; + + + /** + * Prevent LinphoneCore from performing an automatic answer + * + * Basically the application is notified of incoming calls within the + * {@link LinphoneCoreListener#inviteReceived(LinphoneCore, String)} listener. + * The application can later respond positively to the call using + * this method. + * @throws LinphoneCoreException + */ + public void deferCallUpdate(LinphoneCall aCall, LinphoneCallParams params) throws LinphoneCoreException; /** * @return a list of LinphoneCallLog