forked from mirrors/linphone-iphone
Added setIncomingTimeout to JNI
This commit is contained in:
parent
78a66ffc91
commit
30032453d6
3 changed files with 16 additions and 0 deletions
|
|
@ -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 {
|
||||
mListener=listener;
|
||||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue