Specifications

PA-001011-03-04 Aastra July 2014
269
13 Appendix B: Object Oriented PHP Classes
Aastra also provides an object oriented API to develop XML applications which is included in the
XML SDK.
Note: The PHP objects are taking care of the XML escape encoding when they are needed.
13.1 AastraIPPhoneCallLog()
This class allows you to create a XML PhoneCallLog object.
Include
AastraIPPhoneCallLog.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
setCancelAction(uri) to set the cancel parameter with the URI to be called on Cancel
(optional)
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 only for non softkey phones)
setAllowDrop() to set the allowDrop tag to 'yes' (optional only for non softkey phones)
setAllowXfer() to set the allowXfer tag to 'yes' (optional only for non softkey phones)
setAllowConf() to set the allowConf tag to 'yes' (optional only for non softkey phones)
setTimeout(timeout) to define a specific timeout for the XML object (optional)
o timeout integer (seconds)
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)
o index integer, icon index
o icon string, icon name or definition