Commit 30032453 authored by Sylvain Berfini's avatar Sylvain Berfini 🐮
Browse files

Added setIncomingTimeout to JNI

parent 78a66ffc
......@@ -2130,6 +2130,10 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setVideoPortRange(JNIEnv
linphone_core_set_video_port_range((LinphoneCore *)lc, min_port, max_port);
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setIncomingTimeout(JNIEnv *env, jobject thiz, jlong lc, jint timeout) {
linphone_core_set_inc_timeout((LinphoneCore *)lc, timeout);
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;
......@@ -829,4 +829,11 @@ public interface LinphoneCore {
* Sets the UDP port range from which to randomly select the port used for video streaming.
void setVideoPortRange(int minPort, int maxPort);
* Set the incoming call timeout in seconds.
* If an incoming call isn't answered for this timeout period, it is
* automatically declined.
void setIncomingTimeout(int timeout);
......@@ -114,6 +114,7 @@ class LinphoneCoreImpl implements LinphoneCore {
private native void setVideoPort(long nativePtr, int port);
private native void setAudioPortRange(long nativePtr, int minPort, int maxPort);
private native void setVideoPortRange(long nativePtr, int minPort, int maxPort);
private native void setIncomingTimeout(long nativePtr, int timeout);
LinphoneCoreImpl(LinphoneCoreListener listener, File userConfig,File factoryConfig,Object userdata) throws IOException {
......@@ -777,4 +778,8 @@ class LinphoneCoreImpl implements LinphoneCore {
public void setVideoPortRange(int minPort, int maxPort) {
setVideoPortRange(nativePtr, minPort, maxPort);
public void setIncomingTimeout(int timeout) {
setIncomingTimeout(nativePtr, timeout);
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