]> sjero.net Git - linphone/commitdiff
Added SIPINFO/Rfc2833 JNI glue
authorSylvain Berfini <sylvain.berfini@belledonne-communications.com>
Thu, 29 Nov 2012 15:40:14 +0000 (16:40 +0100)
committerSylvain Berfini <sylvain.berfini@belledonne-communications.com>
Thu, 29 Nov 2012 15:40:14 +0000 (16:40 +0100)
coreapi/linphonecore_jni.cc
java/common/org/linphone/core/LinphoneCore.java
java/impl/org/linphone/core/LinphoneCoreImpl.java

index 03d5c0df0a8402637187581a0b27f13e95fd15f1..46b04be9c192f7985477e79293d93f8fba0035c9 100644 (file)
@@ -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);
 }
index 450091843fab58caed488d062f290f4ad1e2e47f..c1da356bb070b0ae2ee4f347e18a52659c9d8f1b 100644 (file)
@@ -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);
 }
index 5e6864559f08eb18950746d8c7059cf538a89dac..c00c9a37ccf6a0ddc555faaca26e937cb48384b6 100644 (file)
@@ -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);
+       }
 }