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

CardDAV implementation?

Open mokkin opened this issue 4 years ago • 22 comments

Four years ago CardDAV implementation was announced. I tested the actual 4.2 alpha right now, but I couldn't find any integration of external addressbooks or CardDAV. Is this not ready yet or am I looking wrong?

mokkin avatar Apr 22 '20 09:04 mokkin

See also: https://gitlab.linphone.org/BC/public/linphone-desktop/issues/17

Somebodyisnobody avatar Jun 05 '20 14:06 Somebodyisnobody

The link issue 17 just links back to this page. Has anything else happened concerning this? CardDAV would be very useful.

jason1987d avatar Jul 12 '20 19:07 jason1987d

CarDAV is supported in the SDK but not fully supported in the Desktop Application (for example, importer of external address book is missing)

julonexus avatar Jul 13 '20 08:07 julonexus

Is there any other option to work arround this? I can extract a vcf of my contacts for example. Just that I can import my contacts on any way.

Somebodyisnobody avatar Jul 13 '20 09:07 Somebodyisnobody

You can use something like that :

VcardModel  * card = CoreManager::getInstance()->createDetachedVcardModel();
...< edit your card>...
CoreManager::getInstance()->getContactsListModel()->addContact(card);

julonexus avatar Jul 13 '20 09:07 julonexus

Oh I thought Linphone Desktop has such an feature already implemented. 😄

Somebodyisnobody avatar Jul 13 '20 10:07 Somebodyisnobody

Is syncing contacts from a CardDAV server on any roadmaps for Linphone Desktop? That way contacts can be synced between desktop and phone.

lukasubo avatar Jul 14 '20 14:07 lukasubo

Oh yeah that would be wounderful

Somebodyisnobody avatar Jul 14 '20 14:07 Somebodyisnobody

iirc the gtk implementation had a feature to import vcf ..... but the app crashed when I actually went to do that. why was the gtk gui abandoned anyway?

jason1987d avatar Jul 23 '20 15:07 jason1987d

SQLite database ~/.local/share/linphone/friends.db has a table called "friends" with a SIP URI and a vCard column. It even has "vCard_etag" and "vCard_url", as if synchronization has been planned already.

The vCard column contains vCard 4.0 data:

BEGIN:VCARD
VERSION:4.0
IMPP:sip:[email protected]
FN:Example contact
END:VCARD

So it should be possible to build a script that syncs vcard data from a carddav server into that sqlite database.


There actually is a crude one at https://blog.b-nm.at/2019/08/27/linphone-importing-contacts-from-commandline-on-linux/ (you have to use "view source" to see the php code)

cweiske avatar Nov 12 '20 10:11 cweiske

+1

gfr avatar Nov 25 '20 10:11 gfr

Are there any problems with issue or it's just that nobody started development til now?

Luensche avatar Dec 03 '20 09:12 Luensche

The address book support would be great indeed

biokomiker avatar Feb 20 '21 16:02 biokomiker

+1

JokerGermany avatar Mar 05 '21 23:03 JokerGermany

+1

flxzt avatar Mar 11 '21 22:03 flxzt

I checked out the following softphones:

Twinkle: works, but no address book support Zoiper5: works, free version no address book support Blinks: google address book defunct Jami (Ring): I had it working now not. Modern Interface, no address book support Microsip (via wine): works, nice tiny interface, no address book support

Linphone: works, nice interface but again no address book support. The best option would be to integrate either an import once or even better to support an external cloud address book.

Matching of incoming calls with the addressbook would be great of course.

Thanks!

biokomiker avatar Mar 16 '21 19:03 biokomiker

Hi, Connecting to LDAP will be available soon. But for CardDAV, there is no plan to do this kind of address book.

On the snapshot version (master branch), there is a new alpha feature that allow you to implement yourself a plugin that do the stuff. You can get some help there : https://wiki.linphone.org/xwiki/wiki/public/view/Linphone/Linphone%20Desktop%20Plugins/ Regards

julonexus avatar Apr 21 '21 21:04 julonexus

This is some progress. Unfortunately I use google contact which do not offer LDAP. For CardDav maybe the one time for ever solution with an import script as pointed out by cweiske could be good enough.

biokomiker avatar Apr 22 '21 19:04 biokomiker

I would also like to see a possibility to access carddav data. If it was via Evolution into Gnome Contacts that would also be sufficient IMHO.

imp1sh avatar Aug 12 '22 23:08 imp1sh

So I would spend a few dollars for this feature. @julonexus can you tell us if you would implement CardDAV support when we set a bounty (e.g. bountysource.com) with an amout X? Where would the X be located approximately?

Somebodyisnobody avatar Aug 13 '22 19:08 Somebodyisnobody

It's really painful that all SIP softphones have some severe problems. But not being able to access the local address book on a Mac is really a NOGO for Mac users. But linphone is in good companionship here: Telephone.app integrates Addressbook nicely but has problems with th SIP implementation and fails with many providers eg Geman Telekom Mobile, Jitsi addressbook access doesnt work, Zoiper pro costs 50,- and looks like a game console from the 80ies ... So I wonder why nobody appreciates that macs make 10% of the devices out there ...

4braincells avatar May 31 '23 07:05 4braincells

I would also be very interested in Carddav in Linphone Desktop. Does anyone know of any plugin or script for doing this to date?

edit: I found this link, but I can see nothing there to download: https://gitlab.linphone.org/BC/public/linphone-desktop-plugins/contacts

eigenstil avatar Nov 16 '23 07:11 eigenstil