Compare commits
2 commits
5e8d51db9f
...
414a94cb2f
Author | SHA1 | Date | |
---|---|---|---|
414a94cb2f | |||
e585a89657 |
2 changed files with 7 additions and 9 deletions
|
@ -166,8 +166,8 @@ public class ConnectionService extends android.telecom.ConnectionService {
|
|||
CheogramConnection connection = new CheogramConnection(account, with, null);
|
||||
connection.setSessionId(sessionId);
|
||||
connection.setAddress(
|
||||
Uri.fromParts("tel", with.getLocal(), null),
|
||||
TelecomManager.PRESENTATION_ALLOWED
|
||||
Uri.fromParts("tel", with.getLocal(), null),
|
||||
TelecomManager.PRESENTATION_ALLOWED
|
||||
);
|
||||
connection.setRinging();
|
||||
|
||||
|
@ -269,7 +269,9 @@ public class ConnectionService extends android.telecom.ConnectionService {
|
|||
public void onAnswer() {
|
||||
// For incoming calls, a connection update may not have been triggered before answering
|
||||
// so we have to acquire the rtp connection object here
|
||||
this.rtpConnection = xmppConnectionService.getJingleConnectionManager().findJingleRtpConnection(account, with, sessionId);
|
||||
this.rtpConnection =
|
||||
xmppConnectionService.getJingleConnectionManager()
|
||||
.findJingleRtpConnection(account, with, sessionId);
|
||||
|
||||
rtpConnection.get().acceptCall();
|
||||
}
|
||||
|
|
|
@ -444,14 +444,10 @@ public class NotificationService {
|
|||
|
||||
PhoneAccountHandle handle = null;
|
||||
for (Contact contact : id.account.getRoster().getContacts()) {
|
||||
if (!contact.getJid().getDomain().equals(id.with.getDomain())) {
|
||||
if (!contact.getJid().getDomain().equals(id.with.getDomain()))
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!contact.getPresences().anyIdentity("gateway", "pstn")) {
|
||||
if (!contact.getPresences().anyIdentity("gateway", "pstn"))
|
||||
continue;
|
||||
}
|
||||
|
||||
handle = contact.phoneAccountHandle();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue