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

@ -36,10 +36,10 @@
</xs:complexType>
<xs:complexType name="lineTagType" mixed="true">
<xs:attribute name="Size" default="single">
<xs:attribute name="Size" default="regular">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="double|single" />
<xs:pattern value="double|regular" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
@ -186,6 +186,13 @@
<xs:attribute name="destroyOnExit" type="textAttributeType" default="no" />
<xs:attribute name="editable" type="textAttributeType" default="yes" />
<xs:attribute name="Beep" type="textAttributeType" default="no" />
<xs:attribute name="inputLanguage" use="optional" default="English">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="English|French|Spanish|German|Italian|Fran<61>ais|Espa<70>ol|Deutsch|Italiano" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="LockIn" type="textAttributeType" default="no" />
<xs:attribute name="Timeout" type="integerAttributeType" default="45" />
<xs:attribute name="defaultIndex" type="integerAttributeType" default="1" />
@ -356,7 +363,6 @@
<xs:attribute name="LockIn" type="textAttributeType" default="no" />
<xs:attribute name="Timeout" type="integerAttributeType" default="45" />
<xs:attribute name="cancelAction" type="xs:string" />
<xs:attribute name="allowAnswer" type="xs:string" default="no"/>
</xs:complexType>
</xs:element>

BIN
BitmapConverter.exe Normal file

Binary file not shown.

View File

@ -1,20 +1,19 @@
AASTRA TELECOM INC.
July 2007
October 2007
-PA-001008-00-00-XML-API.pdf - Aastra IP Phone XML API document. For use with IP Phone SIP Release 2.1.0
-PA-001008-00-01-XML-API.pdf - Aastra IP Phone XML API document. For use with IP Phone SIP Release 2.1.1
-AastraXMLSchema 2.1.0.xsd - XML Schema which can be used to validate XML development.
For use with IP Phone SIP Release 2.1
-AastraXMLSchema 2.1.1.xsd - XML Schema which can be used to validate XML development.
For use with IP Phone SIP Release 2.1.1
-php_classes 2.1.0.zip - contains the directory php classes with all the XML classes.
-php_classes 2.1.1.zip - contains the directory php classes with all the XML classes.
The files are commented.
-asterisk sample source 2.1.0.zip - contains the source code of XML Asterisk integration described in the XML API document
-asterisk sample source 2.1.1.zip - contains the source code of XML Asterisk integration described in the XML API document
The files are commented.
-startup sample source 2.1.0.zip - contains the source code of the Asterisk self configuration described in the XML API Document
-startup sample source 2.1.1.zip - contains the source code of the Asterisk self configuration described in the XML API Document
The files are commented.
For XML documents related to IP Phone SIP Release 1.3.0, see file PA-001004-00-00.zip
@ -23,3 +22,4 @@ For XML documents related to IP Phone SIP Release 1.4.1, see file PA-001004-00-0
For XML documents related to IP Phone SIP Release 1.4.2, see file PA-001004-00-03.zip
For XML documents related to IP Phone SIP Release 2.0.1, see file PA-001007-00-00.zip
For XML documents related to IP Phone SIP Release 2.0.2, see file PA-001007-00-01.zip
For XML documents related to IP Phone SIP Release 2.1.0, see file PA-001008-00-00.zip

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
<?
#####################################################################
# Asterisk Call Forward for Aastra SIP Phones R2.1.0 or better
# Asterisk Call Forward for Aastra SIP Phones R2.1.1 or better
#
# php source code
# Provided by Aastra Telecom Ltd 2007
@ -107,6 +107,7 @@ switch($action)
{
switch($header[0])
{
case "Aastra51i":
case "Aastra53i":
break;
default:
@ -141,6 +142,7 @@ switch($action)
$cf=Aastra_manage_cf($user,$action,$value);
switch($header[0])
{
case "Aastra51i":
case "Aastra53i":
$output = "<AastraIPPhoneTextMenu destroyOnExit=\"yes\">\n";
if($cf=="") $output .= "<Title>CFWD deactivated</Title>\n";

View File

@ -1,6 +1,6 @@
<?
#####################################################################
# Asterisk Directory for Aastra SIP Phones R2.0.0 or better
# Asterisk Directory for Aastra SIP Phones R2.1.1 or better
#
# php source code
# Provided by Aastra Telecom Ltd 2007
@ -76,6 +76,7 @@ sort($directory);
$header=Aastra_decode_HTTP_header();
switch($header[0])
{
case 'Aastra51i':
case 'Aastra53i':
$MaxLines=13;
break;

View File

@ -1,9 +1,9 @@
<?
#####################################################################
# Asterisk DND for Aastra SIP Phones R2.0.0 or better
# Asterisk DND for Aastra SIP Phones R2.1.1 or better
#
# php source code
# Provided by Aastra Telecom Ltd 2006
# Provided by Aastra Telecom Ltd 2007
#
# @user=extension
# @action=change or check
@ -134,6 +134,7 @@ switch($action)
else $output .= "<ExecuteItem URI=\"Led: ".$key."=off\"/>\n";
switch($header[0])
{
case "Aastra51i":
case "Aastra53i":
break;

View File

@ -2,9 +2,9 @@
#############################################################################
# Asterisk Register - Update DND and CFWD status
#
# Aastra SIP Phones 2.1.0 or better
# Aastra SIP Phones 2.1.1 or better
#
# Copyright 2006 Aastra Telecom Ltd
# Copyright 2007 Aastra Telecom Ltd
#
# script.php?user=XXX&dndkey=YYY&cfkey=ZZZ
# XXX is the extension of the phone on the platform

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');

View File

@ -0,0 +1,15 @@
# SIP Lines
sip line1 auth name: $$AA_SIPAUTHNAME_AA$$
sip line1 password: $$AA_SIPSECRET_AA$$
sip line1 user name: $$AA_SIPUSERNAME_AA$$
sip line1 display name: $$AA_SIPCALLERID_AA$$
sip line1 screen name: $$AA_SIPCALLERID_AA$$
sip line1 proxy ip: $$AA_PROXY_SERVER_AA$$
sip line1 proxy port: 5060
sip line1 registrar ip: $$AA_REGISTRAR_SERVER_AA$$
sip line1 registrar port: 5060
sip line1 vmail: *98
sip line1 mode: 0
# Action URI
action uri startup:

View File

@ -278,6 +278,7 @@ update_config_file($extension,$value[1],$value[3],$value[0]);
$output = "<AastraIPPhoneTextScreen destroyOnExit=\"yes\">\n";
switch($value[0])
{
case "Aastra51i":
case "Aastra53i":
$output = "<AastraIPPhoneTextScreen>\n";
$output .= "<Title>REBOOT</Title>\n";