Easiest way to make outgoing call from manager
This commit is contained in:
parent
87e8ae05b4
commit
d1785e31f7
1 changed files with 5 additions and 2 deletions
|
@ -371,7 +371,10 @@ public class LinphoneManager implements LinphoneCoreListener {
|
||||||
|
|
||||||
public void newOutgoingCall(AddressType address) {
|
public void newOutgoingCall(AddressType address) {
|
||||||
String to = address.getText().toString();
|
String to = address.getText().toString();
|
||||||
|
newOutgoingCall(to, address.getDisplayedName());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void newOutgoingCall(String to, String displayName) {
|
||||||
// if (mLc.isIncall()) {
|
// if (mLc.isIncall()) {
|
||||||
// listenerDispatcher.tryingNewOutgoingCallButAlreadyInCall();
|
// listenerDispatcher.tryingNewOutgoingCallButAlreadyInCall();
|
||||||
// return;
|
// return;
|
||||||
|
@ -392,7 +395,7 @@ public class LinphoneManager implements LinphoneCoreListener {
|
||||||
mListenerDispatcher.tryingNewOutgoingCallButWrongDestinationAddress();
|
mListenerDispatcher.tryingNewOutgoingCallButWrongDestinationAddress();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
lAddress.setDisplayName(address.getDisplayedName());
|
lAddress.setDisplayName(displayName);
|
||||||
|
|
||||||
boolean isLowBandwidthConnection = !LinphoneUtils.isHightBandwidthConnection(LinphoneService.instance().getApplicationContext());
|
boolean isLowBandwidthConnection = !LinphoneUtils.isHightBandwidthConnection(LinphoneService.instance().getApplicationContext());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue