2.1.1 version.

This commit is contained in:
2018-02-15 23:00:13 +01:00
parent 35330993ff
commit 095feb6932
28 changed files with 2062 additions and 1541 deletions

View File

@ -16,6 +16,7 @@
# setAllowAnswer() to set the allowAnswer tag to 'yes' (optional)
# setTimeout(timeout) to define a specific timeout for the XML object (optional)
# addSoftkey(index,label,uri,icon_index) to add custom soktkeys to the object (optional)
# setRefresh(timeout,URL) to add Refresh parameters to the object (optional)
# addIcon(index,icon) to add custom icons to the object (optional)
# generate() to return the object content
# output() to display the object

View File

@ -2,6 +2,7 @@
################################################################################
# Aastra XML API Classes - AastraIPPhoneConfigurationEntry
# Firmware 2.0 or better
# Copyright Aastra Telecom 2007
#
# Internal class for AastraIPPhoneConfiguration object.

View File

@ -95,7 +95,6 @@ class AastraIPPhoneDirectory extends AastraIPPhone {
$out .= " next=\"$next\"";
}
if($this->_destroyOnExit == 'yes') $out .= " destroyOnExit=\"yes\"";
if($this->_allowAnswer == 'yes') $out .= " allowAnswer=\"yes\"";
if($this->_cancelAction != "")
{
$cancelAction = $this->escape($this->_cancelAction);

View File

@ -2,6 +2,7 @@
################################################################################
# Aastra XML API Classes - AastraIPPhoneExecuteEntry
# Firmware 1.4.1 or better
# Copyright Aastra Telecom 2007
#
# Internal class for AastraIPPhoneExecute object.

View File

@ -2,6 +2,7 @@
################################################################################
# Aastra XML API Classes - AastraIPPhoneFormattedTextScreenEntry
# Firmware 2.0 or better
# Copyright Aastra Telecom 2007
#
# Internal class for AastraIPPhoneFormattedTextScreen object.

View File

@ -2,6 +2,7 @@
################################################################################
# Aastra XML API Classes - AastraIPIconEntry
# Firmware 2.0 or better
# Copyright Aastra Telecom 2007
#
# Internal class for AastraIPPhone object.

View File

@ -91,7 +91,6 @@ class AastraIPPhoneImageMenu extends AastraIPPhone {
}
if($this->_beep=='yes') $out .= " Beep=\"yes\"";
if($this->_lockin=='yes') $out .= " LockIn=\"yes\"";
if($this->_allowAnswer == 'yes') $out .= " allowAnswer=\"yes\"";
if($this->_timeout!=0) $out .= " Timeout=\"{$this->_timeout}\"";
$out .= ">\n";
$out .= "<Image";

View File

@ -2,6 +2,7 @@
################################################################################
# Aastra XML API Classes - AastraIPPhoneImageMenuEntry
# Firmware 2.0 or better
# Copyright Aastra Telecom 2007
#
# Internal class for AastraIPPhoneImageMenu object.

View File

@ -73,7 +73,6 @@ class AastraIPPhoneImageScreen extends AastraIPPhone {
$out .= " cancelAction=\"{$cancelAction}\"";
}
if($this->_beep=='yes') $out .= " Beep=\"yes\"";
if($this->_allowAnswer == 'yes') $out .= " allowAnswer=\"yes\"";
if($this->_timeout!=0) $out .= " Timeout=\"{$this->_timeout}\"";
$out .= ">\n";
$out .= "<Image";

View File

@ -27,6 +27,7 @@
# setType(type) to set type of input ('IP', 'string'or 'number'), 'string' by default
# setDefault(default) to set default value for the input (optional)
# setParameter(param) to set the parameter name to be parsed after the input
# setInputLanguage(language) to set the language of the input (optional)
# setPassword() to set the Password parameter to 'yes', 'no' by default (optional)
# setNotEditable() to set the editable parameter to 'no', 'yes' by default (optional)
# setEditable() is now replaced by setNotEditable but kept for compatibility reasons (optional)
@ -43,6 +44,7 @@
# setPrompt(prompt) to set the default prompt to be displayed for the input.
# setDefaultIndex(index) to define the field index the object will use to start (optional) default is 1
# setDisplayMode(display) to define the aspect of the display, normal/condensed (optional) default is normal.
# setInputLanguage(language) to set the language of the input (optional)
# addField(type) to add an input field and setting its type (IP, string, number, dateUS, timeUS,dateInt, timeInt or empty) if the type is an empty string then the type is inherited from the main object.
# setFieldPassword(password) to set the password mode for the input field ('yes', no'), overrides the value set by setPassword for the field
# setFieldEditable(editable) to set the input field editable mode ('yes', no'), overrides the value set by setEditable or setNotEditable for the field
@ -98,6 +100,7 @@ class AastraIPPhoneInputScreen extends AastraIPPhone {
var $_password='';
var $_defaultindex='';
var $_displaymode='';
var $_inputlanguage='';
function setURL($url)
{
@ -148,6 +151,12 @@ class AastraIPPhoneInputScreen extends AastraIPPhone {
$this->_displaymode=$display;
}
function setInputLanguage($input)
{
$this->_inputlanguage=$input;
}
function addField($type='')
{
$this->_entries[] = new AastraIPPhoneInputScreenEntry($type);
@ -206,6 +215,7 @@ class AastraIPPhoneInputScreen extends AastraIPPhone {
if($this->_editable=='no') $out .= " editable=\"no\"";
if($this->_beep=='yes') $out .= " Beep=\"yes\"";
if($this->_defaultindex!='') $out .= " defaultIndex=\"".$this->_defaultindex."\"";
if($this->_inputlanguage!='') $out .= " inputLanguage=\"".$this->_inputlanguage."\"";
if($this->_displaymode!='') $out .= " displayMode=\"".$this->_displaymode."\"";
if($this->_lockin=='yes') $out .= " LockIn=\"yes\"";
if($this->_allowAnswer == 'yes') $out .= " allowAnswer=\"yes\"";

View File

@ -2,6 +2,7 @@
################################################################################
# Aastra XML API Classes - AastraIPPhoneInputScreenEntry
# Firmware 2.0.2 or better
# Copyright Aastra Telecom 2007
#
# Internal class for AastraIPPhoneInputScreen object.

View File

@ -2,6 +2,7 @@
################################################################################
# Aastra XML API Classes - AastraIPPhoneSoftkeyEntry
# Firmware 2.0 or better
# Copyright Aastra Telecom 2007
#
# Internal class for AastraIPPhone object.

View File

@ -2,6 +2,7 @@
################################################################################
# Aastra XML API Classes - AastraIPPhoneStatusEntry
# Firmware 1.4.1 or better
# Copyright Aastra Telecom 2007
#
# Internal class for AastraIPPhoneStatus object.

View File

@ -100,14 +100,14 @@ class AastraIPPhoneTextMenu extends AastraIPPhone {
function render()
{
$out = "<AastraIPPhoneTextMenu ";
if ($this->_destroyOnExit=='yes') $out .= "destroyOnExit=\"yes\" ";
$out = "<AastraIPPhoneTextMenu";
if ($this->_destroyOnExit=='yes') $out .= " destroyOnExit=\"yes\"";
if($this->_cancelAction != "")
{
$cancelAction = $this->escape($this->_cancelAction);
$out .= " cancelAction=\"{$cancelAction}\"";
}
if ($this->_defaultIndex!="") $out .= "defaultIndex=\"{$this->_defaultIndex}\"";
if ($this->_defaultIndex!="") $out .= " defaultIndex=\"{$this->_defaultIndex}\"";
if ($this->_style!='') $out .= " style=\"{$this->_style}\"";
if ($this->_beep=='yes') $out .= " Beep=\"yes\"";
if ($this->_lockin=='yes') $out .= " LockIn=\"yes\"";

View File

@ -2,6 +2,7 @@
################################################################################
# Aastra XML API Classes - AastraIPPhoneTextMenuEntry
# Firmware 2.0 or better
# Copyright Aastra Telecom 2007
#
# Internal class for AastraIPPhoneTextMenu object.

View File

@ -73,8 +73,10 @@ class AastraIPPhoneTextScreen extends AastraIPPhone {
$doneAction = $this->escape($this->_doneAction);
$out .= " doneAction=\"{$doneAction}\"";
}
if($this->_beep=='yes') $out .= " Beep=\"yes\"";
if($this->_allowAnswer == 'yes') $out .= " allowAnswer=\"yes\"";
if ($this->_beep=='yes') $out .= " Beep=\"yes\"";
if ($this->_timeout!=0) $out .= " Timeout=\"{$this->_timeout}\"";
if ($this->_lockin=='yes') $out .= " LockIn=\"yes\"";
if ($this->_allowAnswer == 'yes') $out .= " allowAnswer=\"yes\"";
$out .= ">\n";
if ($this->_title!='')
{

View File

@ -2,7 +2,7 @@
##########################################################
# Sample php applications using the Aastra XML API Classes
# Aastra SIP Phones Firmware 2.1.0 or better
# Aastra SIP Phones Firmware 2.1.1 or better
# Copyright Aastra Telecom 2007
#
# @param type, type of XML object to display
@ -87,7 +87,7 @@ switch($type)
$menu->addEntry('InputScreen2', $XML_SERVER.'?type=inputscreen2');
$menu->addEntry('Status', $XML_SERVER.'?type=status');
$menu->addEntry('Execute', $XML_SERVER.'?type=execute');
if($header['model']!="Aastra53i")
if(($header['model']!="Aastra51i") and ($header['model']!="Aastra53i"))
{
$menu->addEntry('ImageScreen', $XML_SERVER.'?type=imagescreen');
$menu->addEntry('ImageMenu', $XML_SERVER.'?type=imagemenu');