diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 6362bcfa3..489bb3c29 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -2,7 +2,7 @@ - + diff --git a/res/values-FR/strings.xml b/res/values-FR/strings.xml index 4021030ac..ba8c47fde 100644 --- a/res/values-FR/strings.xml +++ b/res/values-FR/strings.xml @@ -111,6 +111,10 @@ Démarrer au lancement du téléphone Outbound proxy Codecs + Time out de communication + Time out d\'appel entrant + Port vidéo + Port audio Activer les traces de débogage Reporter un problème diff --git a/res/values/non_localizable_strings.xml b/res/values/non_localizable_strings.xml index 5064e4559..6efcf79ca 100644 --- a/res/values/non_localizable_strings.xml +++ b/res/values/non_localizable_strings.xml @@ -90,4 +90,9 @@ pref_push_notification_key pref_auto_accept_friends_key + + pref_video_port_key + pref_audio_port_key + pref_incoming_expire_key + pref_communication_expire_key diff --git a/res/values/strings.xml b/res/values/strings.xml index 0c08fcea6..0464c129b 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -157,6 +157,10 @@ silk 24 Khz g729 Codecs + Communication timeout + Incoming call timeout + Video port + Audio port Place a call Debug diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml index f1475f57e..9baaafb63 100644 --- a/res/xml/preferences.xml +++ b/res/xml/preferences.xml @@ -79,6 +79,12 @@ + + + + = aPortEnd) { + mLc.setAudioPort(aPortStart); + } else { + mLc.setAudioPortRange(aPortStart, aPortEnd); + } + + if (vPortStart >= vPortEnd) { + mLc.setVideoPort(vPortStart); + } else { + mLc.setVideoPortRange(vPortStart, vPortEnd); + } + } + public void initFromConf() throws LinphoneConfigException { LinphoneCoreFactory.instance().setDebugMode(getPrefBoolean(R.string.pref_debug_key, false)); @@ -659,6 +696,8 @@ public final class LinphoneManager implements LinphoneCoreListener { mLc.setVideoPolicy(isAutoInitiateVideoCalls(), isAutoAcceptCamera()); + readAndSetAudioAndVideoPorts(); + try { // Configure audio codecs // enableDisableAudioCodec("speex", 32000, 1, R.string.pref_codec_speex32_key); diff --git a/submodules/linphone b/submodules/linphone index 0e580208a..78a66ffc9 160000 --- a/submodules/linphone +++ b/submodules/linphone @@ -1 +1 @@ -Subproject commit 0e580208a63ef4559f2e9cdb9f2200129a33b4b8 +Subproject commit 78a66ffc91e960f4cd3379495f02a00898235f3e