Specifications

Aastra July 2014 PA-001011-03-04
288
o uri string
setDestroyOnExit() to set DestroyonExit parameter to 'yes', 'no' by default (optional)
setBeep() to enable a notification beep with the object (optional)
setLockIn(uri) to set the Lock-in tag to 'yes' and the GoodbyeLockInURI (optional)
o uri string, GoodByeLockInURI
setAllowAnswer() to set the allowAnswer tag to 'yes' (optional)
setAllowDrop() to set the allowDrop tag to 'yes' (optional)
setAllowXfer() to set the allowXfer tag to 'yes' (optional)
setAllowConf() to set the allowConf tag to 'yes' (optional)
setTimeout(timeout) to define a specific timeout for the XML object (optional)
o timeout integer (seconds)
addSoftkey(index,label,uri) to add custom soktkeys to the object (optional)
o index integer, softkey number
o label string
o uri string
setRefresh(timeout,URL) to add Refresh parameters to the object (optional)
o timeout integer (seconds)
o URL string
setEncodingUTF8() to change encoding from default ISO-8859-1 to UTF-8 (optional)
addIcon(index,icon) to add custom icons to the object (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.
setText(text) to set the text to be displayed.
o text string
setAllowDTMF() to allow DTMF passthrough on the object
Example
require_once('AastraIPPhoneTextScreen.class.php');
$text = new AastraIPPhoneTextScreen();
$text->setTitle('Title');
$text->setText('Text to be displayed and this text can be really
long…');
$text->setDestroyOnExit();
$text->addSoftkey('1', 'Mail',
'http://myserver.com/script.php?action=1');
$text->addSoftkey('10', 'Exit', 'SoftKey:Exit');
$text->output();