BelledonneCommunications / linphone-desktop

Linphone is a free VoIP and video softphone based on the SIP protocol. Mirror of git://git.linphone.org/linphone-desktop.git
https://linphone.org/
GNU General Public License v3.0
408 stars 209 forks source link

CardDAV implementation? #349

Open mokkin opened 4 years ago

mokkin commented 4 years ago

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?

Somebodyisnobody commented 4 years ago

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

jason1987d commented 4 years ago

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

julonexus commented 4 years ago

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

Somebodyisnobody commented 4 years ago

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.

julonexus commented 4 years ago

You can use something like that :

VcardModel  * card = CoreManager::getInstance()->createDetachedVcardModel();
...< edit your card>...
CoreManager::getInstance()->getContactsListModel()->addContact(card);
Somebodyisnobody commented 4 years ago

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

lukasubo commented 4 years ago

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

Somebodyisnobody commented 4 years ago

Oh yeah that would be wounderful

jason1987d commented 4 years ago

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?

cweiske commented 3 years ago

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:12345@sip.example.com
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)

gfr commented 3 years ago

+1

Luensche commented 3 years ago

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

biokomiker commented 3 years ago

The address book support would be great indeed

JokerGermany commented 3 years ago

+1

flxzt commented 3 years ago

+1

biokomiker commented 3 years ago

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!

julonexus commented 3 years ago

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

biokomiker commented 3 years ago

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.

imp1sh commented 2 years ago

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.

Somebodyisnobody commented 2 years ago

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?

4braincells commented 1 year ago

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 ...

eigenstil commented 11 months ago

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