CSV Web service directories¶
The data returned by the Web service must have the same format than the file directory. In the same way, you will be able to choose the headers and the separator in the next step.
This directory type matches the CSV web service backend in xivo-dird.
For web service directories, the Direct match and the Match reverse directories must be filled with the name of the HTTP query parameter that will be used when doing the HTTP requests.
Note that the CSV returned by the Web service is not further processed.
Manual configuration needs to be done to use a secure (SSL) connection. See CSV web service for more details.
Available fields are the ones contained in the CSV result.
http://example.org:8000/ws-phonebook return csv:
title|firstname|lastname|displayname|society|phone|email mr|Emmett|Brown|Brown Emmett|DMCfirstname.lastname@example.org ms|Alice|Wonderland|Wonderland Alice|DMCemail@example.com
Adding a source¶
Configuring source access¶
Given you have the following directory definition:
Direct match :
Match reverse directories :
When a direct lookup for “Alice” is performed, then the following HTTP request:
GET /ws-phonebook?search=Alice HTTP/1.1
is emitted. When a reverse lookup for “5555551234” is performed, then the following HTTP request:
GET /ws-phonebook?phone=5555551234 HTTP/1.1
is emitted. On the reverse lookup, a filtering is performed on the result. In this example, it should have
phone as column.