]> sjero.net Git - linphone/commitdiff
add notifyReceived + refreshRegisters to java api 2
authorJehan Monnier <jehan.monnier@linphone.org>
Thu, 28 Jun 2012 11:31:51 +0000 (13:31 +0200)
committerJehan Monnier <jehan.monnier@linphone.org>
Thu, 28 Jun 2012 11:31:51 +0000 (13:31 +0200)
java/common/org/linphone/core/LinphoneCore.java
java/common/org/linphone/core/LinphoneCoreListener.java

index f4bcc7ef8e6b91e2976f554c3cd4bc490333fd2b..6f0ce2c653cc47450f3887b5d1d44e678b5d31c3 100644 (file)
@@ -180,6 +180,9 @@ public interface LinphoneCore {
                        this.tcp = t.tcp;
                        this.tls = t.tls;
                }
+               public String toString() {
+                       return "udp["+udp+"] tcp["+tcp+"] tls["+tls+"]";
+               }
        }
        /**
         * Media (RTP) encryption enum-like.
@@ -776,4 +779,9 @@ public interface LinphoneCore {
         * Set missed calls count to zero
         */
        public void resetMissedCallsCount();
+       /**
+        * re-initiates registration if network is up.
+        */
+       public void refreshRegisters();
+
 }
index cfe43895ef82ac45e897d6d1df90decb16c065c9..400e942c3f960b6699b890ffeca897803711fef3 100644 (file)
@@ -103,5 +103,14 @@ public interface LinphoneCoreListener {
         * @param data
         */
        void ecCalibrationStatus(LinphoneCore lc,LinphoneCore.EcCalibratorStatus status, int delay_ms, Object data);
+       /**
+        *  Report Notified message received for this identity.
+        *  @param lc LinphoneCore
+        *  @param call LinphoneCall in case the notify is part of a dialog, may be null
+        *  @param from LinphoneAddress the message comes from
+        *  @param event String the raw body of the notify event.
+        *  
+        */
+       void notifyReceived(LinphoneCore lc, LinphoneCall call, LinphoneAddress from, byte[] event);
 }