]> sjero.net Git - linphone/blobdiff - coreapi/linphonecore_jni.cc
Exported JNI method to get call duration from log
[linphone] / coreapi / linphonecore_jni.cc
index 35ee7f26df0376b0858cb7ff7dae39cc0373be9c..d45f6009bdb962ef8aae5f0ec7606b556ec820cc 100644 (file)
@@ -1152,6 +1152,11 @@ extern "C" jstring Java_org_linphone_core_LinphoneCallLogImpl_getStartDate(JNIEn
        jstring jvalue =env->NewStringUTF(((LinphoneCallLog*)ptr)->start_date);
        return jvalue;
 }
+extern "C" jint Java_org_linphone_core_LinphoneCallLogImpl_getCallDuration(JNIEnv*  env
+                                                                                                                                               ,jobject  thiz
+                                                                                                                                               ,jlong ptr) {
+       return ((LinphoneCallLog*)ptr)->duration;
+}
 
 /*payloadType*/
 extern "C" jstring Java_org_linphone_core_PayloadTypeImpl_toString(JNIEnv*  env,jobject  thiz,jlong ptr) {