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);
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;
public int getCallDuration() {
return getCallDuration(nativePtr);
}
+ @Override
+ public int getCallId() {
+ return getCallId(nativePtr);
+ }
}