Allow call to self.

This commit is contained in:
Guillaume Beraudo 2012-05-11 14:30:16 +02:00
parent 051c423e72
commit b3798a436c
2 changed files with 2 additions and 1 deletions

View file

@ -17,6 +17,7 @@
<bool name="allow_edit_in_dialer">true</bool>
<color name="conf_active_bg_color">#191970</color>
<bool name="forbid_self_call">false</bool>
<string name="about_bugreport_email">linphone-android@belledonne-communications.com</string>
</resources>

View file

@ -314,7 +314,7 @@ public final class LinphoneManager implements LinphoneCoreListener {
LinphoneAddress lAddress;
try {
lAddress = mLc.interpretUrl(to);
if (mLc.isMyself(lAddress.asStringUriOnly())) {
if (mR.getBoolean(R.bool.forbid_self_call) && mLc.isMyself(lAddress.asStringUriOnly())) {
mListenerDispatcher.tryingNewOutgoingCallButWrongDestinationAddress();
return;
}