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