Updated liblinphone + fixes for phone numbers
This commit is contained in:
parent
0fd4c17f28
commit
9a416f3c92
2 changed files with 4 additions and 9 deletions
|
@ -237,14 +237,9 @@ public class ContactsManager extends ContentObserver {
|
||||||
lpc = lc.getDefaultProxyConfig();
|
lpc = lc.getDefaultProxyConfig();
|
||||||
}
|
}
|
||||||
String normalized = lpc.normalizePhoneNumber(phoneNumber);
|
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) {
|
if (lf != null) {
|
||||||
LinphoneContact contact = (LinphoneContact)((LinphoneFriendImpl)lf).getUserData();
|
LinphoneContact contact = (LinphoneContact)((LinphoneFriendImpl)lf).getUserData();
|
||||||
return contact;
|
return contact;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 9b7e5fabc35fe264a703affcf04571a8b0cee9bf
|
Subproject commit 376f8ead9c781e048e151aa4b66db1d0715914e7
|
Loading…
Reference in a new issue