Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
30032453
Commit
30032453
authored
Oct 15, 2012
by
Sylvain Berfini
🐮
Browse files
Added setIncomingTimeout to JNI
parent
78a66ffc
Changes
3
Hide whitespace changes
Inline
Side-by-side
coreapi/linphonecore_jni.cc
View file @
30032453
...
...
@@ -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
;
...
...
java/common/org/linphone/core/LinphoneCore.java
View file @
30032453
...
...
@@ -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
);
}
java/impl/org/linphone/core/LinphoneCoreImpl.java
View file @
30032453
...
...
@@ -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
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment