On 29.08.2014, at 22:44, Olivier <[email protected]> wrote: > Le 29 août 2014 14:30, "Marie Fischer" <[email protected]> a écrit : > > > > Hi, > > > > we use OSX CardDAV server and its response is very slow, so we ended up > > syncing all the CardDAV contacts to MySQL via cron. Asterisk dialplan then > > runs a query defined in func_odbc.conf. > > > > What kind of carddav query did you send to your server ? Finding caller's > name from phone number, I presume ? > > Which client side tools did you then use ? > > I may be wrong but googling a bit, most examples of carddav I found where > for syncing directories, not querying so your experience is very interesting.
Sorry to disappoint you, but we also do just sync, not lookup by number. I just spent an evening or two on this years ago, didn't go very deeply into CardDAV protocol. I suppose you'd want to look at REPORT request with "filter" (http://tools.ietf.org/html/rfc6352#section-10.5) and search for numbers that end with the same string as the phone number you have (remove country prefix if needed). As for tools, I sent raw requests via Perl's LWP::UserAgent and HTTP::Request and parsed the returned *.vcf's with Text::vCard::Addressbook. Didn't find a nice CardDAV module/library back then. -- marie -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
