]> sjero.net Git - linphone/commitdiff
Add linphone_core_defer_call_update, linphone_call_params_copy, linphone_core_accept_...
authorYann Diorcet <yann.diorcet@belledonne-communications.com>
Wed, 29 Feb 2012 08:00:09 +0000 (09:00 +0100)
committerYann Diorcet <yann.diorcet@belledonne-communications.com>
Wed, 29 Feb 2012 08:00:09 +0000 (09:00 +0100)
java/common/org/linphone/core/LinphoneCall.java
java/common/org/linphone/core/LinphoneCore.java

index d0f97130d57b28691bedde3c2c78f2cce5abeeb2..7d258606f15f10d63878464045764b448f176859 100644 (file)
@@ -159,6 +159,8 @@ public interface LinphoneCall {
         * @Return LinphoneCallLog
        **/
        LinphoneCallLog getCallLog();
+       
+       LinphoneCallParams getRemoteParams();
 
        LinphoneCallParams getCurrentParamsCopy();
        
index 2905d67373c5e66667e79a092c5e9d01b932d99a..e9fe0167745dc95931bc7d955089d2801cfd63e1 100644 (file)
@@ -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