Commit 4385557c authored by Simon Morlat's avatar Simon Morlat

add LinphoneCallLog.getCallId() java wrapper

parent 0f6874a9
......@@ -6465,3 +6465,13 @@ JNIEXPORT void JNICALL Java_org_linphone_core_TunnelConfigImpl_destroy(JNIEnv *e
}
/*
* Class: org_linphone_core_LinphoneCallLogImpl
* Method: getCallId
* Signature: (J)I
*/
JNIEXPORT jstring JNICALL Java_org_linphone_core_LinphoneCallLogImpl_getCallId(JNIEnv *env, jobject jobj, jlong pcl){
const char *str = linphone_call_log_get_call_id((LinphoneCallLog*)pcl);
return str ? env->NewStringUTF(str) : NULL;
}
......@@ -118,7 +118,7 @@ public interface LinphoneCallLog {
public int getCallDuration();
/**
* Call id from signaling
* @return int
* @return the SIP call-id.
*/
public int getCallId();
public String getCallId();
}
......@@ -29,7 +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);
private native String getCallId(long nativePtr);
private native long getTimestamp(long nativePtr);
LinphoneCallLogImpl(long aNativePtr) {
......@@ -62,7 +62,7 @@ class LinphoneCallLogImpl implements LinphoneCallLog {
public int getCallDuration() {
return getCallDuration(nativePtr);
}
public int getCallId() {
public String getCallId() {
return getCallId(nativePtr);
}
......
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