Specifications

PA-001011-03-04 Aastra July 2014
293
$records[99]['office'] = "+1 (0) 555-123-1234";
$records[99]['officeDigits'] = "1234";
$records[99]['home'] = "044 555 22 33";
$records[99]['company'] = "Mitel";
$directory = new AastraIPPhoneScrollableDirectory();
$directory->setTitle('Directory');
$directory->setBackURI($XML_SERVER."?action=start");
$directory->setEntries($records):
$directory->output();
13.14 Examples provided with the PHP API
With the PHP API, Aastra provides some source code on how to use it.
sample.php for the regular XML objects
The whole directory php_classes” must be installed on a HTTP server anywhere behind the root
directory
sample.php
On any type of phone, create a XML softkey/prgkey to call the sample.php script using the
following uri:
http://myserver.com/mydirectory/sample.php
It includes examples for
PhoneConfiguration
PhoneExecute
PhoneInputScreen (3)
PhoneTextMenu (2)
PhoneTextScreen
PhoneFormattedTextScreen
PhoneStatus (2)