mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-03 11:49:31 +00:00
add jni wrapper for: enableSdp200Ack
This commit is contained in:
parent
504616b3ef
commit
4e7f788ffa
3 changed files with 25 additions and 2 deletions
|
|
@ -4600,10 +4600,10 @@ JNIEXPORT void JNICALL Java_org_linphone_core_LinphoneCoreImpl_enableSdp200Ack(J
|
|||
linphone_core_enable_sdp_200_ack((LinphoneCore*)lc,enable);
|
||||
}
|
||||
|
||||
JNIEXPORT jbool JNICALL Java_org_linphone_core_LinphoneCoreImpl_isSdp200AckEnabled(JNIEnv* env
|
||||
JNIEXPORT jboolean JNICALL Java_org_linphone_core_LinphoneCoreImpl_isSdp200AckEnabled(JNIEnv* env
|
||||
,jobject thiz
|
||||
,jlong lc) {
|
||||
return (jbool)linphone_core_sdp_200_ack_enabled((const LinphoneCore*)lc);
|
||||
return (jboolean)linphone_core_sdp_200_ack_enabled((const LinphoneCore*)lc);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1545,4 +1545,16 @@ public interface LinphoneCore {
|
|||
* @return the MTU in bytes.
|
||||
*/
|
||||
public int getMtu();
|
||||
/**
|
||||
Control when media offer is sent in SIP INVITE.
|
||||
* @param enable true if INVITE has to be sent whitout SDP.
|
||||
* */
|
||||
public void enableSdp200Ack(boolean enable);
|
||||
/**
|
||||
* Media offer control param for SIP INVITE.
|
||||
* @return true if INVITE has to be sent whitout SDP.
|
||||
*/
|
||||
public boolean isSdp200AckEnabled();
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -147,6 +147,8 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
private native int migrateToMultiTransport(long nativePtr);
|
||||
private native long createProxyConfig(long nativePtr);
|
||||
private native void setCallErrorTone(long nativePtr, int reason, String path);
|
||||
private native void enableSdp200Ack(long nativePtr,boolean enable);
|
||||
private native boolean isSdp200AckEnabled(long nativePtr);
|
||||
|
||||
LinphoneCoreImpl(LinphoneCoreListener listener, File userConfig, File factoryConfig, Object userdata) throws IOException {
|
||||
mListener = listener;
|
||||
|
|
@ -1150,4 +1152,13 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
public int getMtu() {
|
||||
return getMtu(nativePtr);
|
||||
}
|
||||
@Override
|
||||
public void enableSdp200Ack(boolean enable) {
|
||||
enableSdp200Ack(nativePtr,enable);
|
||||
}
|
||||
@Override
|
||||
public boolean isSdp200AckEnabled() {
|
||||
return isSdp200AckEnabled(nativePtr);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue