linphone-desktop icon indicating copy to clipboard operation
linphone-desktop copied to clipboard

LDAP lookup on incoming calls matching numbers

Open HamburgerJungeJr opened this issue 2 years ago • 1 comments

Describe the bug I'm using the LDAP-integration to get my companys contacts. I can start a call by typing the name in the searchbar and click on the call icon.

Now when a call is coming in, linphone tries to lookup the caller name via LDAP. My problem is now that the LDAP server doesn't return the same phonenumber as in the request by linphone. Instead it returns a standard number format.

I verified with Wireshark that the LDAP-Server is returning the correct caller but linphone seems to ignore it because the phone numbers don't match.

For example my PBX sends the number L0#04012345678 The LDAP-Server removes the trailing L0# and does a search on the contacts. A contact with the phonenumber 04012345678 is found. The LDAP-server returns an entry with the phonenumber +494012345678

Linphone seems to try to match L0#04012345678 with +494012345678 which obviously fails and no caller name is shown

Is it possible to disable the numbermatching and use for example the first entry if multiple entries are returned by the LDAP-server?

System: Fedora 35 Linphone Desktop 4.4.0-alpha-34-gbc91382c - Qt5.12.12 Core 5.0.47

HamburgerJungeJr avatar Nov 05 '21 16:11 HamburgerJungeJr

May I ask how you got LDAP working on Linphone ? Ive been trying to get it to work with our OpenLDAP server for days now.

crt-boi avatar Aug 23 '22 14:08 crt-boi