fix(Android/ConnectionService): do not display the address

Turns out that on Samsung phones the calls placed with
the ConnectionService appear in the calls log as weird long numbers.
The system mangles the address we give it ("sip:meet.jit.si/something")
into this weird long number and the call to request.getAddress() returns
that. Turn off the presentation as neither this number nor our address
makes sense. This way the call appears as from "Unknown" caller in call
history which is still not perfect, but better than the random number.

Note that other phones will preserve the originally passed address value
(tested on One Plus 5).
pull/4023/head jitsi-meet_3612
paweldomas 6 years ago committed by Saúl Ibarra Corretgé
parent 3b24124d57
commit 19e8e8710a
  1. 2
      android/sdk/src/main/java/org/jitsi/meet/sdk/ConnectionService.java

@ -189,7 +189,7 @@ public class ConnectionService extends android.telecom.ConnectionService {
connection.setConnectionProperties(Connection.PROPERTY_SELF_MANAGED);
connection.setAddress(
request.getAddress(),
TelecomManager.PRESENTATION_ALLOWED);
TelecomManager.PRESENTATION_UNKNOWN);
connection.setExtras(request.getExtras());
connection.setAudioModeIsVoip(true);

Loading…
Cancel
Save