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);
}
* 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);
}
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);
+ }
}