Commit b21b16a9 authored by Erwan Croze's avatar Erwan Croze 👋🏻

Add get_in_call_timeout to JNI

parent 29f891b8
......@@ -5919,6 +5919,10 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setInCallTimeout(JNIEnv
linphone_core_set_in_call_timeout((LinphoneCore *)lc, timeout);
}
extern "C" jint Java_org_linphone_core_LinphoneCoreImpl_getInCallTimeout(JNIEnv *env, jobject thiz, jlong lc) {
return linphone_core_get_in_call_timeout((LinphoneCore *)lc);
}
extern "C" jstring Java_org_linphone_core_LinphoneCoreImpl_getVersion(JNIEnv* env,jobject thiz,jlong ptr) {
jstring jvalue =env->NewStringUTF(linphone_core_get_version());
return jvalue;
......
......@@ -1931,6 +1931,13 @@ public interface LinphoneCore {
* Once this time is elapsed (ringing included), the call is automatically hung up.
**/
void setInCallTimeout(int timeout);
/**
* Return the call timeout in seconds.
* @return the call timeout in seconds.
*/
int getInCallTimeout();
/**
* Allow to control microphone level:
* @param gain in db
......
......@@ -1112,6 +1112,11 @@ class LinphoneCoreImpl implements LinphoneCore {
setInCallTimeout(nativePtr, timeout);
}
private native int getInCallTimeout(long ptr);
public synchronized int getInCallTimeout() {
return getInCallTimeout(nativePtr);
}
private native void setMicrophoneGain(long ptr, float gain);
public synchronized void setMicrophoneGain(float gain) {
setMicrophoneGain(nativePtr, gain);
......
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