mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Added SIPINFO/Rfc2833 JNI glue
This commit is contained in:
parent
5b46fa5d42
commit
019c6f1c55
3 changed files with 28 additions and 0 deletions
|
|
@ -1869,6 +1869,14 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setUploadBandwidth(JNIEn
|
|||
linphone_core_set_upload_bandwidth((LinphoneCore *)lc, (int) bw);
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setUseSipInfoForDtmfs(JNIEnv *env, jobject thiz, jlong lc, jbool use){
|
||||
linphone_core_set_use_info_for_dtmf((LinphoneCore *)lc, (bool) use);
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setUseRfc2833ForDtmfs(JNIEnv *env, jobject thiz, jlong lc, jbool use){
|
||||
linphone_core_set_use_rfc2833_for_dtmf((LinphoneCore *)lc, (bool) use);
|
||||
}
|
||||
|
||||
extern "C" void Java_org_linphone_core_LinphoneCoreImpl_setDownloadPtime(JNIEnv *env, jobject thiz, jlong lc, jint ptime){
|
||||
linphone_core_set_download_ptime((LinphoneCore *)lc, (int) ptime);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -856,4 +856,14 @@ public interface LinphoneCore {
|
|||
* Set username and display name to use if no LinphoneProxyConfig configured
|
||||
*/
|
||||
void setPrimaryContact(String displayName, String username);
|
||||
|
||||
/**
|
||||
* Enable/Disable the use of SIP INFO for DTMFs
|
||||
*/
|
||||
void setUseSipInfoForDtmfs(boolean use);
|
||||
|
||||
/**
|
||||
* Enable/Disable the use of inband DTMFs
|
||||
*/
|
||||
void setUseRfc2833ForDtmfs(boolean use);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -798,4 +798,14 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
public void setPrimaryContact(String displayName, String username) {
|
||||
setPrimaryContact(nativePtr, displayName, username);
|
||||
}
|
||||
|
||||
private native void setUseSipInfoForDtmfs(long ptr, boolean use);
|
||||
public void setUseSipInfoForDtmfs(boolean use) {
|
||||
setUseSipInfoForDtmfs(nativePtr, use);
|
||||
}
|
||||
|
||||
private native void setUseRfc2833ForDtmfs(long ptr, boolean use);
|
||||
public void setUseRfc2833ForDtmfs(boolean use) {
|
||||
setUseRfc2833ForDtmfs(nativePtr, use);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue