linphone-iphone/linphone/coreapi/plugins/buddylookup
smorlat b1aedb2fbd remove all .dev files (deprecated build system).
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@665 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
2009-09-17 19:42:45 +00:00
..
src - make zip works 2009-06-21 21:38:37 +02:00
AUTHORS Import buddylookup xml-rpc plugin. 2009-03-09 16:00:00 +00:00
autogen.sh - make zip works 2009-06-21 21:38:37 +02:00
ChangeLog Import buddylookup xml-rpc plugin. 2009-03-09 16:00:00 +00:00
configure.ac remove msdscap (integrated in mediastreamer2 directly) 2009-08-17 10:40:11 +00:00
COPYING Import buddylookup xml-rpc plugin. 2009-03-09 16:00:00 +00:00
INSTALL remove msdscap (integrated in mediastreamer2 directly) 2009-08-17 10:40:11 +00:00
Makefile.am still many bugfixes and improvements for mingw compilation. 2009-08-17 10:40:15 +00:00
NEWS Import buddylookup xml-rpc plugin. 2009-03-09 16:00:00 +00:00
README Import buddylookup xml-rpc plugin. 2009-03-09 16:00:00 +00:00

This plugin implements a buddy lookup using a xml-rpc lookup to a distant server.
The server side implementation isn't available here but it is quite simple to implement.
The format of the xml-rpc request defined below:

The function name is "fp.searchUsers"
 /**
 * Arguments:
 * sip_uri: string, mandatory, the SIP username, ie john.doe@example.net
 * password: string, mandatory, the SIP password
 * criteria: string, mandatory, the key or criteria to search for, multiple keywords should be space separated
 * limit: int, optional default 100, the maximum number of results to get back, -1 for all of them (note that -1 would really be limited by a hard limit at the server, something decent in the style of 100 or similar).
 * offset: int, optional default 0, where to start in the result list for the given criteria
 * domain: string, optional default is the same name as the SIP name, in which domain to search for users
 * 
 * Returns:
 * If sip-uri & password is correct, an array where each element is a struct with the following members:
 * first_name: string, example: "John"
 * last_name: string, example: "Doe"
 * display_name: string, example: "John Doe"
 * street: string, example: "Paradise Avenue"
 * zip: string, example: "7777777"
 * city: string, example: "Heaven"
 * country: string, example: "SKY"
 * email: string, example: "john.doe@example.net"
 * sip: string, example "john.doe@example.net"
 * domain: string, example: "myjoice.com"
 * 
 * If username || password is incorrect an error with a numeric code and a message is returned.
 *
 */

The server uri is configurable in ~/.linphonerc :

[BuddyLookup]
url=https://....