Specifications

Aastra July 2014 PA-001011-03-04
312
17.3 Installation
The provided scripts must be extracted under the ROOT directory of the HTTP server in a
‘xml’directory, a cache directory (default /var/cache/aastra) must also be created with read/write
access for the HTTP server user.
The cache directory can be configured in config/server.conf, see chapter 17.6.1 for more details.
17.4 XML key configuration
Directory
The uri to use is
http://myserver.com/xml/directory/directory.php?user=USER&source=SOURCE
Where
myserver.com is the name or IP address of your HTTP server
USER is the userID, if not provided the script uses the phone MAC address as the userID.
SOURCE is the name of the csv file located in the ‘directory’ directory, if not provided, the
script uses the file configured as default in config/directory.conf
Speed dial
The uri to use is
http://myserver.com/xml/directory/speed.php?user=USER
Where
myserver.com is the name or IP address of your HTTP server
USER is the userID, if not provided the script uses the phone MAC address as the userID.
Note: USER must be the same for both applications in order to have the speed dial integrated
in the directory application.
17.5 CSV file format
The CSV file must respect the following format:
First name, Last name, Company, Title, Work, Home, Mobile
The application is provided with a sample database ‘directory/directory.txt’ where all the fields have
been randomly generated.
17.6 Configuration files
17.6.1 server.conf
This file includes configuration parameters for the XML server.
[General]
# Public IP address (optional), if not provided $_SERVER['HTTP_HOST'] is used
public=
# Path for the Aastra cache directory (optional), if not provided /var/cache/aastra is used
cache=
# Path for the TFTP root directory (optional) if not provided /tftpboot is used
tftp=