]> sjero.net Git - linphone/commitdiff
Some fixes
authorSylvain Berfini <Sylvain.Berfini@Belledonne-Communications.com>
Tue, 2 Oct 2012 14:21:56 +0000 (16:21 +0200)
committerSylvain Berfini <Sylvain.Berfini@Belledonne-Communications.com>
Tue, 2 Oct 2012 14:21:56 +0000 (16:21 +0200)
LinphoneAuthInfoImpl.java
LinphoneCallLogImpl.java

index 7f9e54dd239d5e5a9826b610644775773b2949fc..7d50a2fa5bd6bc9e4861e6a906d32d451d59f7ba 100644 (file)
@@ -23,7 +23,7 @@ class LinphoneAuthInfoImpl implements LinphoneAuthInfo {
        private native long newLinphoneAuthInfo(String username, String userid, String passwd, String ha1,String realm);
        private native void  delete(long ptr);
        protected LinphoneAuthInfoImpl(String username,String password, String realm)  {
-               nativePtr = newLinphoneAuthInfo(username,null,password,null,realm);
+               nativePtr = newLinphoneAuthInfo(username,"",password,"","");
        }
        protected void finalize() throws Throwable {
                delete(nativePtr);
index 8972f0a76a343474cf6dd4dbc39ac5f86bea9165..ac03d3699eb3653ee1542160ac43229c8c4b804a 100644 (file)
@@ -29,6 +29,7 @@ class LinphoneCallLogImpl implements LinphoneCallLog {
        private native int getStatus(long nativePtr);
        private native String getStartDate(long nativePtr);
        private native int getCallDuration(long nativePtr);
+       private native int getCallId(long nativePtr);
        
        LinphoneCallLogImpl(long aNativePtr)  {
                nativePtr = aNativePtr;
@@ -60,4 +61,8 @@ class LinphoneCallLogImpl implements LinphoneCallLog {
        public int getCallDuration() {
                return getCallDuration(nativePtr);
        }
+       @Override
+       public int getCallId() {
+               return getCallId(nativePtr);
+       }
 }