Commit cc211d48 authored by Sylvain Berfini's avatar Sylvain Berfini 🐮
Browse files

Exported JNI method to get call duration from log

parent f1f3c3c5
......@@ -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;
extern "C" jstring Java_org_linphone_core_PayloadTypeImpl_toString(JNIEnv* env,jobject thiz,jlong ptr) {
......@@ -101,4 +101,9 @@ public interface LinphoneCallLog {
* @return a human readble String with the start date/time of the call
public String getStartDate();
* @return the call duration, in seconds
public int getCallDuration();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment