Added bool to force depault domain for every call & updated liblinphone
This commit is contained in:
parent
11cffbda2b
commit
d8086454cf
3 changed files with 5 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
||||||
<string name="push_sender_id">622464153529</string>
|
<string name="push_sender_id">622464153529</string>
|
||||||
|
|
||||||
<string name="default_domain">sip.linphone.org</string>
|
<string name="default_domain">sip.linphone.org</string>
|
||||||
|
<bool name="override_domain_using_default_one">true</bool>
|
||||||
<string name="wizard_url">https://www.linphone.org/wizard.php</string>
|
<string name="wizard_url">https://www.linphone.org/wizard.php</string>
|
||||||
|
|
||||||
<!-- Interface settings -->
|
<!-- Interface settings -->
|
||||||
|
|
|
@ -383,6 +383,9 @@ public class LinphoneManager implements LinphoneCoreListener {
|
||||||
LinphoneAddress lAddress;
|
LinphoneAddress lAddress;
|
||||||
try {
|
try {
|
||||||
lAddress = mLc.interpretUrl(to);
|
lAddress = mLc.interpretUrl(to);
|
||||||
|
if (mServiceContext.getResources().getBoolean(R.bool.override_domain_using_default_one)) {
|
||||||
|
lAddress.setDomain(mServiceContext.getString(R.string.default_domain));
|
||||||
|
}
|
||||||
LinphoneProxyConfig lpc = mLc.getDefaultProxyConfig();
|
LinphoneProxyConfig lpc = mLc.getDefaultProxyConfig();
|
||||||
|
|
||||||
if (mR.getBoolean(R.bool.forbid_self_call) && lpc!=null && lAddress.asStringUriOnly().equals(lpc.getIdentity())) {
|
if (mR.getBoolean(R.bool.forbid_self_call) && lpc!=null && lAddress.asStringUriOnly().equals(lpc.getIdentity())) {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit d1dc89b52078c002eeb2686179d70fe80c6f6ef2
|
Subproject commit 74359410314eb7a49e5eeb56c4d995f234d36bac
|
Loading…
Reference in a new issue