add LinphoneCallLog.getCallId() java wrapper

This commit is contained in:
Simon Morlat 2015-11-03 14:36:15 +01:00
parent 0f6874a96e
commit 4385557cd8
3 changed files with 14 additions and 4 deletions

View file

@ -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;
}

View file

@ -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();
}

View file

@ -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);
}