mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 05:38:14 +00:00
add LinphoneCallLog.getCallId() java wrapper
This commit is contained in:
parent
0f6874a96e
commit
4385557cd8
3 changed files with 14 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue