4.2.0 version.

This commit is contained in:
Markus Birth 2018-02-15 23:20:25 +01:00
parent fe1dabf59a
commit 071529b1e8
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A
66 changed files with 3784 additions and 3574 deletions

Binary file not shown.

BIN
PA-001011-06-00-XML-API.pdf Normal file

Binary file not shown.

View File

@ -1,25 +1,25 @@
MITEL MITEL
July 2015 October 2015
-PA-001011-04-02-XML-API.pdf - Mitel IP Phone XML API document. For use with Mitel SIP Phones Release 4.1.0 -PA-001011-06-00-XML-API.pdf - Mitel IP Phone XML API document. For use with Mitel SIP Phones Release 4.2.0
-XMLSchema 4.1.0.xsd - XML Schema which can be used to validate XML development. -XMLSchema.xsd - XML Schema which can be used to validate XML development.
For use with Mitel SIP Phones Release 4.1.0 For use with Mitel SIP Phones Release 4.2.0
-php_classes_4.1.0.zip - contains the directory php classes with all the XML classes. -php_classes.zip - contains the directory php classes with all the XML classes.
The files are commented. The files are commented.
-xml-xampp_4.1.0.zip contains the source code of sample XML applications to be used with XAMPP as described in the XML API Document -xml-xampp.zip contains the source code of sample XML applications to be used with XAMPP as described in the XML API Document
The files are commented The files are commented
-csv_directory_4.1.0.zip contains the source code of a directory application using a csv file as the data source. -csv_directory.zip contains the source code of a directory application using a csv file as the data source.
The files are commented The files are commented
-ldap_directory_4.1.0.zip contains the source code of a directory application using LDAP. -ldap_directory.zip contains the source code of a directory application using LDAP.
The files are commented The files are commented
-pictureCallerID_4.1.0.zip contains the source code of an application providing formatted images for the 6739i for incoming and outgoing calls. -pictureCallerID.zip contains the source code of an application providing formatted images for the 6739i, 6867i, 6869i, 6873i for incoming and outgoing calls.
The files are commented The files are commented
For XML documents related to IP Phone SIP Release 1.3.0, see file PA-001004-00-00.zip For XML documents related to IP Phone SIP Release 1.3.0, see file PA-001004-00-00.zip
@ -48,4 +48,5 @@ For XML documents related to IP Phone SIP Release 3.3.0 see file PA-001011-03-00
For XML documents related to IP Phone SIP Release 3.3.1 SP4 see file PA-001011-03-04.zip For XML documents related to IP Phone SIP Release 3.3.1 SP4 see file PA-001011-03-04.zip
For XML documents related to IP Phone SIP Release 4.0.0 see file PA-001011-04-00.zip For XML documents related to IP Phone SIP Release 4.0.0 see file PA-001011-04-00.zip
For XML documents related to IP Phone SIP Release 4.0.0 SP1 see file PA-001011-04-01.zip For XML documents related to IP Phone SIP Release 4.0.0 SP1 see file PA-001011-04-01.zip
For XML documents related to IP Phone SIP Release 4.0.0 SP2 see file PA-001011-04-02.zip For XML documents related to IP Phone SIP Release 4.0.0 SP2 see file PA-001011-04-02.zip
For XML documents related to IP Phone SIP Release 4.1.0 see file PA-001011-05-00.zip

File diff suppressed because it is too large Load Diff

View File

@ -1,466 +1,470 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:simpleType name="textAttributeType"> <xs:simpleType name="textAttributeType">
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:pattern value="yes|no" /> <xs:pattern value="yes|no" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="modeType"> <xs:simpleType name="modeType">
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:pattern value="normal|extended|fullscreen" /> <xs:pattern value="normal|extended|fullscreen" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="integerAttributeType"> <xs:simpleType name="integerAttributeType">
<xs:restriction base="xs:integer" /> <xs:restriction base="xs:integer" />
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="verticalAlignType"> <xs:simpleType name="verticalAlignType">
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:pattern value="top|middle|bottom" /> <xs:pattern value="top|middle|bottom" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="horizontalAlignType"> <xs:simpleType name="horizontalAlignType">
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:pattern value="left|middle|right" /> <xs:pattern value="left|middle|right" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="colorType"> <xs:simpleType name="colorType">
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:pattern value="white| <xs:pattern value="white|
black| black|
red| red|
green| green|
brown| brown|
blue| blue|
magenta| magenta|
cyan| cyan|
lightgray| lightgray|
darkgray| darkgray|
lightred| lightred|
lightgreen| lightgreen|
yellow| yellow|
lightblue| lightblue|
lightmagenta| lightmagenta|
lightcyan| lightcyan|
"/> "/>
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
<xs:complexType name="titleTagType" mixed="true"> <xs:complexType name="titleTagType" mixed="true">
<xs:attribute name="wrap" default="yes"> <xs:attribute name="wrap" default="yes">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:pattern value="yes|no"/> <xs:pattern value="yes|no"/>
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:attribute> </xs:attribute>
</xs:complexType> </xs:complexType>
<xs:complexType name="lineTagType" mixed="true"> <xs:complexType name="lineTagType" mixed="true">
<xs:attribute name="Color" default="white" type="colorType"/> <xs:attribute name="Color" default="white" type="colorType"/>
<xs:attribute name="Size" default="regular"> <xs:attribute name="Size" default="regular">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:pattern value="double|regular|small|large" /> <xs:pattern value="double|regular|small|large" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:attribute> </xs:attribute>
<xs:attribute name="Align" default="left"> <xs:attribute name="Align" default="left">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:pattern value="right|left|center" /> <xs:pattern value="right|left|center" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:attribute> </xs:attribute>
</xs:complexType> </xs:complexType>
<xs:complexType name="imageType" mixed="true"> <xs:complexType name="imageType" mixed="true">
<xs:attribute name="verticalAlign" type="verticalAlignType" /> <xs:attribute name="verticalAlign" type="verticalAlignType" />
<xs:attribute name="horizontalAlign" type="horizontalAlignType" /> <xs:attribute name="horizontalAlign" type="horizontalAlignType" />
<xs:attribute name="height"> <xs:attribute name="height">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:integer"> <xs:restriction base="xs:integer">
<xs:minInclusive value="0" /> <xs:minInclusive value="0" />
<xs:maxInclusive value="40" /> <xs:maxInclusive value="40" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:attribute> </xs:attribute>
<xs:attribute name="width" type="integerAttributeType" default="0" /> <xs:attribute name="width" type="integerAttributeType" default="0" />
</xs:complexType> </xs:complexType>
<xs:complexType name="softKeyType"> <xs:complexType name="softKeyType">
<xs:sequence> <xs:sequence>
<xs:element name="Label" type="xs:string" /> <xs:element name="Label" type="xs:string" />
<xs:element name="URI" type="xs:string" /> <xs:element name="URI" type="xs:string" />
</xs:sequence> </xs:sequence>
<xs:attribute name="index" use="required"> <xs:attribute name="index" use="required">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:integer"> <xs:restriction base="xs:integer">
<xs:minInclusive value="1" /> <xs:minInclusive value="1" />
<xs:maxInclusive value="10" /> <xs:maxInclusive value="10" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:attribute> </xs:attribute>
<xs:attribute name="icon" type="integerAttributeType" default="0" /> <xs:attribute name="icon" type="integerAttributeType" default="0" />
</xs:complexType> </xs:complexType>
<xs:complexType name="iconListType"> <xs:complexType name="iconListType">
<xs:sequence> <xs:sequence>
<xs:element name="Icon" minOccurs="1" maxOccurs="unbounded"> <xs:element name="Icon" minOccurs="1" maxOccurs="unbounded">
<xs:complexType mixed="true"> <xs:complexType mixed="true">
<xs:attribute name="index" type="integerAttributeType" use="required" /> <xs:attribute name="index" type="integerAttributeType" use="required" />
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
<xs:element name="AastraIPPhoneTextScreen"> <xs:element name="AastraIPPhoneTextScreen">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="Title" type="titleTagType" minOccurs="0" maxOccurs="1"/> <xs:element name="Title" type="titleTagType" minOccurs="0" maxOccurs="1"/>
<xs:element name="Text"> <xs:element name="Text">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:minLength value="1" /> <xs:minLength value="1" />
<xs:maxLength value="2000" /> <xs:maxLength value="2000" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="Dial" minOccurs="0" maxOccurs="1"> <xs:element name="Dial" minOccurs="0" maxOccurs="1">
<xs:complexType> <xs:complexType>
<xs:attribute name="line" use="optional"> <xs:attribute name="line" use="optional">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:integer"> <xs:restriction base="xs:integer">
<xs:minInclusive value="1" /> <xs:minInclusive value="1" />
<xs:maxInclusive value="24" /> <xs:maxInclusive value="24" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:attribute> </xs:attribute>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="SoftKey" type="softKeyType" minOccurs="0" maxOccurs="10"/> <xs:element name="SoftKey" type="softKeyType" minOccurs="0" maxOccurs="10"/>
</xs:sequence> </xs:sequence>
<xs:attribute name="destroyOnExit" type="textAttributeType" default="no" /> <xs:attribute name="destroyOnExit" type="textAttributeType" default="no" />
<xs:attribute name="Beep" type="textAttributeType" default="no" /> <xs:attribute name="Beep" type="textAttributeType" default="no" />
<xs:attribute name="LockIn" type="textAttributeType" default="no" /> <xs:attribute name="LockIn" type="textAttributeType" default="no" />
<xs:attribute name="Timeout" type="integerAttributeType" default="45" /> <xs:attribute name="Timeout" type="integerAttributeType" default="45" />
<xs:attribute name="cancelAction" type="xs:string" /> <xs:attribute name="cancelAction" type="xs:string" />
<xs:attribute name="doneAction" type="xs:string" /> <xs:attribute name="doneAction" type="xs:string" />
<xs:attribute name="allowAnswer" type="xs:string" default="no"/> <xs:attribute name="allowAnswer" type="xs:string" default="no"/>
<xs:attribute name="allowDTMF" type="xs:string" default="no"/> <xs:attribute name="allowDTMF" type="xs:string" default="no"/>
<xs:attribute name="allowDrop" type="xs:string" default="no"/> <xs:attribute name="allowDrop" type="xs:string" default="no"/>
<xs:attribute name="allowConf" type="xs:string" default="no"/> <xs:attribute name="allowConf" type="xs:string" default="no"/>
<xs:attribute name="allowXfer" type="xs:string" default="no"/> <xs:attribute name="allowXfer" type="xs:string" default="no"/>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="AastraIPPhoneTextMenu"> <xs:element name="AastraIPPhoneTextMenu">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="Title" type="titleTagType" minOccurs="0" maxOccurs="1"/> <xs:element name="Title" type="titleTagType" minOccurs="0" maxOccurs="1"/>
<xs:element name="MenuItem" minOccurs="1" maxOccurs="30"> <xs:element name="MenuItem" minOccurs="1" maxOccurs="30">
<xs:complexType> <xs:complexType>
<xs:all> <xs:all>
<xs:element name="Prompt" type="xs:string" minOccurs="0" maxOccurs="1" /> <xs:element name="Prompt" type="xs:string" minOccurs="0" maxOccurs="1" />
<xs:element name="URI" type="xs:string" minOccurs="0" maxOccurs="1" /> <xs:element name="URI" type="xs:string" minOccurs="0" maxOccurs="1" />
<xs:element name="Dial" minOccurs="0" maxOccurs="1"> <xs:element name="Dial" minOccurs="0" maxOccurs="1">
<xs:complexType> <xs:complexType>
<xs:attribute name="line" use="optional"> <xs:attribute name="line" use="optional">
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:integer"> <xs:restriction base="xs:integer">
<xs:minInclusive value="1" /> <xs:minInclusive value="1" />
<xs:maxInclusive value="24" /> <xs:maxInclusive value="24" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:attribute> </xs:attribute>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="Selection" type="xs:string" minOccurs="0" maxOccurs="1" /> <xs:element name="Selection" type="xs:string" minOccurs="0" maxOccurs="1" />
</xs:all> </xs:all>
<xs:attribute name="base" type="xs:string" /> <xs:attribute name="base" type="xs:string" />
<xs:attribute name="icon" type="integerAttributeType" default="0" /> <xs:attribute name="icon" type="integerAttributeType" default="0" />
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="SoftKey" type="softKeyType" minOccurs="0" maxOccurs="10" /> <xs:element name="SoftKey" type="softKeyType" minOccurs="0" maxOccurs="10" />
<xs:element name="IconList" type="iconListType" minOccurs="0" maxOccurs="1" /> <xs:element name="IconList" type="iconListType" minOccurs="0" maxOccurs="1" />
</xs:sequence> </xs:sequence>
<xs:attribute name="destroyOnExit" type="textAttributeType" default="no" /> <xs:attribute name="destroyOnExit" type="textAttributeType" default="no" />
<xs:attribute name="Beep" type="textAttributeType" default="no" /> <xs:attribute name="Beep" type="textAttributeType" default="no" />
<xs:attribute name="LockIn" type="textAttributeType" default="no" /> <xs:attribute name="LockIn" type="textAttributeType" default="no" />
<xs:attribute name="Timeout" type="integerAttributeType" default="45" /> <xs:attribute name="Timeout" type="integerAttributeType" default="45" />
<xs:attribute name="defaultIndex" type="integerAttributeType" default="1" /> <xs:attribute name="defaultIndex" type="integerAttributeType" default="1" />
<xs:attribute name="cancelAction" type="xs:string" /> <xs:attribute name="cancelAction" type="xs:string" />
<xs:attribute name="style" type="xs:string" default="numbered" /> <xs:attribute name="style" type="xs:string" default="numbered" />
<xs:attribute name="allowAnswer" type="xs:string" default="no"/> <xs:attribute name="allowAnswer" type="xs:string" default="no"/>
<xs:attribute name="wrapList" type="textAttributeType" default="no" /> <xs:attribute name="wrapList" type="textAttributeType" default="no" />
<xs:attribute name="numberLaunch" type="textAttributeType" default="no" /> <xs:attribute name="numberLaunch" type="textAttributeType" default="no" />
<xs:attribute name="scrollConstrain" type="textAttributeType" default="no" /> <xs:attribute name="touchLaunch" type="textAttributeType" default="no" />
<xs:attribute name="unitScroll" type="textAttributeType" default="no" /> <xs:attribute name="fontMono" type="textAttributeType" default="yes" />
<xs:attribute name="scrollUp" type="xs:string" /> <xs:attribute name="scrollConstrain" type="textAttributeType" default="no" />
<xs:attribute name="scrollDown" type="xs:string" /> <xs:attribute name="unitScroll" type="textAttributeType" default="no" />
<xs:attribute name="allowDrop" type="xs:string" default="no"/> <xs:attribute name="scrollUp" type="xs:string" />
<xs:attribute name="allowConf" type="xs:string" default="no"/> <xs:attribute name="scrollDown" type="xs:string" />
<xs:attribute name="allowXfer" type="xs:string" default="no"/> <xs:attribute name="allowDrop" type="xs:string" default="no"/>
</xs:complexType> <xs:attribute name="allowConf" type="xs:string" default="no"/>
</xs:element> <xs:attribute name="allowXfer" type="xs:string" default="no"/>
</xs:complexType>
<xs:element name="AastraIPPhoneInputScreen"> </xs:element>
<xs:complexType>
<xs:sequence> <xs:element name="AastraIPPhoneInputScreen">
<xs:element name="Title" type="titleTagType" minOccurs="0" maxOccurs="1" /> <xs:complexType>
<xs:element name="Prompt" minOccurs="0" maxOccurs="1" /> <xs:sequence>
<xs:element name="URL" /> <xs:element name="Title" type="titleTagType" minOccurs="0" maxOccurs="1" />
<xs:element name="Parameter" minOccurs="0" maxOccurs="1" /> <xs:element name="Prompt" minOccurs="0" maxOccurs="1" />
<xs:element name="Default" minOccurs="0" maxOccurs="1" /> <xs:element name="URL" />
<xs:element name="Selection" minOccurs="0" maxOccurs="1" /> <xs:element name="Parameter" minOccurs="0" maxOccurs="1" />
<xs:element name="InputField" minOccurs="0" maxOccurs="10"> <xs:element name="Default" minOccurs="0" maxOccurs="1" />
<xs:complexType> <xs:element name="Selection" minOccurs="0" maxOccurs="1" />
<xs:sequence> <xs:element name="InputField" minOccurs="0" maxOccurs="10">
<xs:element name="Prompt" minOccurs="0" maxOccurs="1" /> <xs:complexType>
<xs:element name="Parameter" minOccurs="0" maxOccurs="1" /> <xs:sequence>
<xs:element name="Default" minOccurs="0" maxOccurs="1" /> <xs:element name="Prompt" minOccurs="0" maxOccurs="1" />
<xs:element name="Selection" minOccurs="0" maxOccurs="1" /> <xs:element name="Parameter" minOccurs="0" maxOccurs="1" />
<xs:element name="SoftKey" type="softKeyType" minOccurs="0" maxOccurs="10"/> <xs:element name="Default" minOccurs="0" maxOccurs="1" />
</xs:sequence> <xs:element name="Selection" minOccurs="0" maxOccurs="1" />
<xs:attribute name="type" use="optional"> <xs:element name="SoftKey" type="softKeyType" minOccurs="0" maxOccurs="10"/>
<xs:simpleType> </xs:sequence>
<xs:restriction base="xs:string"> <xs:attribute name="type" use="optional">
<xs:pattern value="IP|string|stringN|number|timeUS|dateUS|timeInt|dateInt|Empty" /> <xs:simpleType>
</xs:restriction> <xs:restriction base="xs:string">
</xs:simpleType> <xs:pattern value="IP|string|stringN|number|timeUS|dateUS|timeInt|dateInt|Empty" />
</xs:attribute> </xs:restriction>
<xs:attribute name="password" type="textAttributeType" default="no" /> </xs:simpleType>
<xs:attribute name="editable" type="textAttributeType" default="yes" /> </xs:attribute>
</xs:complexType> <xs:attribute name="password" type="textAttributeType" default="no" />
</xs:element> <xs:attribute name="editable" type="textAttributeType" default="yes" />
</xs:sequence> </xs:complexType>
<xs:attribute name="type" use="required"> </xs:element>
<xs:simpleType> </xs:sequence>
<xs:restriction base="xs:string"> <xs:attribute name="type" use="required">
<xs:pattern value="IP|string|stringN|number|timeUS|dateUS|timeInt|dateInt" /> <xs:simpleType>
</xs:restriction> <xs:restriction base="xs:string">
</xs:simpleType> <xs:pattern value="IP|string|stringN|number|timeUS|dateUS|timeInt|dateInt" />
</xs:attribute> </xs:restriction>
<xs:attribute name="password" type="textAttributeType" default="no" /> </xs:simpleType>
<xs:attribute name="destroyOnExit" type="textAttributeType" default="no" /> </xs:attribute>
<xs:attribute name="editable" type="textAttributeType" default="yes" /> <xs:attribute name="password" type="textAttributeType" default="no" />
<xs:attribute name="Beep" type="textAttributeType" default="no" /> <xs:attribute name="destroyOnExit" type="textAttributeType" default="no" />
<xs:attribute name="inputLanguage" use="optional" default="English"> <xs:attribute name="editable" type="textAttributeType" default="yes" />
<xs:simpleType> <xs:attribute name="Beep" type="textAttributeType" default="no" />
<xs:restriction base="xs:string"> <xs:attribute name="inputLanguage" use="optional" default="English">
<xs:pattern value="English|French|Spanish|German|Italian|Russian|Portuguese|Français|Español|Deutsch|Italiano|Русский|Português|Nordic" /> <xs:simpleType>
</xs:restriction> <xs:restriction base="xs:string">
</xs:simpleType> <xs:pattern value="English|French|Spanish|German|Italian|Russian|Portuguese|Français|Español|Deutsch|Italiano|Русский|Português|Nordic" />
</xs:attribute> </xs:restriction>
<xs:attribute name="LockIn" type="textAttributeType" default="no" /> </xs:simpleType>
<xs:attribute name="Timeout" type="integerAttributeType" default="45" /> </xs:attribute>
<xs:attribute name="defaultIndex" type="integerAttributeType" default="1" /> <xs:attribute name="LockIn" type="textAttributeType" default="no" />
<xs:attribute name="cancelAction" type="xs:string" /> <xs:attribute name="Timeout" type="integerAttributeType" default="45" />
<xs:attribute name="allowAnswer" type="xs:string" default="no"/> <xs:attribute name="defaultIndex" type="integerAttributeType" default="1" />
<xs:attribute name="allowDrop" type="xs:string" default="no"/> <xs:attribute name="cancelAction" type="xs:string" />
<xs:attribute name="allowConf" type="xs:string" default="no"/> <xs:attribute name="allowAnswer" type="xs:string" default="no"/>
<xs:attribute name="allowXfer" type="xs:string" default="no"/> <xs:attribute name="allowDrop" type="xs:string" default="no"/>
<xs:attribute name="displayMode" default="uncondensed"> <xs:attribute name="allowConf" type="xs:string" default="no"/>
<xs:simpleType> <xs:attribute name="allowXfer" type="xs:string" default="no"/>
<xs:restriction base="xs:string"> <xs:attribute name="displayMode" default="uncondensed">
<xs:pattern value="condensed|uncondensed" /> <xs:simpleType>
</xs:restriction> <xs:restriction base="xs:string">
</xs:simpleType> <xs:pattern value="condensed|uncondensed" />
</xs:attribute> </xs:restriction>
</xs:complexType> </xs:simpleType>
</xs:element> </xs:attribute>
</xs:complexType>
<xs:element name="AastraIPPhoneDirectory"> </xs:element>
<xs:complexType>
<xs:sequence> <xs:element name="AastraIPPhoneDirectory">
<xs:element name="Title" type="xs:string" /> <xs:complexType>
<xs:element name="MenuItem" minOccurs="1" maxOccurs="15"> <xs:sequence>
<xs:complexType> <xs:element name="Title" type="xs:string" />
<xs:sequence> <xs:element name="MenuItem" minOccurs="1" maxOccurs="15">
<xs:element name="Prompt" type="xs:string" /> <xs:complexType>
<xs:element name="URI" type="xs:string" /> <xs:sequence>
</xs:sequence> <xs:element name="Prompt" type="xs:string" />
<xs:attribute name="base" type="xs:string" /> <xs:element name="URI" type="xs:string" />
<xs:attribute name="icon" type="integerAttributeType" default="0" /> </xs:sequence>
</xs:complexType> <xs:attribute name="base" type="xs:string" />
</xs:element> <xs:attribute name="icon" type="integerAttributeType" default="0" />
<xs:element name="SoftKey" type="softKeyType" minOccurs="0" maxOccurs="10" /> </xs:complexType>
<xs:element name="IconList" type="iconListType" minOccurs="0" maxOccurs="1" /> </xs:element>
</xs:sequence> <xs:element name="SoftKey" type="softKeyType" minOccurs="0" maxOccurs="10" />
<xs:attribute name="destroyOnExit" type="textAttributeType" default="no" /> <xs:element name="IconList" type="iconListType" minOccurs="0" maxOccurs="1" />
<xs:attribute name="Beep" type="textAttributeType" default="no" /> </xs:sequence>
<xs:attribute name="LockIn" type="textAttributeType" default="no" /> <xs:attribute name="destroyOnExit" type="textAttributeType" default="no" />
<xs:attribute name="Timeout" type="integerAttributeType" default="45" /> <xs:attribute name="Beep" type="textAttributeType" default="no" />
<xs:attribute name="next" type="xs:string" /> <xs:attribute name="LockIn" type="textAttributeType" default="no" />
<xs:attribute name="previous" type="xs:string" /> <xs:attribute name="Timeout" type="integerAttributeType" default="45" />
<xs:attribute name="cancelAction" type="xs:string" /> <xs:attribute name="next" type="xs:string" />
</xs:complexType> <xs:attribute name="previous" type="xs:string" />
</xs:element> <xs:attribute name="cancelAction" type="xs:string" />
</xs:complexType>
<xs:element name="AastraIPPhoneExecute"> </xs:element>
<xs:complexType>
<xs:sequence> <xs:element name="AastraIPPhoneExecute">
<xs:element name="ExecuteItem" minOccurs="0" maxOccurs="unbounded"> <xs:complexType>
<xs:complexType> <xs:sequence>
<xs:attribute name="URI" type="xs:string" /> <xs:element name="ExecuteItem" minOccurs="0" maxOccurs="unbounded">
<xs:attribute name="interruptCall" type="textAttributeType" default="yes" /> <xs:complexType>
</xs:complexType> <xs:attribute name="URI" type="xs:string" />
</xs:element> <xs:attribute name="interruptCall" type="textAttributeType" default="yes" />
</xs:sequence> <xs:attribute name="title" type="xs:string" default="" />
<xs:attribute name="Beep" type="textAttributeType" default="no" /> </xs:complexType>
<xs:attribute name="triggerDestroyOnExit" type="textAttributeType" default="no" /> </xs:element>
</xs:complexType> </xs:sequence>
</xs:element> <xs:attribute name="Beep" type="textAttributeType" default="no" />
<xs:attribute name="triggerDestroyOnExit" type="textAttributeType" default="no" />
<xs:element name="AastraIPPhoneStatus"> </xs:complexType>
<xs:complexType> </xs:element>
<xs:sequence>
<xs:element name="Session" type="xs:string" minOccurs="0" /> <xs:element name="AastraIPPhoneStatus">
<xs:element name="Message"> <xs:complexType>
<xs:complexType mixed="true"> <xs:sequence>
<xs:attribute name="index" type="integerAttributeType" use="required" /> <xs:element name="Session" type="xs:string" minOccurs="0" />
<xs:attribute name="type"> <xs:element name="Message">
<xs:simpleType> <xs:complexType mixed="true">
<xs:restriction base="xs:string"> <xs:attribute name="index" type="integerAttributeType" use="required" />
<xs:pattern value="alert" /> <xs:attribute name="type">
</xs:restriction> <xs:simpleType>
</xs:simpleType> <xs:restriction base="xs:string">
</xs:attribute> <xs:pattern value="alert" />
<xs:attribute name="Timeout" type="integerAttributeType" default="3" /> </xs:restriction>
<xs:attribute name="URI" type="xs:string" /> </xs:simpleType>
<xs:attribute name="icon" type="integerAttributeType" default="0" /> </xs:attribute>
</xs:complexType> <xs:attribute name="Timeout" type="integerAttributeType" default="3" />
</xs:element> <xs:attribute name="URI" type="xs:string" />
<xs:element name="IconList" type="iconListType" minOccurs="0" maxOccurs="1" /> <xs:attribute name="icon" type="integerAttributeType" default="0" />
</xs:sequence> </xs:complexType>
<xs:attribute name="Beep" type="textAttributeType" default="no" /> </xs:element>
<xs:attribute name="triggerDestroyOnExit" type="textAttributeType" default="no" /> <xs:element name="IconList" type="iconListType" minOccurs="0" maxOccurs="1" />
</xs:complexType> </xs:sequence>
</xs:element> <xs:attribute name="Beep" type="textAttributeType" default="no" />
<xs:attribute name="triggerDestroyOnExit" type="textAttributeType" default="no" />
<xs:element name="AastraIPPhoneConfiguration"> </xs:complexType>
<xs:complexType> </xs:element>
<xs:sequence>
<xs:element name="ConfigurationItem" minOccurs="0" maxOccurs="unbounded"> <xs:element name="AastraIPPhoneConfiguration">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="Parameter" type="xs:string" /> <xs:element name="ConfigurationItem" minOccurs="0" maxOccurs="unbounded">
<xs:element name="Value" type="xs:string" /> <xs:complexType>
</xs:sequence> <xs:sequence>
</xs:complexType> <xs:element name="Parameter" type="xs:string" />
</xs:element> <xs:element name="Value" type="xs:string" />
</xs:sequence> </xs:sequence>
<xs:attribute name="Beep" type="textAttributeType" default="no" /> </xs:complexType>
<xs:attribute name="triggerDestroyOnExit" type="textAttributeType" default="no" /> </xs:element>
</xs:complexType> </xs:sequence>
</xs:element> <xs:attribute name="Beep" type="textAttributeType" default="no" />
<xs:attribute name="triggerDestroyOnExit" type="textAttributeType" default="no" />
<xs:group name="linesAndScroll"> </xs:complexType>
<xs:sequence> </xs:element>
<xs:element name="Scroll" minOccurs="1" maxOccurs="1">
<xs:complexType> <xs:group name="linesAndScroll">
<xs:sequence> <xs:sequence>
<xs:element name="Line" type="lineTagType" minOccurs="1" maxOccurs="unbounded" /> <xs:element name="Scroll" minOccurs="1" maxOccurs="1">
</xs:sequence> <xs:complexType>
<xs:attribute name="Height" type="integerAttributeType" default="1" /> <xs:sequence>
</xs:complexType> <xs:element name="Line" type="lineTagType" minOccurs="1" maxOccurs="unbounded" />
</xs:element> </xs:sequence>
<xs:element name="Line" type="lineTagType" minOccurs="0" maxOccurs="unbounded" /> <xs:attribute name="Height" type="integerAttributeType" default="1" />
</xs:sequence> </xs:complexType>
</xs:group> </xs:element>
<xs:element name="Line" type="lineTagType" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="AastraIPPhoneFormattedTextScreen"> </xs:sequence>
<xs:complexType> </xs:group>
<xs:sequence>
<xs:element name="Line" type="lineTagType" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="AastraIPPhoneFormattedTextScreen">
<xs:group ref="linesAndScroll" minOccurs="0" maxOccurs="1"/> <xs:complexType>
<xs:element name="Dial" minOccurs="0" maxOccurs="1"> <xs:sequence>
<xs:complexType> <xs:element name="Line" type="lineTagType" minOccurs="0" maxOccurs="unbounded" />
<xs:attribute name="line" use="optional"> <xs:group ref="linesAndScroll" minOccurs="0" maxOccurs="1"/>
<xs:simpleType> <xs:element name="Dial" minOccurs="0" maxOccurs="1">
<xs:restriction base="xs:integer"> <xs:complexType>
<xs:minInclusive value="1" /> <xs:attribute name="line" use="optional">
<xs:maxInclusive value="24" /> <xs:simpleType>
</xs:restriction> <xs:restriction base="xs:integer">
</xs:simpleType> <xs:minInclusive value="1" />
</xs:attribute> <xs:maxInclusive value="24" />
</xs:complexType> </xs:restriction>
</xs:element> </xs:simpleType>
<xs:element name="SoftKey" type="softKeyType" minOccurs="0" maxOccurs="10" /> </xs:attribute>
</xs:sequence> </xs:complexType>
<xs:attribute name="destroyOnExit" type="textAttributeType" default="no" /> </xs:element>
<xs:attribute name="Beep" type="textAttributeType" default="no" /> <xs:element name="SoftKey" type="softKeyType" minOccurs="0" maxOccurs="10" />
<xs:attribute name="LockIn" type="textAttributeType" default="no" /> </xs:sequence>
<xs:attribute name="Timeout" type="integerAttributeType" default="45" /> <xs:attribute name="destroyOnExit" type="textAttributeType" default="no" />
<xs:attribute name="cancelAction" type="xs:string" /> <xs:attribute name="Beep" type="textAttributeType" default="no" />
<xs:attribute name="doneAction" type="xs:string" /> <xs:attribute name="LockIn" type="textAttributeType" default="no" />
<xs:attribute name="allowAnswer" type="xs:string" default="no"/> <xs:attribute name="Timeout" type="integerAttributeType" default="45" />
<xs:attribute name="allowDTMF" type="xs:string" default="no"/> <xs:attribute name="cancelAction" type="xs:string" />
<xs:attribute name="allowDrop" type="xs:string" default="no"/> <xs:attribute name="doneAction" type="xs:string" />
<xs:attribute name="allowConf" type="xs:string" default="no"/> <xs:attribute name="allowAnswer" type="xs:string" default="no"/>
<xs:attribute name="allowXfer" type="xs:string" default="no"/> <xs:attribute name="allowDTMF" type="xs:string" default="no"/>
</xs:complexType> <xs:attribute name="allowDrop" type="xs:string" default="no"/>
</xs:element> <xs:attribute name="allowConf" type="xs:string" default="no"/>
<xs:attribute name="allowXfer" type="xs:string" default="no"/>
<xs:element name="AastraIPPhoneImageScreen"> <xs:attribute name="fontMono" type="textAttributeType" default="yes" />
<xs:complexType> </xs:complexType>
<xs:sequence> </xs:element>
<xs:element name="Image" type="imageType" />
<xs:element name="SoftKey" type="softKeyType" minOccurs="0" maxOccurs="10" /> <xs:element name="AastraIPPhoneImageScreen">
</xs:sequence> <xs:complexType>
<xs:attribute name="destroyOnExit" type="textAttributeType" default="no" /> <xs:sequence>
<xs:attribute name="Beep" type="textAttributeType" default="no" /> <xs:element name="Image" type="imageType" />
<xs:attribute name="mode" type="modeType" default="normal" /> <xs:element name="SoftKey" type="softKeyType" minOccurs="0" maxOccurs="10" />
<xs:attribute name="LockIn" type="textAttributeType" default="no" /> </xs:sequence>
<xs:attribute name="Timeout" type="integerAttributeType" default="45" /> <xs:attribute name="destroyOnExit" type="textAttributeType" default="no" />
<xs:attribute name="imageAction" type="xs:string" /> <xs:attribute name="Beep" type="textAttributeType" default="no" />
<xs:attribute name="doneAction" type="xs:string" /> <xs:attribute name="mode" type="modeType" default="normal" />
<xs:attribute name="cancelAction" type="xs:string" /> <xs:attribute name="LockIn" type="textAttributeType" default="no" />
<xs:attribute name="allowDTMF" type="xs:string" default="no"/> <xs:attribute name="Timeout" type="integerAttributeType" default="45" />
</xs:complexType> <xs:attribute name="imageAction" type="xs:string" />
</xs:element> <xs:attribute name="doneAction" type="xs:string" />
<xs:attribute name="cancelAction" type="xs:string" />
<xs:element name="AastraIPPhoneImageMenu"> <xs:attribute name="allowDTMF" type="xs:string" default="no"/>
<xs:complexType> </xs:complexType>
<xs:sequence> </xs:element>
<xs:element name="Image" type="imageType" />
<xs:element name="URIList"> <xs:element name="AastraIPPhoneImageMenu">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="URI" minOccurs="0" maxOccurs="12"> <xs:element name="Image" type="imageType" />
<xs:complexType mixed="true"> <xs:element name="URIList">
<xs:attribute name="base" /> <xs:complexType>
<xs:attribute name="key" use="required" > <xs:sequence>
<xs:simpleType> <xs:element name="URI" minOccurs="0" maxOccurs="12">
<xs:restriction base="xs:string"> <xs:complexType mixed="true">
<xs:pattern value="[0-9]|#|\*" /> <xs:attribute name="base" />
</xs:restriction> <xs:attribute name="key" use="required" >
</xs:simpleType> <xs:simpleType>
</xs:attribute> <xs:restriction base="xs:string">
</xs:complexType> <xs:pattern value="[0-9]|#|\*" />
</xs:element> </xs:restriction>
</xs:sequence> </xs:simpleType>
</xs:complexType> </xs:attribute>
</xs:element> </xs:complexType>
<xs:element name="SoftKey" type="softKeyType" minOccurs="0" maxOccurs="10" /> </xs:element>
<xs:element name="IconList" type="iconListType" minOccurs="0" maxOccurs="1" /> </xs:sequence>
</xs:sequence> </xs:complexType>
<xs:attribute name="destroyOnExit" type="textAttributeType" default="no" /> </xs:element>
<xs:attribute name="Beep" type="textAttributeType" default="no" /> <xs:element name="SoftKey" type="softKeyType" minOccurs="0" maxOccurs="10" />
<xs:attribute name="mode" type="modeType" default="normal" /> <xs:element name="IconList" type="iconListType" minOccurs="0" maxOccurs="1" />
<xs:attribute name="LockIn" type="textAttributeType" default="no" /> </xs:sequence>
<xs:attribute name="Timeout" type="integerAttributeType" default="45" /> <xs:attribute name="destroyOnExit" type="textAttributeType" default="no" />
<xs:attribute name="imageAction" type="xs:string" /> <xs:attribute name="Beep" type="textAttributeType" default="no" />
<xs:attribute name="doneAction" type="xs:string" /> <xs:attribute name="mode" type="modeType" default="normal" />
<xs:attribute name="cancelAction" type="xs:string" /> <xs:attribute name="LockIn" type="textAttributeType" default="no" />
</xs:complexType> <xs:attribute name="Timeout" type="integerAttributeType" default="45" />
</xs:element> <xs:attribute name="imageAction" type="xs:string" />
<xs:attribute name="doneAction" type="xs:string" />
<xs:attribute name="cancelAction" type="xs:string" />
</xs:complexType>
</xs:schema> </xs:element>
</xs:schema>

View File

@ -1,4 +1,4 @@
Copyright (c) 2007-2011 Aastra Telecom US, Inc. Copyright (c) 2005-2015 Mitel Networks
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
@ -12,7 +12,7 @@ are met:
3. The name of Aastra Telecom US, Inc. may not be used to endorse or promote 3. The name of Aastra Telecom US, Inc. may not be used to endorse or promote
products derived from this software without specific prior written permission. products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY AASTRA TELECOM US, INC. ``AS IS'' AND ANY EXPRESS THIS SOFTWARE IS PROVIDED BY MITEL NETWORKS ``AS IS'' AND ANY EXPRESS
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL AASTRA TELECOM US, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, IN NO EVENT SHALL AASTRA TELECOM US, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,

View File

@ -1,12 +1,9 @@
############################################################################# #############################################################################
# server.conf # server.conf
# #
# Main Configuration file for Aastra XML scripts # Main Configuration file for Mitel XML scripts
# Located in /etc
# #
# Version: VERSION # Copyright 2005-2015 Mitel Networks
#
# Copyright 2009 Aastra Telecom Ltd
# #
############################################################################# #############################################################################
[General] [General]

View File

@ -1,10 +1,10 @@
<?php <?php
############################################################################# #############################################################################
# Contact lookup # Contact lookup
# Aastra SIP Phones R1.4.2 or better # Mitel SIP Phones R1.4.2 or better
# #
# php source code # php source code
# Copyright Aastra Telecom Ltd 2007-2009 # Copyright Mitel Networks 2005-2015
# #
# Supported Aastra Phones # Supported Aastra Phones
# All Phones but 9112i, 9133i # All Phones but 9112i, 9133i

View File

@ -2,10 +2,10 @@
##################################################################### #####################################################################
# Server side speed dial # Server side speed dial
# #
# Aastra SIP Phones R1.4.2 or better # Mitel SIP Phones R1.4.2 or better
# Copyright 2007-2009 Aastra Telecom Ltd # Copyright 2005-2015 Mitel Networks
# #
# Supported Aastra Phones # Supported Mitel Phones
# All Phones # All Phones
# #
# Usage # Usage

View File

@ -1,4 +1,4 @@
Copyright (c) 2007-2011 Aastra Telecom US, Inc. Copyright (c) 2005-2015 Mitel Networks
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
@ -12,7 +12,7 @@ are met:
3. The name of Aastra Telecom US, Inc. may not be used to endorse or promote 3. The name of Aastra Telecom US, Inc. may not be used to endorse or promote
products derived from this software without specific prior written permission. products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY AASTRA TELECOM US, INC. ``AS IS'' AND ANY EXPRESS THIS SOFTWARE IS PROVIDED BY MITEL NETWORKS ``AS IS'' AND ANY EXPRESS
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL AASTRA TELECOM US, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, IN NO EVENT SHALL AASTRA TELECOM US, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,

View File

@ -1,12 +1,11 @@
<?php <?php
################################################################################################### ###################################################################################################
# Example of an XML Directory using LDAP as data source for the Aastra IP Phones # Example of an XML Directory using LDAP as data source for the Aastra IP Phones
# Copyright Aastra Telecom 2009-2011 # Copyright 2005-2015 Mitel Networks
# #
# Script needs PHP5 or higher with LDAP extension # Script needs PHP5 or higher with LDAP extension
# #
# Aastra SIP Phones Firmware 2.3.0 or higher. # Aastra SIP Phones Firmware 2.3.0 or higher.
# Supported phones: All 67xxi phones.
# #
# Configuration: # Configuration:
# See file ../config/ldap_directory.conf # See file ../config/ldap_directory.conf

View File

@ -1,7 +1,7 @@
<?php <?php
################################################################################################### ###################################################################################################
# Aastra XML API - AastraCommon.php # Aastra XML API - AastraCommon.php
# Copyright Aastra Telecom 2005-2010 # Copyright Mitel Networks 2005-2015
# #
# This file includes functions specific for Aastra XML API # This file includes functions specific for Aastra XML API
# #

View File

@ -1,7 +1,7 @@
<?php <?php
################################################################################################### ###################################################################################################
# Aastra XML API Classes - AastraIPPhone # Aastra XML API Classes - AastraIPPhone
# Copyright Aastra Telecom 2005-2010 # Copyright Mitel Networks 2005-2015
# #
# AastraIPPhone is the root class for all the Aastra XML objects. # AastraIPPhone is the root class for all the Aastra XML objects.
# #

View File

@ -1,7 +1,7 @@
<?php <?php
################################################################################################### ###################################################################################################
# Aastra XML API - AastraIPPhone.php # Aastra XML API - AastraIPPhone.php
# Copyright Aastra Telecom 2005-2010 # Copyright Mitel Networks 2005-2015
# #
# This file includes common functions to be used with the Aastra XML API. # This file includes common functions to be used with the Aastra XML API.
# #
@ -268,8 +268,8 @@ return($return);
# 1=9112i,9133i # 1=9112i,9133i
# 2=480i,480i Cordless # 2=480i,480i Cordless
# 3=6730i,6731i,6751i,6753i,9143i,6863i,6865i # 3=6730i,6731i,6751i,6753i,9143i,6863i,6865i
# 4=6755i,6757i,6757iCT,9480i,9480iCT,6735i,6737i,6867i,6869i # 4=6755i,6757i,6757iCT,9480i,9480iCT,6735i,6737i,6867i,6869i,6873i
# 5=6739i, Aastra8000i # 5=6739i, 8000i
# #
# Returns # Returns
# 0 everything is fine # 0 everything is fine
@ -303,7 +303,7 @@ else
$models=array('Aastra6730i','Aastra6731i','Aastra51i','Aastra53i','Aastra6863i','Aastra6865i'); $models=array('Aastra6730i','Aastra6731i','Aastra51i','Aastra53i','Aastra6863i','Aastra6865i');
break; break;
case '4': case '4':
$models=array('Aastra55i','Aastra57iCTi','Aastra9480i','Aastra9480iCT','Aastra6735i','Aastra6737i','Aastra6867i','Aastra6869i'); $models=array('Aastra55i','Aastra57iCTi','Aastra9480i','Aastra9480iCT','Aastra6735i','Aastra6737i','Aastra6867i','Aastra6869i','Aastra6873i');
break; break;
case '5': case '5':
$models=array('Aastra6739i','Aastra8000i'); $models=array('Aastra6739i','Aastra8000i');
@ -442,6 +442,7 @@ function Aastra_is_top_title_supported($header=NULL)
case 'Aastra8000i': case 'Aastra8000i':
case 'Aastra6867i': case 'Aastra6867i':
case 'Aastra6869i': case 'Aastra6869i':
case 'Aastra6873i':
$return=True; $return=True;
break; break;
case 'Aastra6739i': case 'Aastra6739i':
@ -483,6 +484,7 @@ switch($header['model'])
break; break;
case 'Aastra6867i': case 'Aastra6867i':
case 'Aastra6869i': case 'Aastra6869i':
case 'Aastra6873i':
case 'Aastra6739i': case 'Aastra6739i':
case 'Aastra8000i': case 'Aastra8000i':
$return=False; $return=False;
@ -559,6 +561,7 @@ switch($header['model'])
case 'Aastra6737i': case 'Aastra6737i':
case 'Aastra6867i': case 'Aastra6867i':
case 'Aastra6869i': case 'Aastra6869i':
case 'Aastra6873i':
$return=True; $return=True;
break; break;
case 'Aastra6739i': case 'Aastra6739i':
@ -604,6 +607,7 @@ switch($header['model'])
case 'Aastra6737i': case 'Aastra6737i':
case 'Aastra6867i': case 'Aastra6867i':
case 'Aastra6869i': case 'Aastra6869i':
case 'Aastra6873i':
$return=True; $return=True;
break; break;
case 'Aastra6739i': case 'Aastra6739i':
@ -677,6 +681,7 @@ switch($header['model'])
{ {
case 'Aastra6867i': case 'Aastra6867i':
case 'Aastra6869i': case 'Aastra6869i':
case 'Aastra6873i':
$return=True; $return=True;
break; break;
case 'Aastra6739i': case 'Aastra6739i':
@ -754,6 +759,7 @@ switch($header['model'])
break; break;
case 'Aastra6867i': case 'Aastra6867i':
case 'Aastra6869i': case 'Aastra6869i':
case 'Aastra6873i':
case 'Aastra8000i': case 'Aastra8000i':
$return=True; $return=True;
break; break;
@ -763,6 +769,66 @@ switch($header['model'])
return($return); return($return);
} }
###################################################################################################
# Aastra_is_touch_launch_supported(header)
#
# Parameters
# header phone HTTP header (optional)
#
# Returns
# Boolean
###################################################################################################
function Aastra_is_touch_launch_supported($header=NULL)
{
# False by default
$return=False;
# Get header info if needed
if(!$header) $header=Aastra_decode_HTTP_header();
# Test Model/Version
switch($header['model'])
{
case 'Aastra6873i':
$return=True;
break;
}
# Return result
return($return);
}
###################################################################################################
# Aastra_is_font_mono_supported(header)
#
# Parameters
# header phone HTTP header (optional)
#
# Returns
# Boolean
###################################################################################################
function Aastra_is_font_mono_supported($header=NULL)
{
# False by default
$return=False;
# Get header info if needed
if(!$header) $header=Aastra_decode_HTTP_header();
# Test Model/Version
switch($header['model'])
{
case 'Aastra6867i':
case 'Aastra6869i':
case 'Aastra6873i':
$return=True;
break;
}
# Return result
return($return);
}
################################################################################################### ###################################################################################################
# Aastra_is_jpeg_graphics_supported(header) # Aastra_is_jpeg_graphics_supported(header)
# #
@ -1001,6 +1067,7 @@ switch($header['model'])
case 'Aastra6739i': case 'Aastra6739i':
case 'Aastra6867i': case 'Aastra6867i':
case 'Aastra6869i': case 'Aastra6869i':
case 'Aastra6873i':
case 'Aastra8000i': case 'Aastra8000i':
$return=True; $return=True;
break; break;
@ -1033,6 +1100,7 @@ switch($header['model'])
case 'Aastra6739i': case 'Aastra6739i':
case 'Aastra6867i': case 'Aastra6867i':
case 'Aastra6869i': case 'Aastra6869i':
case 'Aastra6873i':
case 'Aastra8000i': case 'Aastra8000i':
$return=True; $return=True;
break; break;
@ -1077,6 +1145,7 @@ switch($header['model'])
case 'Aastra9480iCT': case 'Aastra9480iCT':
case 'Aastra6735i': case 'Aastra6735i':
case 'Aastra6737i': case 'Aastra6737i':
case 'Aastra6873i':
$return=6; $return=6;
break; break;
case 'Aastra6739i': case 'Aastra6739i':
@ -1125,6 +1194,7 @@ switch($header['model'])
$return=6; $return=6;
break; break;
case 'Aastra6739i': case 'Aastra6739i':
case 'Aastra6873i':
case 'Aastra8000i': case 'Aastra8000i':
$return=10; $return=10;
break; break;
@ -1134,7 +1204,6 @@ switch($header['model'])
return($return); return($return);
} }
################################################################################################### ###################################################################################################
# Aastra_is_doneaction_supported(header) # Aastra_is_doneaction_supported(header)
# #
@ -1369,6 +1438,7 @@ switch($header['model'])
case 'Aastra6737i': case 'Aastra6737i':
case 'Aastra6867i': case 'Aastra6867i':
case 'Aastra6869i': case 'Aastra6869i':
case 'Aastra6873i':
case 'Aastra6739i': case 'Aastra6739i':
$return=True; $return=True;
break; break;
@ -1407,6 +1477,7 @@ switch($header['model'])
case 'Aastra6737i': case 'Aastra6737i':
case 'Aastra6867i': case 'Aastra6867i':
case 'Aastra6869i': case 'Aastra6869i':
case 'Aastra6873i':
case 'Aastra6739i': case 'Aastra6739i':
$return=True; $return=True;
break; break;
@ -1577,7 +1648,7 @@ $return=False;
# Get info header if needed # Get info header if needed
if(!$header) $header=Aastra_decode_HTTP_header(); if(!$header) $header=Aastra_decode_HTTP_header();
# Only the 6867i/6869i/6739i/8000i # Only the 6867i/6869i/6873i/6739i/8000i
if($header['model']=='Aastra6739i') if($header['model']=='Aastra6739i')
{ {
if(Aastra_test_phone_version('3.0.1.',1,$header)==0) $return=True; if(Aastra_test_phone_version('3.0.1.',1,$header)==0) $return=True;
@ -1585,6 +1656,7 @@ if($header['model']=='Aastra6739i')
if($header['model']=='Aastra8000i') $return=True; if($header['model']=='Aastra8000i') $return=True;
if($header['model']=='Aastra6867i') $return=True; if($header['model']=='Aastra6867i') $return=True;
if($header['model']=='Aastra6869i') $return=True; if($header['model']=='Aastra6869i') $return=True;
if($header['model']=='Aastra6873i') $return=True;
# Return result # Return result
return($return); return($return);
@ -1633,6 +1705,7 @@ switch($header['model'])
break; break;
case 'Aastra6867i': case 'Aastra6867i':
case 'Aastra6869i': case 'Aastra6869i':
case 'Aastra6873i':
case 'Aastra6739i': case 'Aastra6739i':
case 'Aastra8000i': case 'Aastra8000i':
$return=14; $return=14;
@ -1688,6 +1761,7 @@ switch($header['model'])
break; break;
case 'Aastra6867i': case 'Aastra6867i':
case 'Aastra6869i': case 'Aastra6869i':
case 'Aastra6873i':
case 'Aastra6739i': case 'Aastra6739i':
case 'Aastra8000i': case 'Aastra8000i':
$return='32'; $return='32';
@ -1738,6 +1812,15 @@ switch($header['model'])
$array=array( 'width'=>'480','height'=>'272'); $array=array( 'width'=>'480','height'=>'272');
} }
break; break;
case 'Aastra6873i':
if($mode=='regular') {
$array=array( 'width'=>'800','height'=>'372');
} else if($mode=='extended') {
$array=array( 'width'=>'800','height'=>'372');
} else if($mode=='fullscreen') {
$array=array( 'width'=>'800','height'=>'480');
}
break;
case 'Aastra6739i': case 'Aastra6739i':
if($mode=='regular') { if($mode=='regular') {
$array=array( 'width'=>'380','height'=>'340'); $array=array( 'width'=>'380','height'=>'340');
@ -1842,6 +1925,7 @@ if($fp)
fclose($fp); fclose($fp);
$return=True; $return=True;
} }
# Return result # Return result
return($return); return($return);
} }
@ -1862,7 +1946,22 @@ return($return);
################################################################################################### ###################################################################################################
function Aastra_getvar_safe($var_name,$default='',$method='GET') function Aastra_getvar_safe($var_name,$default='',$method='GET')
{ {
eval('$return = (isset($_'.$method.'["'.$var_name.'"])) ? htmlentities(html_entity_decode(stripslashes((trim($_'.$method.'["'.$var_name.'"]))),ENT_QUOTES),ENT_QUOTES) : $default;'); eval('$return = (isset($_'.$method.'["'.$var_name.'"])) ? htmlentities(html_entity_decode((trim($_'.$method.'["'.$var_name.'"])),ENT_QUOTES),ENT_QUOTES) : $default;');
$m_patterns = array();
$m_patterns[0] = '/&amp;/';
$m_patterns[1] = '/&quot;/';
$m_patterns[2] = '/&lt;/';
$m_patterns[3] = '/&gt;/';
$m_replacements = array();
$m_replacements[0] = '&#38;';
$m_replacements[1] = '&#34;';
$m_replacements[2] = '&#60;';
$m_replacements[3] = '&#62;';
$return = preg_replace($m_patterns, $m_replacements, $return);
$return = html_entity_decode($return,ENT_QUOTES);
return $return; return $return;
} }
@ -1900,7 +1999,7 @@ return(md5($header['model'].$header['mac'].$header['ip']));
# 2=480i,480i Cordless # 2=480i,480i Cordless
# 3=6730i,6731i,6751i,6753i,9143i # 3=6730i,6731i,6751i,6753i,9143i
# 4=6755i,6757i,6757iCT # 4=6755i,6757i,6757iCT
# 5=6739i,VideoPhone # 5=6739i,8000i
################################################################################################### ###################################################################################################
function Aastra_phone_type($header=NULL) function Aastra_phone_type($header=NULL)
{ {
@ -1939,6 +2038,7 @@ switch($header['model'])
case 'Aastra6737i': case 'Aastra6737i':
case 'Aastra6867i': case 'Aastra6867i':
case 'Aastra6869i': case 'Aastra6869i':
case 'Aastra6873i':
$return='4'; $return='4';
break; break;
case 'Aastra6739i': case 'Aastra6739i':

View File

@ -1,7 +1,7 @@
<?php <?php
######################################################################################################## ########################################################################################################
# Aastra XML API Classes - AastraIPPhoneCallLog # Aastra XML API Classes - AastraIPPhoneCallLog
# Copyright Aastra Telecom 2005-2012 # Copyright Mitel Networks 2005-2015
# #
# AastraIPPhoneCallLog object. # AastraIPPhoneCallLog object.
# #

View File

@ -1,7 +1,7 @@
<?php <?php
################################################################################ ################################################################################
# Aastra XML API Classes - AastraIPPhoneCallLogEntry # Aastra XML API Classes - AastraIPPhoneCallLogEntry
# Copyright Aastra Telecom 2005-2012 # Copyright Mitel Networks 2005-2015
# #
# Internal class for AastraIPPhoneCallLog object. # Internal class for AastraIPPhoneCallLog object.
################################################################################ ################################################################################

View File

@ -1,7 +1,7 @@
<?php <?php
######################################################################################################## ########################################################################################################
# Aastra XML API Classes - AastraIPPhoneConfiguration # Aastra XML API Classes - AastraIPPhoneConfiguration
# Copyright Aastra Telecom 2007-2010 # Copyright Mitel Networks 2005-2015
# #
# AastraIPPhoneConfiguration object. # AastraIPPhoneConfiguration object.
# #

View File

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

View File

@ -1,7 +1,7 @@
<?php <?php
######################################################################################################## ########################################################################################################
# Aastra XML API Classes - AastraIPPhoneExecute # Aastra XML API Classes - AastraIPPhoneExecute
# Copyright Aastra Telecom 2006-2010 # Copyright Mitel Networks 2005-2015
# #
# AastraIPPhoneExecute object. # AastraIPPhoneExecute object.
# #
@ -16,9 +16,10 @@
# #
# Specific to the object # Specific to the object
# setTriggerDestroyOnExit() to set the triggerDestroyOnExit tag to "yes" (optional) # setTriggerDestroyOnExit() to set the triggerDestroyOnExit tag to "yes" (optional)
# addEntry(url,interruptCall) to add an action to be executed. # addEntry(url,interruptCall,title) to add an action to be executed.
# @url string # @url string
# @interruptCall string, optional, "yes" or "no" # @interruptCall string, optional, "yes" or "no"
# @title string, optional, title to be used in Wav.Play screen
# #
# Example # Example
# require_once('AastraIPPhoneExecute.class.php'); # require_once('AastraIPPhoneExecute.class.php');
@ -36,9 +37,9 @@ class AastraIPPhoneExecute extends AastraIPPhone {
var $_defaultIndex=''; var $_defaultIndex='';
var $_triggerDestroyOnExit=''; var $_triggerDestroyOnExit='';
function addEntry($url,$interruptCall=NULL) function addEntry($url,$interruptCall=NULL,$title='')
{ {
$this->_entries[] = new AastraIPPhoneExecuteEntry($url,$interruptCall); $this->_entries[] = new AastraIPPhoneExecuteEntry($url,$interruptCall,$title);
} }
function setTriggerDestroyOnExit() function setTriggerDestroyOnExit()

View File

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# Aastra XML API Classes - AastraIPPhoneExecuteEntry # Aastra XML API Classes - AastraIPPhoneExecuteEntry
# Firmware 2.0 or better # Firmware 2.0 or better
# Copyright Aastra Telecom 2005-2010 # Copyright Mitel Networks 2005-2015
# #
# Internal class for AastraIPPhoneExecute object. # Internal class for AastraIPPhoneExecute object.
################################################################################ ################################################################################
@ -10,18 +10,22 @@
class AastraIPPhoneExecuteEntry extends AastraIPPhone { class AastraIPPhoneExecuteEntry extends AastraIPPhone {
var $_url; var $_url;
var $_interruptCall; var $_interruptCall;
var $_title;
function AastraIPPhoneExecuteEntry($url,$interruptCall) function AastraIPPhoneExecuteEntry($url,$interruptCall,$title)
{ {
$this->_url = $url; $this->_url = $url;
$this->_interruptCall = $interruptCall; $this->_interruptCall = $interruptCall;
$this->_title = $title;
} }
function render() function render()
{ {
$url = $this->escape($this->_url); $url = $this->escape($this->_url);
$title = $this->escape($this->_title);
$xml = "<ExecuteItem URI=\"".$url."\""; $xml = "<ExecuteItem URI=\"".$url."\"";
if ($this->_interruptCall=='no') $xml .= " interruptCall=\"no\""; if ($this->_interruptCall=='no') $xml .= " interruptCall=\"no\"";
if ($this->_title!='') $xml .= " title=\"".$title."\"";
$xml .= "/>\n"; $xml .= "/>\n";
return($xml); return($xml);
} }

View File

@ -1,7 +1,7 @@
<?php <?php
######################################################################################################## ########################################################################################################
# Aastra XML API Classes - AastraIPFormattedPhoneTextScreen # Aastra XML API Classes - AastraIPFormattedPhoneTextScreen
# Copyright Aastra Telecom 2008-2010 # Copyright Mitel Networks 2005-2015
# #
# AastraIPPhoneFormattedTextScreen object. # AastraIPPhoneFormattedTextScreen object.
# #
@ -66,6 +66,7 @@
# @uri string # @uri string
# setScrollRight(uri) to set the URI to be called when the user presses the Right arrow (optional) # setScrollRight(uri) to set the URI to be called when the user presses the Right arrow (optional)
# @uri string # @uri string
# setNoFontMono() to allow the override of the monotype font with a proportional font (6867i. 6869i and 6873i only)
# setDial(number,line) to set the number to be dialed as well as the line to use when going off-hook or with the custom softkey Softkey::Dial2 # setDial(number,line) to set the number to be dialed as well as the line to use when going off-hook or with the custom softkey Softkey::Dial2
# @number string # @number string
# @line integer (optional) # @line integer (optional)
@ -102,6 +103,7 @@ class AastraIPPhoneFormattedTextScreen extends AastraIPPhone {
var $_scrollRight=''; var $_scrollRight='';
var $_dialNumber=''; var $_dialNumber='';
var $_dialLine=''; var $_dialLine='';
var $_fontMono='';
function addLine($text, $size=NULL, $align=NULL, $color=NULL) function addLine($text, $size=NULL, $align=NULL, $color=NULL)
{ {
@ -160,6 +162,11 @@ class AastraIPPhoneFormattedTextScreen extends AastraIPPhone {
$this->_dialLine = $dialLine; $this->_dialLine = $dialLine;
} }
function setNoFontMono()
{
$this->_fontMono = 'no';
}
function render() function render()
{ {
# Beginning of root tag # Beginning of root tag
@ -214,6 +221,9 @@ class AastraIPPhoneFormattedTextScreen extends AastraIPPhone {
if($this->_scrollDown!='') $out .= " scrollDown=\"".$this->escape($this->_scrollDown)."\""; if($this->_scrollDown!='') $out .= " scrollDown=\"".$this->escape($this->_scrollDown)."\"";
if($this->_scrollLeft!='') $out .= " scrollLeft=\"".$this->escape($this->_scrollLeft)."\""; if($this->_scrollLeft!='') $out .= " scrollLeft=\"".$this->escape($this->_scrollLeft)."\"";
if($this->_scrollRight!='') $out .= " scrollRight=\"".$this->escape($this->_scrollRight)."\""; if($this->_scrollRight!='') $out .= " scrollRight=\"".$this->escape($this->_scrollRight)."\"";
# Font Monotype
if ($this->_fontMono == 'no') $out .= " fontMono=\"no\"";
# End of Root tag # End of Root tag
$out .= ">\n"; $out .= ">\n";
@ -271,7 +281,5 @@ class AastraIPPhoneFormattedTextScreen extends AastraIPPhone {
# Return XML object # Return XML object
return $out; return $out;
} }
} }
?> ?>

View File

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# Aastra XML API Classes - AastraIPPhoneFormattedTextScreenEntry # Aastra XML API Classes - AastraIPPhoneFormattedTextScreenEntry
# Firmware 2.0 or better # Firmware 2.0 or better
# Copyright Aastra Telecom 2008-2010 # Copyright Mitel Networks 2005-2015
# #
# Internal class for AastraIPPhoneFormattedTextScreen object. # Internal class for AastraIPPhoneFormattedTextScreen object.
################################################################################ ################################################################################

View File

@ -1,7 +1,7 @@
<?php <?php
######################################################################################################### #########################################################################################################
# Aastra XML API Classes - Aastra XML API Classes - AastraIPPhoneGDImage # Aastra XML API Classes - Aastra XML API Classes - AastraIPPhoneGDImage
# Copyright Aastra Telecom 2007-2010 # Copyright Mitel Networks 2005-2015
# #
# Firmware 2.0 or better # Firmware 2.0 or better
# #

View File

@ -1,8 +1,8 @@
<?php <?php
################################################################################ ################################################################################
# Aastra XML API Classes - AastraIPIconEntry # Aastra XML API Classes - AastraIPPhoneIconEntry
# Firmware 2.0 or better # Firmware 2.0 or better
# Copyright Aastra Telecom 2007-2010 # Copyright Mitel Networks 2005-2015
# #
# Internal class for AastraIPPhone object. # Internal class for AastraIPPhone object.
################################################################################ ################################################################################

View File

@ -1,7 +1,7 @@
<?php <?php
######################################################################################################## ########################################################################################################
# Aastra XML API Classes - AastraIPPhoneImageMenu # Aastra XML API Classes - AastraIPPhoneImageMenu
# Copyright Aastra Telecom 2007-2012 # Copyright Mitel Networks 2005-2015
# #
# AastraIPPhoneImageMenu object. # AastraIPPhoneImageMenu object.
# #

View File

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

View File

@ -1,7 +1,7 @@
<?php <?php
######################################################################################################## ########################################################################################################
# Aastra XML API Classes - AastraIPPhoneImageScreen # Aastra XML API Classes - AastraIPPhoneImageScreen
# Copyright Aastra Telecom 2008-2012 # Copyright Mitel Networks 2005-2015
# #
# AastraIPPhoneImageScreen object. # AastraIPPhoneImageScreen object.
# #

View File

@ -1,7 +1,7 @@
<?php <?php
######################################################################################################## ########################################################################################################
# Aastra XML API Classes - AastraIPPhoneInputScreen # Aastra XML API Classes - AastraIPPhoneInputScreen
# Copyright Aastra Telecom 2005-2011 # Copyright Mitel Networks 2005-2015
# #
# AastraIPPhoneInputScreen object. # AastraIPPhoneInputScreen object.
# #

View File

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# Aastra XML API Classes - AastraIPPhoneInputScreenEntry # Aastra XML API Classes - AastraIPPhoneInputScreenEntry
# Firmware 2.0 or better # Firmware 2.0 or better
# Copyright Aastra Telecom 2005-2010 # Copyright Mitel Networks 2005-2015
# #
# Internal class for AastraIPPhoneInputScreen object. # Internal class for AastraIPPhoneInputScreen object.
################################################################################ ################################################################################

View File

@ -2,7 +2,7 @@
############################################################################# #############################################################################
# AastraIPPhoneScrollHandler # AastraIPPhoneScrollHandler
# #
# Copyright 2009 Aastra Telecom Ltd # Copyright Mitel Networks 2005-2015
# #
# Note # Note
# This script is a helper script of the AastraIPPhoneScrollableTextMenu # This script is a helper script of the AastraIPPhoneScrollableTextMenu

View File

@ -4,7 +4,7 @@
# #
# Aastra SIP Phones 1.4.2 or better # Aastra SIP Phones 1.4.2 or better
# #
# Copyright 2009-2011 Aastra Telecom Ltd # Copyright Mitel Networks 2005-2015
# #
# Supported Aastra Phones # Supported Aastra Phones
# All IP phones except Aastra9112i and Aastra9133i # All IP phones except Aastra9112i and Aastra9133i
@ -69,7 +69,7 @@
# $records[99]['office'] = "+1 (0) 555-123-1234"; # $records[99]['office'] = "+1 (0) 555-123-1234";
# $records[99]['officeDigits'] = "1234"; # $records[99]['officeDigits'] = "1234";
# $records[99]['home'] = "044 555 22 33"; # $records[99]['home'] = "044 555 22 33";
# $records[99]['company'] = "Aastra Telecom Inc."; # $records[99]['company'] = "Mitel";
# $directory = new AastraIPPhoneScrollableDirectory(); # $directory = new AastraIPPhoneScrollableDirectory();
# $directory->setTitle('Directory'); # $directory->setTitle('Directory');
# $directory->setBackURI($XML_SERVER."?action=start"); # $directory->setBackURI($XML_SERVER."?action=start");
@ -167,12 +167,7 @@ class AastraIPPhoneScrollableDirectory extends AastraIPPhoneScrollableTextMenu
if (Aastra_is_style_textmenu_supported()) $menu->setStyle('none'); if (Aastra_is_style_textmenu_supported()) $menu->setStyle('none');
if (Aastra_is_wrap_title_supported())$menu->setTitleWrap(); if (Aastra_is_wrap_title_supported())$menu->setTitleWrap();
if (Aastra_is_textmenu_wrapitem_supported()) $menu->setWrapList(); if (Aastra_is_textmenu_wrapitem_supported()) $menu->setWrapList();
if (Aastra_is_top_title_supported()) $menu->setTitle($myrecord['name']);
{
$menu->setTopTitle($myrecord['name']);
$menu->setTitle(' ');
}
else $menu->setTitle($myrecord['name']);
# Default Index # Default Index
$defaultIndex = 1; $defaultIndex = 1;
@ -265,22 +260,9 @@ class AastraIPPhoneScrollableDirectory extends AastraIPPhoneScrollableTextMenu
} }
# Softkeys # Softkeys
$nb_softkeys=Aastra_number_physical_softkeys_supported(); if (Aastra_is_softkeys_supported())
if ($nb_softkeys)
{ {
if ($nb_softkeys==4) if (Aastra_number_softkeys_supported()!=10)
{
# 6867i
if (!Aastra_test_phone_version('2.0.1.',1)) $dialKeyType = 'SoftKey:Dial2';
else $dialKeyType = 'SoftKey:Dial';
$menu->addSoftkey(1, Aastra_get_label('Dial',$this->_language), $dialKeyType);
$menu->addSoftkey(3, Aastra_get_label('Back',$this->_language), $this->_scrollHandlerReference.'&listPage='.$recentPage.'&recentSelection='.$recentSelection);
$menu->addSoftkey(4, Aastra_get_label('Exit',$this->_language), 'SoftKey:Exit');
# Check if speed dial URL is set
if (isset($myrecord['speedURL'])) $menu->addSoftkey(2, Aastra_get_label('Add to Speed Dial',$this->_language), $myrecord['speedURL']);
}
else if ($nb_softkeys==6)
{ {
# Regular phone with 6 softkeys # Regular phone with 6 softkeys
if (!Aastra_test_phone_version('2.0.1.',1)) $dialKeyType = 'SoftKey:Dial2'; if (!Aastra_test_phone_version('2.0.1.',1)) $dialKeyType = 'SoftKey:Dial2';

View File

@ -4,7 +4,7 @@
# #
# Aastra SIP Phones 1.4.2 or better # Aastra SIP Phones 1.4.2 or better
# #
# Copyright 2009-2011 Aastra Telecom Ltd # Copyright Mitel Networks 2005-2015
# #
# Supported Aastra Phones # Supported Aastra Phones
# All IP phones except Aastra9112i and Aastra9133i # All IP phones except Aastra9112i and Aastra9133i

View File

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# Aastra XML API Classes - AastraIPPhoneSoftkeyEntry # Aastra XML API Classes - AastraIPPhoneSoftkeyEntry
# Firmware 2.0 or better # Firmware 2.0 or better
# Copyright Aastra Telecom 2005-2010 # Copyright Mitel Networks 2005-2015
# #
# Internal class for AastraIPPhone object. # Internal class for AastraIPPhone object.
################################################################################ ################################################################################

View File

@ -1,7 +1,7 @@
<?php <?php
######################################################################################################## ########################################################################################################
# Aastra XML API Classes - AastraIPPhoneStatus # Aastra XML API Classes - AastraIPPhoneStatus
# Copyright Aastra Telecom 2006-2010 # Copyright Mitel Networks 2005-2015
# #
# AastraIPPhoneStatus object. # AastraIPPhoneStatus object.
# #

View File

@ -1,7 +1,7 @@
<?php <?php
################################################################################ ################################################################################
# Aastra XML API Classes - AastraIPPhoneStatusEntry # Aastra XML API Classes - AastraIPPhoneStatusEntry
# Copyright Aastra Telecom 2007-2010 # Copyright Mitel Networks 2005-2015
# #
# Internal class for AastraIPPhoneStatus object. # Internal class for AastraIPPhoneStatus object.
################################################################################ ################################################################################

View File

@ -1,7 +1,7 @@
<?php <?php
######################################################################################################## ########################################################################################################
# Aastra XML API Classes - AastraIPPhoneTextMenu # Aastra XML API Classes - AastraIPPhoneTextMenu
# Copyright Aastra Telecom 2005-2010 # Copyright Mitel Networks 2005-2015
# #
# AastraIPPhoneTextMenu object. # AastraIPPhoneTextMenu object.
# #
@ -52,6 +52,8 @@
# setWrapList() to allow 2 lines items (optional) # setWrapList() to allow 2 lines items (optional)
# setScrollConstrain() to avoid the list to wrap # setScrollConstrain() to avoid the list to wrap
# setNumberLaunch() to allow number selection # setNumberLaunch() to allow number selection
# setTouchLaunch() to allow item direct selection (6873i only)
# setNoFontMono() to allow the override of the monotype font with a proportional font (6867i. 6869i and 6873i only)
# setBase(base) to configure the menuItem base URI # setBase(base) to configure the menuItem base URI
# @base string # @base string
# resetBase() to reset the menuItem base URI # resetBase() to reset the menuItem base URI
@ -113,9 +115,11 @@ class AastraIPPhoneTextMenu extends AastraIPPhone {
var $_maxitems='30'; var $_maxitems='30';
var $_scrollConstrain=''; var $_scrollConstrain='';
var $_numberLaunch=''; var $_numberLaunch='';
var $_touchLaunch='';
var $_scrollUp=''; var $_scrollUp='';
var $_scrollDown=''; var $_scrollDown='';
var $_unitScroll=''; var $_unitScroll='';
var $_fontMono='';
function setDefaultIndex($defaultIndex) function setDefaultIndex($defaultIndex)
{ {
@ -163,6 +167,16 @@ class AastraIPPhoneTextMenu extends AastraIPPhone {
$this->_numberLaunch = 'yes'; $this->_numberLaunch = 'yes';
} }
function setTouchLaunch()
{
$this->_touchLaunch = 'yes';
}
function setNoFontMono()
{
$this->_fontMono = 'no';
}
function setScrollUp($uri) function setScrollUp($uri)
{ {
$this->_scrollUp = $uri; $this->_scrollUp = $uri;
@ -236,6 +250,12 @@ class AastraIPPhoneTextMenu extends AastraIPPhone {
# Number selection # Number selection
if ($this->_numberLaunch == 'yes') $out .= " numberLaunch=\"yes\""; if ($this->_numberLaunch == 'yes') $out .= " numberLaunch=\"yes\"";
# Number selection
if ($this->_touchLaunch == 'yes') $out .= " touchLaunch=\"yes\"";
# Font Monotype
if ($this->_fontMono == 'no') $out .= " fontMono=\"no\"";
# Scrolls up/down # Scrolls up/down
if($this->_scrollUp!='') $out .= " scrollUp=\"".$this->escape($this->_scrollUp)."\""; if($this->_scrollUp!='') $out .= " scrollUp=\"".$this->escape($this->_scrollUp)."\"";
if($this->_scrollDown!='') $out .= " scrollDown=\"".$this->escape($this->_scrollDown)."\""; if($this->_scrollDown!='') $out .= " scrollDown=\"".$this->escape($this->_scrollDown)."\"";

View File

@ -1,7 +1,7 @@
<?php <?php
################################################################################ ################################################################################
# Aastra XML API Classes - AastraIPPhoneTextMenuEntry # Aastra XML API Classes - AastraIPPhoneTextMenuEntry
# Copyright Aastra Telecom 2005-2010 # Copyright Mitel Networks 2005-2015
# #
# Internal class for AastraIPPhoneTextMenu object. # Internal class for AastraIPPhoneTextMenu object.
################################################################################ ################################################################################

View File

@ -1,7 +1,7 @@
<?php <?php
######################################################################################################## ########################################################################################################
# Aastra XML API Classes - AastraIPPhoneTextScreen # Aastra XML API Classes - AastraIPPhoneTextScreen
# Copyright Aastra Telecom 2005-2010 # Copyright Mitel Networks 2005-2015
# #
# AastraIPPhoneTextScreen object. # AastraIPPhoneTextScreen object.
# #

View File

@ -1,7 +1,7 @@
<?php <?php
################################################################################ ################################################################################
# Aastra XML API Classes - AastraIPPhoneTextScreenEntry # Aastra XML API Classes - AastraIPPhoneTextScreenEntry
# Copyright Aastra Telecom 2007-2011 # Copyright Mitel Networks 2005-2015
# #
# Internal class for AastraIPPhoneTextScreen object. # Internal class for AastraIPPhoneTextScreen object.
################################################################################ ################################################################################

View File

@ -1,4 +1,4 @@
Copyright (c) 2008 Aastra Telecom US, Inc. Copyright (c) 2005-2015 Mitel Networks.
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
@ -9,10 +9,10 @@ are met:
2. Redistributions in binary form must reproduce the above copyright 2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution. documentation and/or other materials provided with the distribution.
3. The name of Aastra Telecom US, Inc. may not be used to endorse or promote 3. The name of Mitel Networks may not be used to endorse or promote
products derived from this software without specific prior written permission. products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY AASTRA TELECOM US, INC. ``AS IS'' AND ANY EXPRESS THIS SOFTWARE IS PROVIDED BY MITEL NETWORKS ``AS IS'' AND ANY EXPRESS
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL AASTRA TELECOM US, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, IN NO EVENT SHALL AASTRA TELECOM US, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,

View File

@ -3,7 +3,7 @@
########################################################################### ###########################################################################
# Sample php applications using the Aastra XML API Classes # Sample php applications using the Aastra XML API Classes
# Aastra 6739i Firmware 3.0.1 or better # Aastra 6739i Firmware 3.0.1 or better
# Copyright Aastra Telecom 2005-2010 # Copyright Mitel Networks 2005-2015
# #
########################################################################### ###########################################################################

View File

@ -1,4 +1,4 @@
Copyright (c) 2010 Aastra Telecom US, Inc. Copyright (c) 2005-2015 Mitel Networks
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
@ -12,7 +12,7 @@ are met:
3. The name of Aastra Telecom US, Inc. may not be used to endorse or promote 3. The name of Aastra Telecom US, Inc. may not be used to endorse or promote
products derived from this software without specific prior written permission. products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY AASTRA TELECOM US, INC. ``AS IS'' AND ANY EXPRESS THIS SOFTWARE IS PROVIDED BY MITEL NETWORKS ``AS IS'' AND ANY EXPRESS
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL AASTRA TELECOM US, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, IN NO EVENT SHALL AASTRA TELECOM US, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,

View File

@ -1,8 +1,8 @@
<?php <?php
############################################################################# #############################################################################
# Image Server for the 6739i Picture Caller ID Feature # Image Server for the Picture Caller ID Feature
# #
# Copyright Aastra Telecom 2009-2011 # Copyright Mitel Networks 2005-2015
# #
# Configuration # Configuration
# image server uri: http://<server>/<path-to-this-script>? # image server uri: http://<server>/<path-to-this-script>?
@ -29,6 +29,110 @@ error_reporting(E_ERROR | E_PARSE);
# Private functions # Private functions
############################################################################# #############################################################################
function getvar_safe($var_name,$default='',$method='GET')
{
eval('$return = (isset($_'.$method.'["'.$var_name.'"])) ? htmlentities(html_entity_decode(stripslashes((trim($_'.$method.'["'.$var_name.'"]))),ENT_QUOTES),ENT_QUOTES) : $default;');
return $return;
}
function decode_HTTP_header()
{
Global $TEST;
# Debug mode
if($TEST)
{
# Calculate fake mac address suffix based on client's source address
$fake_mac_suffix = strtoupper(substr(md5(getvar_safe('REMOTE_ADDR','','SERVER')),0,6));
$array=array( 'model'=>'Aastra57i',
'mac'=>'00085D'.$fake_mac_suffix,
'firmware'=>'2.5.3.26',
'ip'=>getvar_safe('REMOTE_ADDR','','SERVER'),
'language'=>'en',
'rp'=>False
);
return($array);
}
# User Agent
$user_agent=getvar_safe('HTTP_USER_AGENT','','SERVER');
if(stristr($user_agent,'Aastra'))
{
$value=preg_split('/ MAC:/',$user_agent);
$fin=preg_split('/ /',$value[1]);
$value[1]=preg_replace('/\-/','',$fin[0]);
$value[2]=preg_replace('/V:/','',$fin[1]);
}
else
{
$value[0]='MSIE';
$value[1]='NA';
$value[2]='NA';
}
# Modification for RP phones
$rp=False;
if(strstr($value[0],'RP'))
{
$rp=True;
$value[0]=preg_replace(array('/67/','/ RP/'),array('',''),$value[0]);
}
# Modules
$module[1]=getvar_safe('HTTP_X_AASTRA_EXPMOD1','','SERVER');
$module[2]=getvar_safe('HTTP_X_AASTRA_EXPMOD2','','SERVER');
$module[3]=getvar_safe('HTTP_X_AASTRA_EXPMOD3','','SERVER');
# Create array
$array=array('model'=>$value[0],'mac'=>$value[1],'firmware'=>$value[2],'ip'=>getvar_safe('REMOTE_ADDR','','SERVER'),'module'=>$module,'language'=>getvar_safe('HTTP_ACCEPT_LANGUAGE','','SERVER'),'rp'=>$rp);
return($array);
}
function is_square($header=NULL)
{
# True by default
$return=False;
# Get header info if needed
if(!$header) $header=decode_HTTP_header();
# Test the model
switch($header['model'])
{
case 'Aastra6867i':
case 'Aastra6869i':
case 'Aastra6873i':
$return=True;
break;
}
# Return Result
return($return);
}
function is_white($header=NULL)
{
# True by default
$return=False;
# Get header info if needed
if(!$header) $header=decode_HTTP_header();
# Test the model
switch($header['model'])
{
case 'Aastra6867i':
case 'Aastra6869i':
case 'Aastra6873i':
$return=True;
break;
}
# Return Result
return($return);
}
function readINIfile ($filename, $commentchar, $delim) function readINIfile ($filename, $commentchar, $delim)
{ {
# Get file content with a shared lock to avoid race conditions # Get file content with a shared lock to avoid race conditions
@ -116,34 +220,75 @@ return null;
function scaleImage($im, $blowup) function scaleImage($im, $blowup)
{ {
Global $SQUARE;
Global $WHITE;
# Image size depends on the target
if($SQUARE)
{
$target_width=200;
$target_height=200;
}
else
{
$target_width=150;
$target_height=200;
}
# Create emtpy output image. use true color to avoid color palette problems # Create emtpy output image. use true color to avoid color palette problems
$im_output = imagecreatetruecolor(150, 200); $im_output = imagecreatetruecolor($target_width, $target_height);
# White background if needed
if($WHITE)
{
$white = imagecolorallocate($im_output, 255, 255, 255);
imagefill($im_output, 0, 0, $white);
}
# Get size of input image # Get size of input image
$im_width=imagesx($im); $im_width=imagesx($im);
$im_height=imagesy($im); $im_height=imagesy($im);
# Check if image is smaller than 150x200 pixels and if "blow up" of images is disabled # Check if image is smaller than requested size and if "blow up" of images is disabled
if(($im_width < 150) && ($im_height < 200) && !$blowup) if(($im_width < $target_width) && ($im_height < $target_height) && !$blowup)
{ {
# Simply copy the image in the center of the output image. no scaling. # Simply copy the image in the center of the output image. no scaling.
imagecopy($im_output, $im, ((150-$im_width)/2) ,((200-$im_height)/2), 0, 0, $im_width, $im_height); imagecopy($im_output, $im, (($target_width-$im_width)/2) ,(($target_width-$im_height)/2), 0, 0, $im_width, $im_height);
} }
else else
{ {
# Check aspect ratio of source image if($SQUARE)
if ($im_width / $im_height <= 0.75) {
{ # Check aspect ratio of source image
# "Portrait" image. scale to 200 pixel height and center horizontally if ($im_width / $im_height <= 1)
$new_im_width = $im_width * (200 / $im_height); {
imagecopyresized($im_output, $im, ((150-$new_im_width)/2), 0, 0, 0, $new_im_width, 200, $im_width, $im_height); # "Portrait" image. scale to 200 pixel height and center horizontally
} $new_im_width = $im_width * ($target_height / $im_height);
else imagecopyresized($im_output, $im, (($target_width-$new_im_width)/2), 0, 0, 0, $new_im_width, $target_height, $im_width, $im_height);
{ }
# "Landscape" image. scale to 150 pixel width and center vertically else
$new_im_height = $im_height * (150 / $im_width); {
imagecopyresized($im_output, $im, 0, ((200-$new_im_height)/2), 0, 0, 150, $new_im_height, $im_width, $im_height); # "Landscape" image. scale to 200 pixel width and center vertically
} $new_im_height = $im_height * ($target_width / $im_width);
imagecopyresized($im_output, $im, 0, (($target_width-$new_im_height)/2), 0, 0, $target_width, $new_im_height, $im_width, $im_height);
}
}
else
{
# Check aspect ratio of source image
if ($im_width / $im_height <= 0.75)
{
# "Portrait" image. scale to 200 pixel height and center horizontally
$new_im_width = $im_width * ($target_height / $im_height);
imagecopyresized($im_output, $im, (($target_width-$new_im_width)/2), 0, 0, 0, $new_im_width, $target_height, $im_width, $im_height);
}
else
{
# "Landscape" image. scale to 150 pixel width and center vertically
$new_im_height = $im_height * ($target_width / $im_width);
imagecopyresized($im_output, $im, 0, (($target_height-$new_im_height)/2), 0, 0, $target_width, $new_im_height, $im_width, $im_height);
}
}
} }
# Return new image # Return new image
@ -152,6 +297,20 @@ return($im_output);
function customImage($im,$complement) function customImage($im,$complement)
{ {
Global $SQUARE;
# Image size depends on the target
if($SQUARE)
{
$target_width=200;
$target_height=200;
}
else
{
$target_width=150;
$target_height=200;
}
# Define the font # Define the font
if(strpos(strtolower(PHP_OS), 'win') === false) $font='fonts/DejaVuSans-Bold'; if(strpos(strtolower(PHP_OS), 'win') === false) $font='fonts/DejaVuSans-Bold';
else $font=realpath('./fonts/').'\\DejaVuSans-Bold.ttf'; else $font=realpath('./fonts/').'\\DejaVuSans-Bold.ttf';
@ -179,12 +338,12 @@ switch($array_complement[2])
case 'right': case 'right':
$array_text=imagettfbbox($size,0,$font,$array_complement[0]); $array_text=imagettfbbox($size,0,$font,$array_complement[0]);
$width=$array_text[4]-$array_text[6]; $width=$array_text[4]-$array_text[6];
$x=150-10-$width; $x=$target_width-10-$width;
break; break;
default: default:
$array_text=imagettfbbox($size,0,$font,$array_complement[0]); $array_text=imagettfbbox($size,0,$font,$array_complement[0]);
$width=$array_text[4]-$array_text[6]; $width=$array_text[4]-$array_text[6];
$x=intval(75-($width/2)); $x=intval(($target_width-$width)/2);
break; break;
} }
@ -301,7 +460,7 @@ if(!$return)
# Found # Found
$return=True; $return=True;
# Scale image to 150x200 pixel # Scale image to the right size
$im=scaleImage($im,$BLOWUP); $im=scaleImage($im,$BLOWUP);
# Save image to cache directory. use same number in filename as in original file in the library. # Save image to cache directory. use same number in filename as in original file in the library.
@ -547,6 +706,10 @@ if(empty($number_original))
if(preg_match('/([0-9*#]+)\.png/',$_SERVER['QUERY_STRING'],$matches)) $number_original = $matches[1]; if(preg_match('/([0-9*#]+)\.png/',$_SERVER['QUERY_STRING'],$matches)) $number_original = $matches[1];
} }
# Retrieve image format and color
$SQUARE=is_square();
$WHITE=is_white();
# No number # No number
if(empty($number_original)) if(empty($number_original))
{ {
@ -566,7 +729,7 @@ else $CACHE_DIR='cache';
if($array_config['General']['pictures']!='') $PICTURES_DIR=$array_config['General']['pictures']; if($array_config['General']['pictures']!='') $PICTURES_DIR=$array_config['General']['pictures'];
else $PICTURES_DIR='pictures'; else $PICTURES_DIR='pictures';
# Rescale image smaller than 150x200 # Rescale image smaller than expected size
$BLOWUP=False; $BLOWUP=False;
if($array_config['General']['blowup']=='1') $BLOWUP=True; if($array_config['General']['blowup']=='1') $BLOWUP=True;

View File

@ -1,125 +1,125 @@
############################################################################# #############################################################################
# pictureID.conf # pictureID.conf
# #
# Configuration file for number translation map # Configuration file for number translation map
# #
# Copyright 2010 Aastra Telecom Ltd # Copyright 2005-2015 Mitel Networks.
# #
# Description # Description
# This configuration file is used for the picture CallerID to map a number # This configuration file is used for the picture CallerID to map a number
# with a number that already has an existing picture or the name of a picture. # with a number that already has an existing picture or the name of a picture.
# Prefixes are processed in the order they are declared in the file, like for # Prefixes are processed in the order they are declared in the file, like for
# a regular dialplan. # a regular dialplan.
# #
############################################################################# #############################################################################
############################################################################### ###############################################################################
# Global parameters # Global parameters
# #
# [General] # [General]
# pictures Directory for the raw pictures # pictures Directory for the raw pictures
# Default is ./pictures # Default is ./pictures
# Must be r for HTTP Server user # Must be r for HTTP Server user
# #
# cache Directory for the cached pictures # cache Directory for the cached pictures
# Default is ./cache # Default is ./cache
# Must be r/w for HTTP Server user # Must be r/w for HTTP Server user
# #
# blowup Enable (1) or disable (0) image scaling smaller than 150x200 pixels. # blowup Enable (1) or disable (0) image scaling smaller than 150x200 pixels.
# This may/will lead to grainy/pixelized images. # This may/will lead to grainy/pixelized images.
# Default is disable # Default is disable
# #
# default Provides a default image when the number does not match # default Provides a default image when the number does not match
# any picture. A 404 is sent if no number is provided though. # any picture. A 404 is sent if no number is provided though.
# default=mapped_number or mappedname,LABEL|YPOSITION|ALIGNMENT|COLOR|FONTSIZE # default=mapped_number or mappedname,LABEL|YPOSITION|ALIGNMENT|COLOR|FONTSIZE
# See the [Numbers] section for the format of the line # See the [Numbers] section for the format of the line
############################################################################### ###############################################################################
[General] [General]
pictures= pictures=
cache= cache=
blowup= blowup=
default= default=
############################################################################### ###############################################################################
# Dialing profile # Dialing profile
# #
# [Dialplan] # [Dialplan]
# country Country code # country Country code
# If phone number starts with "+<country>", this will be # If phone number starts with "+<country>", this will be
# removed # removed
# #
# long distance Long distance prefix # long distance Long distance prefix
# This prefix will be added to the number in case +<country> # This prefix will be added to the number in case +<country>
# has been stripped. # has been stripped.
# Leave blank if not needed. # Leave blank if not needed.
# #
# international International prefix # international International prefix
# The "+" sign will be replaced with this prefix # The "+" sign will be replaced with this prefix
# #
# outgoing Outgoing prefix # outgoing Outgoing prefix
# Prefix that needs to be appended for outgoing calls # Prefix that needs to be appended for outgoing calls
# (all call but local calls), e.g. 0 or 9 # (all call but local calls), e.g. 0 or 9
# #
# local List of local PBX number prefixes separated by a comma # local List of local PBX number prefixes separated by a comma
# (in national format). Prefix will be removed, no outgoing # (in national format). Prefix will be removed, no outgoing
# prefix will be added. # prefix will be added.
# Examples: local=905760,978262 # Examples: local=905760,978262
# --> 9057602222 will be replaced by 2222 and 9782623333 will # --> 9057602222 will be replaced by 2222 and 9782623333 will
# be replaced by 3333. # be replaced by 3333.
############################################################################### ###############################################################################
[Dialplan] [Dialplan]
country=1 country=1
long distance=1 long distance=1
international=011 international=011
outgoing= outgoing=
local= local=
############################################################################# #############################################################################
# Number mapping # Number mapping
# #
# Line Format # Line Format
# [Numbers] # [Numbers]
# number and/or patterns comma separated=mapped_number or mappedname,LABEL|YPOSITION|ALIGNMENT|COLOR|FONTSIZE # number and/or patterns comma separated=mapped_number or mappedname,LABEL|YPOSITION|ALIGNMENT|COLOR|FONTSIZE
# Simple number matching # Simple number matching
# it can be used to map multiple phone numbers (cell, home , other) to a user # it can be used to map multiple phone numbers (cell, home , other) to a user
# Pattern matching # Pattern matching
# it can be used to map open numbers # it can be used to map open numbers
# Pattern format is P followed by # Pattern format is P followed by
# any digit including * or # # any digit including * or #
# X digit between 0 and 9 # X digit between 0 and 9
# Z digit between 1 and 9 # Z digit between 1 and 9
# N digit between 2 and 9 # N digit between 2 and 9
# . indicates an open length number, must be positioned at the end of the pattern # . indicates an open length number, must be positioned at the end of the pattern
# The entries in the [Numbers] section are processed based on the order in # The entries in the [Numbers] section are processed based on the order in
# the file, so it is recommended to put the open patterns at the end. # the file, so it is recommended to put the open patterns at the end.
# #
# Where # Where
# LABEL is the label to be displayed on the picture # LABEL is the label to be displayed on the picture
# YPOSITION is the vertical position of the label (between 1 and 200), default is 100 # YPOSITION is the vertical position of the label (between 1 and 200), default is 100
# ALIGNMENT is the horizontal alignment left|center|right, default is center # ALIGNMENT is the horizontal alignment left|center|right, default is center
# COLOR is the label color yellow|orange|pink|purple|black|grey|red|brown|tan|magenta|blue|green|white (default is white) # COLOR is the label color yellow|orange|pink|purple|black|grey|red|brown|tan|magenta|blue|green|white (default is white)
# FONTSIZE is the font size in pixels (between 8 and 24) default is 10 # FONTSIZE is the font size in pixels (between 8 and 24) default is 10
# #
# Example # Example
# [Numbers] # [Numbers]
# 0795551234=2299 # 0795551234=2299
# Will display the picture "2299" when 0795551234 is dialed or incoming # Will display the picture "2299" when 0795551234 is dialed or incoming
# P972XXXXXXX,P469XXXXXXX,P214XXXXXXX=default,"DALLAS, TX"|187|center|blue|10 # P972XXXXXXX,P469XXXXXXX,P214XXXXXXX=default,"DALLAS, TX"|187|center|blue|10
# Will display the picture "default" with a centered blue label "Dallas, TX" font size 10 at vertical position 187 when 10 digits numbers starting with 972 or 469 or 214 are dialed or incoming # Will display the picture "default" with a centered blue label "Dallas, TX" font size 10 at vertical position 187 when 10 digits numbers starting with 972 or 469 or 214 are dialed or incoming
# P44.=UK # P44.=UK
# Will display the picture "UK" when any number starting with 44 is dialed or is incoming # Will display the picture "UK" when any number starting with 44 is dialed or is incoming
############################################################################# #############################################################################
[Numbers] [Numbers]
0000=Aastra,"Picture Caller ID"|175|center|blue|10 0000=logo,"Picture Caller ID"|175|center|blue|10
P613XXXXXXX,P416XXXXXXX,P905XXXXXXX,P289XXXXXXX,P306XXXXXXX,P403XXXXXXX,P418XXXXXXX,P438XXXXXXX,P450XXXXXXX,P506XXXXXXX,P514XXXXXXX,P519XXXXXXX,P600XXXXXXX,P604XXXXXXX,P613XXXXXXX,P647XXXXXXX,P705XXXXXXX,P778XXXXXXX,P780XXXXXXX,P807XXXXXXX,P819XXXXXXX,P867XXXXXXX,P902XXXXXXX,P1416XXXXXXX=CA P613XXXXXXX,P416XXXXXXX,P905XXXXXXX,P289XXXXXXX,P306XXXXXXX,P403XXXXXXX,P418XXXXXXX,P438XXXXXXX,P450XXXXXXX,P506XXXXXXX,P514XXXXXXX,P519XXXXXXX,P600XXXXXXX,P604XXXXXXX,P613XXXXXXX,P647XXXXXXX,P705XXXXXXX,P778XXXXXXX,P780XXXXXXX,P807XXXXXXX,P819XXXXXXX,P867XXXXXXX,P902XXXXXXX,P1416XXXXXXX=CA
PNXXXXXXXXX,P1NXXXXXXXXX=US PNXXXXXXXXX,P1NXXXXXXXXX=US
P44.=UK P44.=UK
P41.=CH P41.=CH
P33.=FR P33.=FR
P32.=BE P32.=BE
P49.=DE P49.=DE
P39.=IT P39.=IT
P52.=MX P52.=MX
P46.=SWE P46.=SWE
P34.=SP P34.=SP

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

@ -1,4 +1,4 @@
Copyright (c) 2007-2009 Aastra Telecom US, Inc. Copyright (c) 2005-2015 Mitel Networks.
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without

View File

@ -4,7 +4,7 @@
# Aastra SIP Phones R1.4.2 or better # Aastra SIP Phones R1.4.2 or better
# #
# php source code # php source code
# Copyright Aastra Telecom Ltd 2008 # Copyright 2005-2015 Mitel Networks
############################################################################# #############################################################################
############################################################################# #############################################################################

View File

@ -9,7 +9,7 @@
# script.php?ip=IP # script.php?ip=IP
# IP is the IP address to lookup or SELF to lookup for current public IP. # IP is the IP address to lookup or SELF to lookup for current public IP.
# #
# Copyright Aastra Telecom Ltd 2008 # Copyright 2005-2015 Mitel Networks
############################################################################# #############################################################################
############################################################################# #############################################################################

View File

@ -4,7 +4,7 @@
# Aastra SIP Phones R1.4.2 or better # Aastra SIP Phones R1.4.2 or better
# #
# php source code # php source code
# Copyright (c) Aastra Telecom Ltd 2007-2009 # Copyright (c) 2005-2015 Mitel Networks
# Copyright (c) 2003 Jose Solorzano. All rights reserved. # Copyright (c) 2003 Jose Solorzano. All rights reserved.
# #
# Supported phones # Supported phones

View File

@ -1,12 +1,12 @@
############################################################################# #############################################################################
# server.conf # server.conf
# #
# Main Configuration file for Aastra XML scripts # Main Configuration file for Mitel XML scripts
# Located in /etc # Located in /etc
# #
# Version: VERSION # Version: VERSION
# #
# Copyright 2009 Aastra Telecom Ltd # Copyright Mitel Networks 2005-2015
# #
############################################################################# #############################################################################
[General] [General]

View File

@ -4,7 +4,7 @@
# #
# Mitel SIP Phones 2.2.0 or better # Mitel SIP Phones 2.2.0 or better
# #
# Copyright 2008 Mitel Networks # Copyright Mitel Networks 2005-2015
# #
# Based on Biorhythm by Till Gerken http://www.zend.com/zend/tut/dynamic.php # Based on Biorhythm by Till Gerken http://www.zend.com/zend/tut/dynamic.php
# #

View File

@ -2,9 +2,9 @@
############################################################################# #############################################################################
# Yahtzee # Yahtzee
# #
# Aastra SIP Phones 2.2.0 or better # Mitel SIP Phones 2.2.0 or better
# #
# Copyright 2008 Aastra Telecom Ltd # Copyright 2005-2015 Mitel Networks
# #
# Supported Aastra Phones # Supported Aastra Phones
# 55i, 57i and 57iCT # 55i, 57i and 57iCT
@ -14,7 +14,6 @@
# #
# Note # Note
# PHP-GD extension is needed for this script # PHP-GD extension is needed for this script
#
############################################################################# #############################################################################
############################################################################# #############################################################################

View File

@ -30,6 +30,11 @@
# Aastra480i=no # Aastra480i=no
# Aastra480i Cordless=no # Aastra480i Cordless=no
# param=user # param=user
#
# [World Clock]
# title=World Clock
# info=Get the current date and time in the major cities in the world.
# uri=http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/clock/clock.php
# #
####################################################################################################################################### #######################################################################################################################################
@ -65,10 +70,6 @@ title=Today...
title-fr=Aujourd'hui title-fr=Aujourd'hui
info=Daily information. info=Daily information.
uri=http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/rss/rss.php?feed=day uri=http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/rss/rss.php?feed=day
[World Clock]
title=World Clock
info=Get the current date and time in the major cities in the world.
uri=http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/clock/clock.php
[Area Code] [Area Code]
title=Area Code title=Area Code
info=Get the list of the cities attached to a area code. info=Get the list of the cities attached to a area code.

View File

@ -4,9 +4,9 @@
# #
# Aastra SIP Phones 1.4.2 or better # Aastra SIP Phones 1.4.2 or better
# #
# Copyright 2008 Aastra Telecom Ltd # Copyright 2005-2015 Mitel Networks
# #
# Supported Aastra Phones # Supported Mitel Phones
# All phones # All phones
# #
# Usage # Usage
@ -123,7 +123,10 @@ Aastra_test_phone_version('1.4.2.',0);
# Get global compatibility # Get global compatibility
$nb_softkeys=Aastra_number_physical_softkeys_supported(); $nb_softkeys=Aastra_number_physical_softkeys_supported();
$is_toptitle_supported=Aastra_is_top_title_supported();
$is_style_textmenu=Aastra_is_style_textmenu_supported(); $is_style_textmenu=Aastra_is_style_textmenu_supported();
$is_touch_launch=Aastra_is_touch_launch_supported();
$is_font_mono=Aastra_is_font_mono_supported();
# To handle non softkey phones # To handle non softkey phones
if($nb_softkeys) $MaxLines=AASTRA_MAXLINES; if($nb_softkeys) $MaxLines=AASTRA_MAXLINES;
@ -187,6 +190,7 @@ switch($menu_action)
if($is_toptitle_supported) $object->setTopTitle($title); if($is_toptitle_supported) $object->setTopTitle($title);
else $object->setTitle($title); else $object->setTitle($title);
if($is_style_textmenu) $object->setStyle('none'); if($is_style_textmenu) $object->setStyle('none');
if($is_font_mono) $object->setNoFontMono();
$index=0; $index=0;
$menu_pos=1; $menu_pos=1;
if((!$nb_softkeys) and ($menu_page!=1)) $object->addEntry(Aastra_get_label('Previous Page',$language),$XML_SERVER.'&menu_page='.($menu_page-1)); if((!$nb_softkeys) and ($menu_page!=1)) $object->addEntry(Aastra_get_label('Previous Page',$language),$XML_SERVER.'&menu_page='.($menu_page-1));

View File

@ -23,7 +23,7 @@
############################################################################################### ###############################################################################################
[RESERVED] [RESERVED]
title=CNN title=CNN
copyright= RSS feed provided by CNN.com and brought to you by Aastra Telecom. copyright= RSS feed provided by CNN.com and brought to you by Mitel Networks.
search_before= search_before=
replace_before= replace_before=
search_after= search_after=

View File

@ -23,7 +23,7 @@
############################################################################################### ###############################################################################################
[RESERVED] [RESERVED]
title=Today title=Today
copyright= RSS feed provided by answers.com and brought to you by Aastra Telecom. copyright= RSS feed provided by answers.com and brought to you by Mitel Networks.
search_before=/Quote of the Day: /,/Word of the Day: /,/\&m/ search_before=/Quote of the Day: /,/Word of the Day: /,/\&m/
replace_before=,, replace_before=,,
search_after= search_after=

View File

@ -23,7 +23,7 @@
############################################################################################### ###############################################################################################
[RESERVED] [RESERVED]
title=ESPN News title=ESPN News
copyright= RSS feed provided by ESPN.com and brought to you by Aastra Telecom. copyright= RSS feed provided by ESPN.com and brought to you by Mitel Networks.
search_before=/<!\\[CDATA\\[/,/]]>/ search_before=/<!\\[CDATA\\[/,/]]>/
replace_before=, replace_before=,
search_after= search_after=

View File

@ -23,7 +23,7 @@
############################################################################################### ###############################################################################################
[RESERVED] [RESERVED]
title=FOX News title=FOX News
copyright= RSS feed provided by Foxnews.com and brought to you by Aastra Telecom. copyright= RSS feed provided by Foxnews.com and brought to you by Mitel Networks.
search_before=/<!\\[CDATA\\[/,/]]>/ search_before=/<!\\[CDATA\\[/,/]]>/
replace_before=, replace_before=,
search_after= search_after=

View File

@ -24,9 +24,9 @@
[RESERVED] [RESERVED]
title=Daily Horoscope title=Daily Horoscope
copyright= RSS feed provided by www.astrosage.com and brought to you by Aastra Telecom. copyright= RSS feed provided by www.astrosage.com and brought to you by Mitel Networks.
copyright-en= RSS feed provided by www.astrosage.com and brought to you by Aastra Telecom. copyright-en= RSS feed provided by www.astrosage.com and brought to you by Mitel Networks.
copyright-fr= Fil RSS fourni par www.astrosage.com et mise en forme pour vous par Aastra Telecom. copyright-fr= Fil RSS fourni par www.astrosage.com et mise en forme pour vous par Mitel Networks.
search_before= search_before=
replace_before= replace_before=
search_after= search_after=

View File

@ -23,7 +23,7 @@
############################################################################################### ###############################################################################################
[RESERVED] [RESERVED]
title=Movies and DVD title=Movies and DVD
copyright= RSS feed provided by fandango.com and brought to you by Aastra Telecom. copyright= RSS feed provided by fandango.com and brought to you by Mitel Networks.
search_before= search_before=
replace_before= replace_before=
search_after= search_after=

View File

@ -24,9 +24,9 @@
[RESERVED] [RESERVED]
title=Netflix title=Netflix
copyright= RSS feed provided by Netflix.com and brought to you by Aastra Telecom. copyright= RSS feed provided by Netflix.com and brought to you by Mitel Networks.
copyright-en= RSS feed provided by Netflix.com and brought to you by Aastra Telecom. copyright-en= RSS feed provided by Netflix.com and brought to you by Mitel Networks.
copyright-fr= Fil RSS fourni par Le Netflix.com et mise en forme pour vous par Aastra Telecom. copyright-fr= Fil RSS fourni par Le Netflix.com et mise en forme pour vous par Mitel Networks.
search_before= search_before=
replace_before= replace_before=
search_after= search_after=

View File

@ -4,9 +4,9 @@
# #
# Aastra SIP Phones 1.4.2 or better # Aastra SIP Phones 1.4.2 or better
# #
# Copyright 2007-2009 Aastra Telecom Ltd # Copyright Mitel Networks 2005-2015
# #
# Supported Aastra Phones # Supported Phones
# All phones but # All phones but
# 9112i # 9112i
# 9133i # 9133i
@ -114,10 +114,20 @@ $string=preg_replace('/\n/',' ', $string);
# Process after # Process after
if($pattern[1]==1) $string=preg_replace($after_s, $after_r, $string); if($pattern[1]==1) $string=preg_replace($after_s, $after_r, $string);
$string=escape_decode($string);
# Return processed string # Return processed string
return($string); return($string);
} }
function escape_decode($string)
{
return(str_replace(
array('&amp;', '&lt;', '&gt;', '&quot;', '&apos;'),
array('&', '<', '>', '"', "'"),
$string));
}
############################################################################# #############################################################################
# Beginning of the active code # Beginning of the active code
############################################################################# #############################################################################
@ -149,6 +159,8 @@ $language=Aastra_get_language();
# Global compatibility # Global compatibility
$nb_softkeys=Aastra_number_physical_softkeys_supported(); $nb_softkeys=Aastra_number_physical_softkeys_supported();
$is_toptitle_supported=Aastra_is_top_title_supported(); $is_toptitle_supported=Aastra_is_top_title_supported();
$is_touch_launch=Aastra_is_touch_launch_supported();
$is_font_mono=Aastra_is_font_mono_supported();
# IF RSS config exists # IF RSS config exists
if(file_exists($file)) if(file_exists($file))
@ -225,7 +237,7 @@ else
# Process request # Process request
if(empty($index)) if(empty($index))
{ {
if(($nb_rss>1) and (Aastra_number_softkeys_supported()<=6)) if(($nb_rss>1) and ($nb_softkeys<=6))
{ {
# Display list of topics # Display list of topics
$object=new AastraIPPhoneTextMenu(); $object=new AastraIPPhoneTextMenu();
@ -233,6 +245,7 @@ if(empty($index))
if($last_index!='') $object->setDefaultIndex($last_index); if($last_index!='') $object->setDefaultIndex($last_index);
if(Aastra_is_style_textmenu_supported()) $object->setStyle('radio'); if(Aastra_is_style_textmenu_supported()) $object->setStyle('radio');
if(Aastra_is_textmenu_wrapitem_supported()) $object->setWrapList(); if(Aastra_is_textmenu_wrapitem_supported()) $object->setWrapList();
if($is_font_mono) $object->setNoFontMono();
# Title # Title
if($is_toptitle_supported) $object->setTopTitle($Main); if($is_toptitle_supported) $object->setTopTitle($Main);
@ -408,6 +421,7 @@ else
if(Aastra_is_style_textmenu_supported()) $object->setStyle('radio'); if(Aastra_is_style_textmenu_supported()) $object->setStyle('radio');
if(Aastra_is_textmenu_wrapitem_supported()) $object->setWrapList(); if(Aastra_is_textmenu_wrapitem_supported()) $object->setWrapList();
if(Aastra_is_wrap_title_supported()) $object->setTitleWrap(); if(Aastra_is_wrap_title_supported()) $object->setTitleWrap();
if($is_font_mono) $object->setNoFontMono();
if((!Aastra_is_softkeys_supported()) and ($page!=1)) $object->addEntry(Aastra_get_label('Previous Page',$language),$XML_SERVER.'&index='.($index+1).'&page='.($page-1)); if((!Aastra_is_softkeys_supported()) and ($page!=1)) $object->addEntry(Aastra_get_label('Previous Page',$language),$XML_SERVER.'&index='.($index+1).'&page='.($page-1));
$i=1; $i=1;
foreach ($array_rss as $key=>$value) foreach ($array_rss as $key=>$value)
@ -442,6 +456,31 @@ else
$object->addSoftkey('4', Aastra_get_label('Exit',$language), 'SoftKey:Exit'); $object->addSoftkey('4', Aastra_get_label('Exit',$language), 'SoftKey:Exit');
} }
} }
else if($nb_softkeys==5)
{
if(($page!=1) or ($page!=$last))
{
$object->addSoftkey('1', Aastra_get_label('Select',$language), 'SoftKey:Select');
if($page!=1) $object->addSoftkey('2', Aastra_get_label('Previous',$language), $XML_SERVER.'&index='.($index+1).'&page='.($page-1));
if($page!=$last) $object->addSoftkey('3', Aastra_get_label('Next',$language), $XML_SERVER.'&index='.($index+1).'&page='.($page+1));
if($nb_rss>1)
{
$object->addSoftkey('4', Aastra_get_label('Back',$language), $XML_SERVER.'&last_index='.($index+1));
$object->setCancelAction($XML_SERVER.'&last_index='.($index+1));
}
$object->addSoftkey('5', Aastra_get_label('Exit',$language), 'SoftKey:Exit');
}
else
{
$object->addSoftkey('1', Aastra_get_label('Select',$language), 'SoftKey:Select');
if($nb_rss>1)
{
$object->addSoftkey('4', Aastra_get_label('Back',$language), $XML_SERVER.'&last_index='.($index+1));
$object->setCancelAction($XML_SERVER.'&last_index='.($index+1));
}
$object->addSoftkey('5', Aastra_get_label('Exit',$language), 'SoftKey:Exit');
}
}
else if($nb_softkeys==6) else if($nb_softkeys==6)
{ {
$object->addSoftkey('1', Aastra_get_label('Select',$language), 'SoftKey:Select'); $object->addSoftkey('1', Aastra_get_label('Select',$language), 'SoftKey:Select');
@ -498,7 +537,7 @@ else
$object->setDestroyOnExit(); $object->setDestroyOnExit();
if(Aastra_is_wrap_title_supported())$object->setTitleWrap(); if(Aastra_is_wrap_title_supported())$object->setTitleWrap();
if($is_toptitle_supported) $object->setTopTitle($Title[$index]); if($is_toptitle_supported) $object->setTopTitle($Title[$index]);
if(($nb_softkeys==4) || ($nb_softkeys==6)) $object->setTitle($array_rss[$rank]['title']); if(($nb_softkeys>=4) and ($nb_softkeys<=6)) $object->setTitle($array_rss[$rank]['title']);
else else
{ {
if(count($array_rss)>1) $object->setTitle($Title[$index].' ('.($rank+1).'/'.count($array_rss).') - '.$array_rss[$rank]['title']); if(count($array_rss)>1) $object->setTitle($Title[$index].' ('.($rank+1).'/'.count($array_rss).') - '.$array_rss[$rank]['title']);
@ -509,12 +548,12 @@ else
else $back=$XML_SERVER.'&last_index='.($index+1); else $back=$XML_SERVER.'&last_index='.($index+1);
if(Aastra_is_softkeys_supported()) if(Aastra_is_softkeys_supported())
{ {
if($nb_softkeys==4) if(($nb_softkeys==4) or ($nb_softkeys==5))
{ {
if($rank!=0) $object->addSoftkey('1',Aastra_get_label('Previous',$language), $XML_SERVER.'&index='.($index+1).'&rank='.$rank); if($rank!=0) $object->addSoftkey('1',Aastra_get_label('Previous',$language), $XML_SERVER.'&index='.($index+1).'&rank='.$rank);
if($rank!=(count($array_rss)-1))$object->addSoftkey('2',Aastra_get_label('Next',$language),$XML_SERVER.'&index='.($index+1).'&rank='.($rank+2)); if($rank!=(count($array_rss)-1))$object->addSoftkey('2',Aastra_get_label('Next',$language),$XML_SERVER.'&index='.($index+1).'&rank='.($rank+2));
$object->addSoftkey('3',Aastra_get_label('Back',$language),$back); $object->addSoftkey($nb_softkeys-1,Aastra_get_label('Back',$language),$back);
$object->addSoftkey('4',Aastra_get_label('Exit',$language),'SoftKey:Exit'); $object->addSoftkey($nb_softkeys,Aastra_get_label('Exit',$language),'SoftKey:Exit');
} }
else if($nb_softkeys==6) else if($nb_softkeys==6)
{ {

View File

@ -4,17 +4,9 @@
# #
# Aastra SIP Phones 1.4.2 or better # Aastra SIP Phones 1.4.2 or better
# #
# Copyright 2008 Aastra Telecom Ltd # Copyright 2005-2015 Mitel Networks
#
# Supported Aastra Phones
# 55i
# 57i
# 57iCT
# 9480i
# 9480iCT
# #
# script.php # script.php
#
############################################################################# #############################################################################
############################################################################# #############################################################################
@ -191,7 +183,7 @@ Aastra_trace_call('currency','user='.$user.', action='.$action.', selection='.$s
# Test User Agent # Test User Agent
Aastra_test_phone_version('2.1.1.',0); Aastra_test_phone_version('2.1.1.',0);
Aastra_test_phone_model(array('Aastra9480i','Aastra9480iCT','Aastra55i','Aastra57i','Aastra57iCT','Aastra35i','Aastra37i','Aastra6867i','Aastra6739i'),True,0); Aastra_test_phone_model(array('Aastra9480i','Aastra9480iCT','Aastra55i','Aastra57i','Aastra57iCT','Aastra35i','Aastra37i','Aastra6867i','Aastra6869i','Aastra6873i','Aastra6739i'),True,0);
# Get Language # Get Language
$language=Aastra_get_language(); $language=Aastra_get_language();

View File

@ -4,7 +4,7 @@
# #
# Aastra SIP Phones 1.4.2 or better # Aastra SIP Phones 1.4.2 or better
# #
# Copyright 2007-2009 Aastra Telecom Ltd # Copyright Mitel Networks 2005-2015
# #
# Supported Aastra Phones # Supported Aastra Phones
# All phones but best on large display phones # All phones but best on large display phones
@ -218,7 +218,7 @@ switch($action)
if($action=='input') if($action=='input')
{ {
if($data['last']!=NULL) $default=$data['last']; if($data['last']!=NULL) $default=$data['last'];
else $default='AAH.TO'; else $default='MITL';
} }
else $default=$data['favorites'][$selection]; else $default=$data['favorites'][$selection];
$object->setDefault($default); $object->setDefault($default);

View File

@ -4,18 +4,10 @@
# #
# Aastra SIP Phones 1.4.2 or better # Aastra SIP Phones 1.4.2 or better
# #
# Copyright 2007-2009 Aastra Telecom Ltd # Copyright Mitel Networks 2005-2015
# #
# Supported Aastra Phones # Supported Aastra Phones
# All phones but best on # All phones
# 480i
# 480iCT
# 35i
# 35i CT
# 55i
# 57i
# 57i CT
# 6739i
# #
# script.php?zip=XXXXX # script.php?zip=XXXXX
# where XXXXX is the US ZIP code of the city (optional) # where XXXXX is the US ZIP code of the city (optional)
@ -141,6 +133,7 @@ $language=Aastra_get_language();
# Global compatibility # Global compatibility
$nb_softkeys=Aastra_number_physical_softkeys_supported(); $nb_softkeys=Aastra_number_physical_softkeys_supported();
$is_toptitle_supported=Aastra_is_top_title_supported(); $is_toptitle_supported=Aastra_is_top_title_supported();
$is_font_mono=Aastra_is_font_mono_supported();
# Callback # Callback
$XML_SERVER.='?user='.$user; $XML_SERVER.='?user='.$user;
@ -239,7 +232,7 @@ else
fputs($handle,'title='.$allItems[$y]['title']."\n"); fputs($handle,'title='.$allItems[$y]['title']."\n");
$description=filter_format($allItems[$y]['description']); $description=filter_format($allItems[$y]['description']);
if(trim($description,' ')=='') $description=Aastra_get_label('No data provided',$language); if(trim($description,' ')=='') $description=Aastra_get_label('No data provided',$language);
$allItems[$y]['description']= $description.' '.Aastra_get_label('RSS feed provided by rssweather.com and brought to you by Aastra Telecom.',$language); $allItems[$y]['description']= $description.' '.Aastra_get_label('RSS feed provided by rssweather.com and brought to you by Mitel.',$language);
fputs($handle,'description='.$allItems[$y]['description']."\n"); fputs($handle,'description='.$allItems[$y]['description']."\n");
fputs($handle,'uri='.$XML_SERVER.'&zip='.$zip.'&index='.($y+1)."\n"); fputs($handle,'uri='.$XML_SERVER.'&zip='.$zip.'&index='.($y+1)."\n");
} }
@ -281,6 +274,7 @@ else
$object=new AastraIPPhoneTextMenu(); $object=new AastraIPPhoneTextMenu();
$object->setDestroyOnExit(); $object->setDestroyOnExit();
if(Aastra_is_style_textmenu_supported()) $object->setStyle('radio'); if(Aastra_is_style_textmenu_supported()) $object->setStyle('radio');
if($is_font_mono) $object->setNoFontMono();
# Title # Title
if($is_toptitle_supported) $object->setTopTitle($array_rss[99]['title']); if($is_toptitle_supported) $object->setTopTitle($array_rss[99]['title']);