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;
* 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);
}
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 {
mListener=listener;
public void setVideoPortRange(int minPort, int maxPort) {
setVideoPortRange(nativePtr, minPort, maxPort);
}
+
+ public void setIncomingTimeout(int timeout) {
+ setIncomingTimeout(nativePtr, timeout);
+ }
}