diff --git a/res/raw/linphonerc b/res/raw/linphonerc index 61ca37290..65e507487 100644 --- a/res/raw/linphonerc +++ b/res/raw/linphonerc @@ -33,10 +33,12 @@ capture_dev_id=ANDROID SND: Android Sound card remote_ring=/data/data/org.linphone/files/ringback.wav local_ring=/data/data/org.linphone/files/oldphone_mono.wav ec_tail_len=120 +ec_framesize=128 + el_type=mic el_thres=0.05 el_force=100000 -el_sustain=200 +el_sustain=600 el_transmit_thres=1.7 ng_floorgain=0.01 diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml index 29b0c2b3c..398659eb9 100644 --- a/res/xml/preferences.xml +++ b/res/xml/preferences.xml @@ -41,7 +41,7 @@ - 0){ + LinphoneAuthInfo lAuthInfo = LinphoneCoreFactory.instance().createAuthInfo(lUserName, lPasswd,null); + mLc.addAuthInfo(lAuthInfo); + } //proxy @@ -841,8 +855,6 @@ public final class LinphoneManager implements LinphoneCoreListener { Editor e = mPref.edit(); boolean fastCpu = Version.isArmv7(); - e.putBoolean(getString(pref_echo_cancellation_key), fastCpu); - e.putBoolean(getString(R.string.pref_codec_gsm_key), true); e.putBoolean(getString(R.string.pref_codec_pcma_key), true); e.putBoolean(getString(R.string.pref_codec_pcmu_key), true); diff --git a/src/org/linphone/core/LinphoneCoreImpl.java b/src/org/linphone/core/LinphoneCoreImpl.java index 99a2e194a..23a8d3914 100644 --- a/src/org/linphone/core/LinphoneCoreImpl.java +++ b/src/org/linphone/core/LinphoneCoreImpl.java @@ -103,6 +103,7 @@ class LinphoneCoreImpl implements LinphoneCore { private native void setUploadPtime(long nativePtr, int ptime); private native void setDownloadPtime(long nativePtr, int ptime); private native void setZrtpSecretsCache(long nativePtr, String file); + private native void enableEchoLimiter(long nativePtr2, boolean val); LinphoneCoreImpl(LinphoneCoreListener listener, File userConfig,File factoryConfig,Object userdata) throws IOException { mListener=listener; @@ -503,4 +504,8 @@ class LinphoneCoreImpl implements LinphoneCore { public synchronized void setZrtpSecretsCache(String file) { setZrtpSecretsCache(nativePtr,file); } + public void enableEchoLimiter(boolean val) { + enableEchoLimiter(nativePtr,val); + } + } diff --git a/submodules/linphone b/submodules/linphone index 20709fc5f..fba8726ff 160000 --- a/submodules/linphone +++ b/submodules/linphone @@ -1 +1 @@ -Subproject commit 20709fc5f1b06c04f2311e1f6ec4ff45f76f4de8 +Subproject commit fba8726ff8acfb71ee1588e664476d6590015f50