Specifications
Aastra July 2014 PA-001011-03-04
272
$configuration = new AastraIPPhoneConfiguration();
$configuration->addEntry('softkey1 label','Test');
$configuration->addEntry('softkey1 type','xml');
$configuration->setTriggerDestroyOnExit();
$configuration->setBeep();
$configuration->output();
In this example, the label and the type of the softkey 1 are changed.
13.3 AastraIPPhoneExecute()
This class allows you to create a XML PhoneExecute object.
Include
AastraIPPhoneExecute.class.php
Methods
setBeep() to enable a notification beep with the object (optional)
setEncodingUTF8() to change encoding from default ISO-8859-1 to UTF-8 (optional)
generate() to return the generated XML for the object
output(flush) to display the object
o flush boolean optional, output buffer to be flushed out or not.
setTriggerDestroyOnExit() to set the triggerDestroyOnExit tag to "yes" (optional)
addEntry(url,interruptCall) to add an action to be executed.
o url string
o interruptCall string, optional, "yes" or "no"
Example
require_once('AastraIPPhoneExecute.class.php');
$execute = new AastraIPPhoneExecute();
$execute->addEntry('http://myserver.com/script.php?choice=2');
$execute->addEntry('Command: Reset');
$execute->output();
13.4 AastraIPPhoneFormattedTextScreen()
This class allows you to create a XML FormattedTextScreen object.
Include
AastraIPPhoneFormattedTextScreen.class.php
Methods
setTopTitle(title,color,icon_index) to set the Top Title of the XML screen (6739i only)
o title string
o color string, "red", "blue", ... (optional)
o icon_index integer, icon number