Bläddra i källkod

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).
master
paweldomas 6 år sedan
förälder
incheckning
19e8e8710a

+ 1
- 1
android/sdk/src/main/java/org/jitsi/meet/sdk/ConnectionService.java Visa fil

189
         connection.setConnectionProperties(Connection.PROPERTY_SELF_MANAGED);
189
         connection.setConnectionProperties(Connection.PROPERTY_SELF_MANAGED);
190
         connection.setAddress(
190
         connection.setAddress(
191
             request.getAddress(),
191
             request.getAddress(),
192
-            TelecomManager.PRESENTATION_ALLOWED);
192
+            TelecomManager.PRESENTATION_UNKNOWN);
193
         connection.setExtras(request.getExtras());
193
         connection.setExtras(request.getExtras());
194
 
194
 
195
         connection.setAudioModeIsVoip(true);
195
         connection.setAudioModeIsVoip(true);

Laddar…
Avbryt
Spara