Updated liblinphone + fixes for phone numbers

This commit is contained in:
Sylvain Berfini 2017-02-16 16:54:22 +01:00
parent 0fd4c17f28
commit 9a416f3c92
2 changed files with 4 additions and 9 deletions

View file

@ -237,14 +237,9 @@ public class ContactsManager extends ContentObserver {
lpc = lc.getDefaultProxyConfig();
}
String normalized = lpc.normalizePhoneNumber(phoneNumber);
LinphoneAddress addr = null;
try {
addr = LinphoneCoreFactory.instance().createLinphoneAddress(normalized);
} catch (LinphoneCoreException e) {
return null;
}
LinphoneFriend lf = lc.findFriendByAddress(addr.asStringUriOnly());
LinphoneAddress addr = lpc.normalizeSipUri(normalized);
LinphoneFriend lf = lc.findFriendByAddress(addr.asStringUriOnly() + ";user=phone"); // Without this, the hashmap inside liblinphone won't find it...
if (lf != null) {
LinphoneContact contact = (LinphoneContact)((LinphoneFriendImpl)lf).getUserData();
return contact;

@ -1 +1 @@
Subproject commit 9b7e5fabc35fe264a703affcf04571a8b0cee9bf
Subproject commit 376f8ead9c781e048e151aa4b66db1d0715914e7