Easiest way to make outgoing call from manager

This commit is contained in:
Sylvain Berfini 2013-11-12 12:43:07 +01:00
parent 87e8ae05b4
commit d1785e31f7

View file

@ -371,7 +371,10 @@ public class LinphoneManager implements LinphoneCoreListener {
public void newOutgoingCall(AddressType address) {
String to = address.getText().toString();
newOutgoingCall(to, address.getDisplayedName());
}
public void newOutgoingCall(String to, String displayName) {
// if (mLc.isIncall()) {
// listenerDispatcher.tryingNewOutgoingCallButAlreadyInCall();
// return;
@ -392,7 +395,7 @@ public class LinphoneManager implements LinphoneCoreListener {
mListenerDispatcher.tryingNewOutgoingCallButWrongDestinationAddress();
return;
}
lAddress.setDisplayName(address.getDisplayedName());
lAddress.setDisplayName(displayName);
boolean isLowBandwidthConnection = !LinphoneUtils.isHightBandwidthConnection(LinphoneService.instance().getApplicationContext());