Add get_in_call_timeout to JNI

This commit is contained in:
Erwan Croze 2017-06-06 12:03:43 +02:00
parent 29f891b821
commit b21b16a98f
3 changed files with 16 additions and 0 deletions

View file

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

View file

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

View file

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