4.2.0 version.
This commit is contained in:
parent
fe1dabf59a
commit
071529b1e8
Binary file not shown.
BIN
PA-001011-06-00-XML-API.pdf
Normal file
BIN
PA-001011-06-00-XML-API.pdf
Normal file
Binary file not shown.
19
README.txt
19
README.txt
@ -1,25 +1,25 @@
|
||||
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.
|
||||
For use with Mitel SIP Phones Release 4.1.0
|
||||
-XMLSchema.xsd - XML Schema which can be used to validate XML development.
|
||||
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.
|
||||
|
||||
-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
|
||||
|
||||
-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
|
||||
|
||||
-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
|
||||
|
||||
-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
|
||||
|
||||
For XML documents related to IP Phone SIP Release 1.3.0, see file PA-001004-00-00.zip
|
||||
@ -49,3 +49,4 @@ For XML documents related to IP Phone SIP Release 3.3.1 SP4 see file PA-001011-0
|
||||
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 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
|
5512
XML-API.txt
5512
XML-API.txt
File diff suppressed because it is too large
Load Diff
@ -199,6 +199,8 @@
|
||||
<xs:attribute name="allowAnswer" type="xs:string" default="no"/>
|
||||
<xs:attribute name="wrapList" type="textAttributeType" default="no" />
|
||||
<xs:attribute name="numberLaunch" type="textAttributeType" default="no" />
|
||||
<xs:attribute name="touchLaunch" type="textAttributeType" default="no" />
|
||||
<xs:attribute name="fontMono" type="textAttributeType" default="yes" />
|
||||
<xs:attribute name="scrollConstrain" type="textAttributeType" default="no" />
|
||||
<xs:attribute name="unitScroll" type="textAttributeType" default="no" />
|
||||
<xs:attribute name="scrollUp" type="xs:string" />
|
||||
@ -309,6 +311,7 @@
|
||||
<xs:complexType>
|
||||
<xs:attribute name="URI" type="xs:string" />
|
||||
<xs:attribute name="interruptCall" type="textAttributeType" default="yes" />
|
||||
<xs:attribute name="title" type="xs:string" default="" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
@ -404,6 +407,7 @@
|
||||
<xs:attribute name="allowDrop" 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="fontMono" type="textAttributeType" default="yes" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
Copyright (c) 2007-2011 Aastra Telecom US, Inc.
|
||||
Copyright (c) 2005-2015 Mitel Networks
|
||||
All rights reserved.
|
||||
|
||||
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
|
||||
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
|
||||
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL AASTRA TELECOM US, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
|
@ -1,12 +1,9 @@
|
||||
#############################################################################
|
||||
# server.conf
|
||||
#
|
||||
# Main Configuration file for Aastra XML scripts
|
||||
# Located in /etc
|
||||
# Main Configuration file for Mitel XML scripts
|
||||
#
|
||||
# Version: VERSION
|
||||
#
|
||||
# Copyright 2009 Aastra Telecom Ltd
|
||||
# Copyright 2005-2015 Mitel Networks
|
||||
#
|
||||
#############################################################################
|
||||
[General]
|
||||
|
@ -1,10 +1,10 @@
|
||||
<?php
|
||||
#############################################################################
|
||||
# Contact lookup
|
||||
# Aastra SIP Phones R1.4.2 or better
|
||||
# Mitel SIP Phones R1.4.2 or better
|
||||
#
|
||||
# php source code
|
||||
# Copyright Aastra Telecom Ltd 2007-2009
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# Supported Aastra Phones
|
||||
# All Phones but 9112i, 9133i
|
||||
|
@ -2,10 +2,10 @@
|
||||
#####################################################################
|
||||
# Server side speed dial
|
||||
#
|
||||
# Aastra SIP Phones R1.4.2 or better
|
||||
# Copyright 2007-2009 Aastra Telecom Ltd
|
||||
# Mitel SIP Phones R1.4.2 or better
|
||||
# Copyright 2005-2015 Mitel Networks
|
||||
#
|
||||
# Supported Aastra Phones
|
||||
# Supported Mitel Phones
|
||||
# All Phones
|
||||
#
|
||||
# Usage
|
||||
|
@ -1,4 +1,4 @@
|
||||
Copyright (c) 2007-2011 Aastra Telecom US, Inc.
|
||||
Copyright (c) 2005-2015 Mitel Networks
|
||||
All rights reserved.
|
||||
|
||||
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
|
||||
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
|
||||
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL AASTRA TELECOM US, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
|
@ -1,12 +1,11 @@
|
||||
<?php
|
||||
###################################################################################################
|
||||
# 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
|
||||
#
|
||||
# Aastra SIP Phones Firmware 2.3.0 or higher.
|
||||
# Supported phones: All 67xxi phones.
|
||||
#
|
||||
# Configuration:
|
||||
# See file ../config/ldap_directory.conf
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?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
|
||||
#
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
###################################################################################################
|
||||
# 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.
|
||||
#
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?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.
|
||||
#
|
||||
@ -268,8 +268,8 @@ return($return);
|
||||
# 1=9112i,9133i
|
||||
# 2=480i,480i Cordless
|
||||
# 3=6730i,6731i,6751i,6753i,9143i,6863i,6865i
|
||||
# 4=6755i,6757i,6757iCT,9480i,9480iCT,6735i,6737i,6867i,6869i
|
||||
# 5=6739i, Aastra8000i
|
||||
# 4=6755i,6757i,6757iCT,9480i,9480iCT,6735i,6737i,6867i,6869i,6873i
|
||||
# 5=6739i, 8000i
|
||||
#
|
||||
# Returns
|
||||
# 0 everything is fine
|
||||
@ -303,7 +303,7 @@ else
|
||||
$models=array('Aastra6730i','Aastra6731i','Aastra51i','Aastra53i','Aastra6863i','Aastra6865i');
|
||||
break;
|
||||
case '4':
|
||||
$models=array('Aastra55i','Aastra57iCTi','Aastra9480i','Aastra9480iCT','Aastra6735i','Aastra6737i','Aastra6867i','Aastra6869i');
|
||||
$models=array('Aastra55i','Aastra57iCTi','Aastra9480i','Aastra9480iCT','Aastra6735i','Aastra6737i','Aastra6867i','Aastra6869i','Aastra6873i');
|
||||
break;
|
||||
case '5':
|
||||
$models=array('Aastra6739i','Aastra8000i');
|
||||
@ -442,6 +442,7 @@ function Aastra_is_top_title_supported($header=NULL)
|
||||
case 'Aastra8000i':
|
||||
case 'Aastra6867i':
|
||||
case 'Aastra6869i':
|
||||
case 'Aastra6873i':
|
||||
$return=True;
|
||||
break;
|
||||
case 'Aastra6739i':
|
||||
@ -483,6 +484,7 @@ switch($header['model'])
|
||||
break;
|
||||
case 'Aastra6867i':
|
||||
case 'Aastra6869i':
|
||||
case 'Aastra6873i':
|
||||
case 'Aastra6739i':
|
||||
case 'Aastra8000i':
|
||||
$return=False;
|
||||
@ -559,6 +561,7 @@ switch($header['model'])
|
||||
case 'Aastra6737i':
|
||||
case 'Aastra6867i':
|
||||
case 'Aastra6869i':
|
||||
case 'Aastra6873i':
|
||||
$return=True;
|
||||
break;
|
||||
case 'Aastra6739i':
|
||||
@ -604,6 +607,7 @@ switch($header['model'])
|
||||
case 'Aastra6737i':
|
||||
case 'Aastra6867i':
|
||||
case 'Aastra6869i':
|
||||
case 'Aastra6873i':
|
||||
$return=True;
|
||||
break;
|
||||
case 'Aastra6739i':
|
||||
@ -677,6 +681,7 @@ switch($header['model'])
|
||||
{
|
||||
case 'Aastra6867i':
|
||||
case 'Aastra6869i':
|
||||
case 'Aastra6873i':
|
||||
$return=True;
|
||||
break;
|
||||
case 'Aastra6739i':
|
||||
@ -754,6 +759,7 @@ switch($header['model'])
|
||||
break;
|
||||
case 'Aastra6867i':
|
||||
case 'Aastra6869i':
|
||||
case 'Aastra6873i':
|
||||
case 'Aastra8000i':
|
||||
$return=True;
|
||||
break;
|
||||
@ -763,6 +769,66 @@ switch($header['model'])
|
||||
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)
|
||||
#
|
||||
@ -1001,6 +1067,7 @@ switch($header['model'])
|
||||
case 'Aastra6739i':
|
||||
case 'Aastra6867i':
|
||||
case 'Aastra6869i':
|
||||
case 'Aastra6873i':
|
||||
case 'Aastra8000i':
|
||||
$return=True;
|
||||
break;
|
||||
@ -1033,6 +1100,7 @@ switch($header['model'])
|
||||
case 'Aastra6739i':
|
||||
case 'Aastra6867i':
|
||||
case 'Aastra6869i':
|
||||
case 'Aastra6873i':
|
||||
case 'Aastra8000i':
|
||||
$return=True;
|
||||
break;
|
||||
@ -1077,6 +1145,7 @@ switch($header['model'])
|
||||
case 'Aastra9480iCT':
|
||||
case 'Aastra6735i':
|
||||
case 'Aastra6737i':
|
||||
case 'Aastra6873i':
|
||||
$return=6;
|
||||
break;
|
||||
case 'Aastra6739i':
|
||||
@ -1125,6 +1194,7 @@ switch($header['model'])
|
||||
$return=6;
|
||||
break;
|
||||
case 'Aastra6739i':
|
||||
case 'Aastra6873i':
|
||||
case 'Aastra8000i':
|
||||
$return=10;
|
||||
break;
|
||||
@ -1134,7 +1204,6 @@ switch($header['model'])
|
||||
return($return);
|
||||
}
|
||||
|
||||
|
||||
###################################################################################################
|
||||
# Aastra_is_doneaction_supported(header)
|
||||
#
|
||||
@ -1369,6 +1438,7 @@ switch($header['model'])
|
||||
case 'Aastra6737i':
|
||||
case 'Aastra6867i':
|
||||
case 'Aastra6869i':
|
||||
case 'Aastra6873i':
|
||||
case 'Aastra6739i':
|
||||
$return=True;
|
||||
break;
|
||||
@ -1407,6 +1477,7 @@ switch($header['model'])
|
||||
case 'Aastra6737i':
|
||||
case 'Aastra6867i':
|
||||
case 'Aastra6869i':
|
||||
case 'Aastra6873i':
|
||||
case 'Aastra6739i':
|
||||
$return=True;
|
||||
break;
|
||||
@ -1577,7 +1648,7 @@ $return=False;
|
||||
# Get info header if needed
|
||||
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(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']=='Aastra6867i') $return=True;
|
||||
if($header['model']=='Aastra6869i') $return=True;
|
||||
if($header['model']=='Aastra6873i') $return=True;
|
||||
|
||||
# Return result
|
||||
return($return);
|
||||
@ -1633,6 +1705,7 @@ switch($header['model'])
|
||||
break;
|
||||
case 'Aastra6867i':
|
||||
case 'Aastra6869i':
|
||||
case 'Aastra6873i':
|
||||
case 'Aastra6739i':
|
||||
case 'Aastra8000i':
|
||||
$return=14;
|
||||
@ -1688,6 +1761,7 @@ switch($header['model'])
|
||||
break;
|
||||
case 'Aastra6867i':
|
||||
case 'Aastra6869i':
|
||||
case 'Aastra6873i':
|
||||
case 'Aastra6739i':
|
||||
case 'Aastra8000i':
|
||||
$return='32';
|
||||
@ -1738,6 +1812,15 @@ switch($header['model'])
|
||||
$array=array( 'width'=>'480','height'=>'272');
|
||||
}
|
||||
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':
|
||||
if($mode=='regular') {
|
||||
$array=array( 'width'=>'380','height'=>'340');
|
||||
@ -1842,6 +1925,7 @@ if($fp)
|
||||
fclose($fp);
|
||||
$return=True;
|
||||
}
|
||||
|
||||
# Return result
|
||||
return($return);
|
||||
}
|
||||
@ -1862,7 +1946,22 @@ return($return);
|
||||
###################################################################################################
|
||||
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] = '/&/';
|
||||
$m_patterns[1] = '/"/';
|
||||
$m_patterns[2] = '/</';
|
||||
$m_patterns[3] = '/>/';
|
||||
$m_replacements = array();
|
||||
$m_replacements[0] = '&';
|
||||
$m_replacements[1] = '"';
|
||||
$m_replacements[2] = '<';
|
||||
$m_replacements[3] = '>';
|
||||
|
||||
$return = preg_replace($m_patterns, $m_replacements, $return);
|
||||
$return = html_entity_decode($return,ENT_QUOTES);
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
@ -1900,7 +1999,7 @@ return(md5($header['model'].$header['mac'].$header['ip']));
|
||||
# 2=480i,480i Cordless
|
||||
# 3=6730i,6731i,6751i,6753i,9143i
|
||||
# 4=6755i,6757i,6757iCT
|
||||
# 5=6739i,VideoPhone
|
||||
# 5=6739i,8000i
|
||||
###################################################################################################
|
||||
function Aastra_phone_type($header=NULL)
|
||||
{
|
||||
@ -1939,6 +2038,7 @@ switch($header['model'])
|
||||
case 'Aastra6737i':
|
||||
case 'Aastra6867i':
|
||||
case 'Aastra6869i':
|
||||
case 'Aastra6873i':
|
||||
$return='4';
|
||||
break;
|
||||
case 'Aastra6739i':
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
########################################################################################################
|
||||
# Aastra XML API Classes - AastraIPPhoneCallLog
|
||||
# Copyright Aastra Telecom 2005-2012
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# AastraIPPhoneCallLog object.
|
||||
#
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
################################################################################
|
||||
# Aastra XML API Classes - AastraIPPhoneCallLogEntry
|
||||
# Copyright Aastra Telecom 2005-2012
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# Internal class for AastraIPPhoneCallLog object.
|
||||
################################################################################
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
########################################################################################################
|
||||
# Aastra XML API Classes - AastraIPPhoneConfiguration
|
||||
# Copyright Aastra Telecom 2007-2010
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# AastraIPPhoneConfiguration object.
|
||||
#
|
||||
|
@ -2,7 +2,7 @@
|
||||
################################################################################
|
||||
# Aastra XML API Classes - AastraIPPhoneConfigurationEntry
|
||||
# Firmware 2.0 or better
|
||||
# Copyright Aastra Telecom 2007-2010
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# Internal class for AastraIPPhoneConfiguration object.
|
||||
################################################################################
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
########################################################################################################
|
||||
# Aastra XML API Classes - AastraIPPhoneExecute
|
||||
# Copyright Aastra Telecom 2006-2010
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# AastraIPPhoneExecute object.
|
||||
#
|
||||
@ -16,9 +16,10 @@
|
||||
#
|
||||
# Specific to the object
|
||||
# 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
|
||||
# @interruptCall string, optional, "yes" or "no"
|
||||
# @title string, optional, title to be used in Wav.Play screen
|
||||
#
|
||||
# Example
|
||||
# require_once('AastraIPPhoneExecute.class.php');
|
||||
@ -36,9 +37,9 @@ class AastraIPPhoneExecute extends AastraIPPhone {
|
||||
var $_defaultIndex='';
|
||||
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()
|
||||
|
@ -2,7 +2,7 @@
|
||||
################################################################################
|
||||
# Aastra XML API Classes - AastraIPPhoneExecuteEntry
|
||||
# Firmware 2.0 or better
|
||||
# Copyright Aastra Telecom 2005-2010
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# Internal class for AastraIPPhoneExecute object.
|
||||
################################################################################
|
||||
@ -10,18 +10,22 @@
|
||||
class AastraIPPhoneExecuteEntry extends AastraIPPhone {
|
||||
var $_url;
|
||||
var $_interruptCall;
|
||||
var $_title;
|
||||
|
||||
function AastraIPPhoneExecuteEntry($url,$interruptCall)
|
||||
function AastraIPPhoneExecuteEntry($url,$interruptCall,$title)
|
||||
{
|
||||
$this->_url = $url;
|
||||
$this->_interruptCall = $interruptCall;
|
||||
$this->_title = $title;
|
||||
}
|
||||
|
||||
function render()
|
||||
{
|
||||
$url = $this->escape($this->_url);
|
||||
$title = $this->escape($this->_title);
|
||||
$xml = "<ExecuteItem URI=\"".$url."\"";
|
||||
if ($this->_interruptCall=='no') $xml .= " interruptCall=\"no\"";
|
||||
if ($this->_title!='') $xml .= " title=\"".$title."\"";
|
||||
$xml .= "/>\n";
|
||||
return($xml);
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
########################################################################################################
|
||||
# Aastra XML API Classes - AastraIPFormattedPhoneTextScreen
|
||||
# Copyright Aastra Telecom 2008-2010
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# AastraIPPhoneFormattedTextScreen object.
|
||||
#
|
||||
@ -66,6 +66,7 @@
|
||||
# @uri string
|
||||
# setScrollRight(uri) to set the URI to be called when the user presses the Right arrow (optional)
|
||||
# @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
|
||||
# @number string
|
||||
# @line integer (optional)
|
||||
@ -102,6 +103,7 @@ class AastraIPPhoneFormattedTextScreen extends AastraIPPhone {
|
||||
var $_scrollRight='';
|
||||
var $_dialNumber='';
|
||||
var $_dialLine='';
|
||||
var $_fontMono='';
|
||||
|
||||
function addLine($text, $size=NULL, $align=NULL, $color=NULL)
|
||||
{
|
||||
@ -160,6 +162,11 @@ class AastraIPPhoneFormattedTextScreen extends AastraIPPhone {
|
||||
$this->_dialLine = $dialLine;
|
||||
}
|
||||
|
||||
function setNoFontMono()
|
||||
{
|
||||
$this->_fontMono = 'no';
|
||||
}
|
||||
|
||||
function render()
|
||||
{
|
||||
# Beginning of root tag
|
||||
@ -215,6 +222,9 @@ class AastraIPPhoneFormattedTextScreen extends AastraIPPhone {
|
||||
if($this->_scrollLeft!='') $out .= " scrollLeft=\"".$this->escape($this->_scrollLeft)."\"";
|
||||
if($this->_scrollRight!='') $out .= " scrollRight=\"".$this->escape($this->_scrollRight)."\"";
|
||||
|
||||
# Font Monotype
|
||||
if ($this->_fontMono == 'no') $out .= " fontMono=\"no\"";
|
||||
|
||||
# End of Root tag
|
||||
$out .= ">\n";
|
||||
|
||||
@ -271,7 +281,5 @@ class AastraIPPhoneFormattedTextScreen extends AastraIPPhone {
|
||||
# Return XML object
|
||||
return $out;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
################################################################################
|
||||
# Aastra XML API Classes - AastraIPPhoneFormattedTextScreenEntry
|
||||
# Firmware 2.0 or better
|
||||
# Copyright Aastra Telecom 2008-2010
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# Internal class for AastraIPPhoneFormattedTextScreen object.
|
||||
################################################################################
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
#########################################################################################################
|
||||
# Aastra XML API Classes - Aastra XML API Classes - AastraIPPhoneGDImage
|
||||
# Copyright Aastra Telecom 2007-2010
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# Firmware 2.0 or better
|
||||
#
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
################################################################################
|
||||
# Aastra XML API Classes - AastraIPIconEntry
|
||||
# Aastra XML API Classes - AastraIPPhoneIconEntry
|
||||
# Firmware 2.0 or better
|
||||
# Copyright Aastra Telecom 2007-2010
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# Internal class for AastraIPPhone object.
|
||||
################################################################################
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
########################################################################################################
|
||||
# Aastra XML API Classes - AastraIPPhoneImageMenu
|
||||
# Copyright Aastra Telecom 2007-2012
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# AastraIPPhoneImageMenu object.
|
||||
#
|
||||
|
@ -2,7 +2,7 @@
|
||||
################################################################################
|
||||
# Aastra XML API Classes - AastraIPPhoneImageMenuEntry
|
||||
# Firmware 2.0 or better
|
||||
# Copyright Aastra Telecom 2007-2010
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# Internal class for AastraIPPhoneImageMenu object.
|
||||
################################################################################
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
########################################################################################################
|
||||
# Aastra XML API Classes - AastraIPPhoneImageScreen
|
||||
# Copyright Aastra Telecom 2008-2012
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# AastraIPPhoneImageScreen object.
|
||||
#
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
########################################################################################################
|
||||
# Aastra XML API Classes - AastraIPPhoneInputScreen
|
||||
# Copyright Aastra Telecom 2005-2011
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# AastraIPPhoneInputScreen object.
|
||||
#
|
||||
|
@ -2,7 +2,7 @@
|
||||
################################################################################
|
||||
# Aastra XML API Classes - AastraIPPhoneInputScreenEntry
|
||||
# Firmware 2.0 or better
|
||||
# Copyright Aastra Telecom 2005-2010
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# Internal class for AastraIPPhoneInputScreen object.
|
||||
################################################################################
|
||||
|
@ -2,7 +2,7 @@
|
||||
#############################################################################
|
||||
# AastraIPPhoneScrollHandler
|
||||
#
|
||||
# Copyright 2009 Aastra Telecom Ltd
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# Note
|
||||
# This script is a helper script of the AastraIPPhoneScrollableTextMenu
|
||||
|
@ -4,7 +4,7 @@
|
||||
#
|
||||
# Aastra SIP Phones 1.4.2 or better
|
||||
#
|
||||
# Copyright 2009-2011 Aastra Telecom Ltd
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# Supported Aastra Phones
|
||||
# All IP phones except Aastra9112i and Aastra9133i
|
||||
@ -69,7 +69,7 @@
|
||||
# $records[99]['office'] = "+1 (0) 555-123-1234";
|
||||
# $records[99]['officeDigits'] = "1234";
|
||||
# $records[99]['home'] = "044 555 22 33";
|
||||
# $records[99]['company'] = "Aastra Telecom Inc.";
|
||||
# $records[99]['company'] = "Mitel";
|
||||
# $directory = new AastraIPPhoneScrollableDirectory();
|
||||
# $directory->setTitle('Directory');
|
||||
# $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_wrap_title_supported())$menu->setTitleWrap();
|
||||
if (Aastra_is_textmenu_wrapitem_supported()) $menu->setWrapList();
|
||||
if (Aastra_is_top_title_supported())
|
||||
{
|
||||
$menu->setTopTitle($myrecord['name']);
|
||||
$menu->setTitle(' ');
|
||||
}
|
||||
else $menu->setTitle($myrecord['name']);
|
||||
$menu->setTitle($myrecord['name']);
|
||||
|
||||
# Default Index
|
||||
$defaultIndex = 1;
|
||||
@ -265,22 +260,9 @@ class AastraIPPhoneScrollableDirectory extends AastraIPPhoneScrollableTextMenu
|
||||
}
|
||||
|
||||
# Softkeys
|
||||
$nb_softkeys=Aastra_number_physical_softkeys_supported();
|
||||
if ($nb_softkeys)
|
||||
if (Aastra_is_softkeys_supported())
|
||||
{
|
||||
if ($nb_softkeys==4)
|
||||
{
|
||||
# 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)
|
||||
if (Aastra_number_softkeys_supported()!=10)
|
||||
{
|
||||
# Regular phone with 6 softkeys
|
||||
if (!Aastra_test_phone_version('2.0.1.',1)) $dialKeyType = 'SoftKey:Dial2';
|
||||
|
@ -4,7 +4,7 @@
|
||||
#
|
||||
# Aastra SIP Phones 1.4.2 or better
|
||||
#
|
||||
# Copyright 2009-2011 Aastra Telecom Ltd
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# Supported Aastra Phones
|
||||
# All IP phones except Aastra9112i and Aastra9133i
|
||||
|
@ -2,7 +2,7 @@
|
||||
################################################################################
|
||||
# Aastra XML API Classes - AastraIPPhoneSoftkeyEntry
|
||||
# Firmware 2.0 or better
|
||||
# Copyright Aastra Telecom 2005-2010
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# Internal class for AastraIPPhone object.
|
||||
################################################################################
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
########################################################################################################
|
||||
# Aastra XML API Classes - AastraIPPhoneStatus
|
||||
# Copyright Aastra Telecom 2006-2010
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# AastraIPPhoneStatus object.
|
||||
#
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
################################################################################
|
||||
# Aastra XML API Classes - AastraIPPhoneStatusEntry
|
||||
# Copyright Aastra Telecom 2007-2010
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# Internal class for AastraIPPhoneStatus object.
|
||||
################################################################################
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
########################################################################################################
|
||||
# Aastra XML API Classes - AastraIPPhoneTextMenu
|
||||
# Copyright Aastra Telecom 2005-2010
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# AastraIPPhoneTextMenu object.
|
||||
#
|
||||
@ -52,6 +52,8 @@
|
||||
# setWrapList() to allow 2 lines items (optional)
|
||||
# setScrollConstrain() to avoid the list to wrap
|
||||
# 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
|
||||
# @base string
|
||||
# resetBase() to reset the menuItem base URI
|
||||
@ -113,9 +115,11 @@ class AastraIPPhoneTextMenu extends AastraIPPhone {
|
||||
var $_maxitems='30';
|
||||
var $_scrollConstrain='';
|
||||
var $_numberLaunch='';
|
||||
var $_touchLaunch='';
|
||||
var $_scrollUp='';
|
||||
var $_scrollDown='';
|
||||
var $_unitScroll='';
|
||||
var $_fontMono='';
|
||||
|
||||
function setDefaultIndex($defaultIndex)
|
||||
{
|
||||
@ -163,6 +167,16 @@ class AastraIPPhoneTextMenu extends AastraIPPhone {
|
||||
$this->_numberLaunch = 'yes';
|
||||
}
|
||||
|
||||
function setTouchLaunch()
|
||||
{
|
||||
$this->_touchLaunch = 'yes';
|
||||
}
|
||||
|
||||
function setNoFontMono()
|
||||
{
|
||||
$this->_fontMono = 'no';
|
||||
}
|
||||
|
||||
function setScrollUp($uri)
|
||||
{
|
||||
$this->_scrollUp = $uri;
|
||||
@ -236,6 +250,12 @@ class AastraIPPhoneTextMenu extends AastraIPPhone {
|
||||
# Number selection
|
||||
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
|
||||
if($this->_scrollUp!='') $out .= " scrollUp=\"".$this->escape($this->_scrollUp)."\"";
|
||||
if($this->_scrollDown!='') $out .= " scrollDown=\"".$this->escape($this->_scrollDown)."\"";
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
################################################################################
|
||||
# Aastra XML API Classes - AastraIPPhoneTextMenuEntry
|
||||
# Copyright Aastra Telecom 2005-2010
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# Internal class for AastraIPPhoneTextMenu object.
|
||||
################################################################################
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
########################################################################################################
|
||||
# Aastra XML API Classes - AastraIPPhoneTextScreen
|
||||
# Copyright Aastra Telecom 2005-2010
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# AastraIPPhoneTextScreen object.
|
||||
#
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
################################################################################
|
||||
# Aastra XML API Classes - AastraIPPhoneTextScreenEntry
|
||||
# Copyright Aastra Telecom 2007-2011
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# Internal class for AastraIPPhoneTextScreen object.
|
||||
################################################################################
|
||||
|
@ -1,4 +1,4 @@
|
||||
Copyright (c) 2008 Aastra Telecom US, Inc.
|
||||
Copyright (c) 2005-2015 Mitel Networks.
|
||||
All rights reserved.
|
||||
|
||||
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
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
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.
|
||||
|
||||
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
|
||||
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL AASTRA TELECOM US, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
|
@ -3,7 +3,7 @@
|
||||
###########################################################################
|
||||
# Sample php applications using the Aastra XML API Classes
|
||||
# Aastra 6739i Firmware 3.0.1 or better
|
||||
# Copyright Aastra Telecom 2005-2010
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
###########################################################################
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
Copyright (c) 2010 Aastra Telecom US, Inc.
|
||||
Copyright (c) 2005-2015 Mitel Networks
|
||||
All rights reserved.
|
||||
|
||||
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
|
||||
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
|
||||
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL AASTRA TELECOM US, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?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
|
||||
# image server uri: http://<server>/<path-to-this-script>?
|
||||
@ -29,6 +29,110 @@ error_reporting(E_ERROR | E_PARSE);
|
||||
# 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)
|
||||
{
|
||||
# Get file content with a shared lock to avoid race conditions
|
||||
@ -116,18 +220,58 @@ return null;
|
||||
|
||||
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
|
||||
$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
|
||||
$im_width=imagesx($im);
|
||||
$im_height=imagesy($im);
|
||||
|
||||
# Check if image is smaller than 150x200 pixels and if "blow up" of images is disabled
|
||||
if(($im_width < 150) && ($im_height < 200) && !$blowup)
|
||||
# Check if image is smaller than requested size and if "blow up" of images is disabled
|
||||
if(($im_width < $target_width) && ($im_height < $target_height) && !$blowup)
|
||||
{
|
||||
# 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
|
||||
{
|
||||
if($SQUARE)
|
||||
{
|
||||
# Check aspect ratio of source image
|
||||
if ($im_width / $im_height <= 1)
|
||||
{
|
||||
# "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 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
|
||||
{
|
||||
@ -135,14 +279,15 @@ else
|
||||
if ($im_width / $im_height <= 0.75)
|
||||
{
|
||||
# "Portrait" image. scale to 200 pixel height and center horizontally
|
||||
$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);
|
||||
$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 * (150 / $im_width);
|
||||
imagecopyresized($im_output, $im, 0, ((200-$new_im_height)/2), 0, 0, 150, $new_im_height, $im_width, $im_height);
|
||||
$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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -152,6 +297,20 @@ return($im_output);
|
||||
|
||||
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
|
||||
if(strpos(strtolower(PHP_OS), 'win') === false) $font='fonts/DejaVuSans-Bold';
|
||||
else $font=realpath('./fonts/').'\\DejaVuSans-Bold.ttf';
|
||||
@ -179,12 +338,12 @@ switch($array_complement[2])
|
||||
case 'right':
|
||||
$array_text=imagettfbbox($size,0,$font,$array_complement[0]);
|
||||
$width=$array_text[4]-$array_text[6];
|
||||
$x=150-10-$width;
|
||||
$x=$target_width-10-$width;
|
||||
break;
|
||||
default:
|
||||
$array_text=imagettfbbox($size,0,$font,$array_complement[0]);
|
||||
$width=$array_text[4]-$array_text[6];
|
||||
$x=intval(75-($width/2));
|
||||
$x=intval(($target_width-$width)/2);
|
||||
break;
|
||||
}
|
||||
|
||||
@ -301,7 +460,7 @@ if(!$return)
|
||||
# Found
|
||||
$return=True;
|
||||
|
||||
# Scale image to 150x200 pixel
|
||||
# Scale image to the right size
|
||||
$im=scaleImage($im,$BLOWUP);
|
||||
|
||||
# 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];
|
||||
}
|
||||
|
||||
# Retrieve image format and color
|
||||
$SQUARE=is_square();
|
||||
$WHITE=is_white();
|
||||
|
||||
# No number
|
||||
if(empty($number_original))
|
||||
{
|
||||
@ -566,7 +729,7 @@ else $CACHE_DIR='cache';
|
||||
if($array_config['General']['pictures']!='') $PICTURES_DIR=$array_config['General']['pictures'];
|
||||
else $PICTURES_DIR='pictures';
|
||||
|
||||
# Rescale image smaller than 150x200
|
||||
# Rescale image smaller than expected size
|
||||
$BLOWUP=False;
|
||||
if($array_config['General']['blowup']=='1') $BLOWUP=True;
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
# Configuration file for number translation map
|
||||
#
|
||||
# Copyright 2010 Aastra Telecom Ltd
|
||||
# Copyright 2005-2015 Mitel Networks.
|
||||
#
|
||||
# Description
|
||||
# This configuration file is used for the picture CallerID to map a number
|
||||
@ -110,7 +110,7 @@ local=
|
||||
# Will display the picture "UK" when any number starting with 44 is dialed or is incoming
|
||||
#############################################################################
|
||||
[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
|
||||
PNXXXXXXXXX,P1NXXXXXXXXX=US
|
||||
P44.=UK
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 4.4 KiB |
BIN
pictureCallerID/pictures/logo.png
Normal file
BIN
pictureCallerID/pictures/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.3 KiB |
@ -1,4 +1,4 @@
|
||||
Copyright (c) 2007-2009 Aastra Telecom US, Inc.
|
||||
Copyright (c) 2005-2015 Mitel Networks.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
@ -4,7 +4,7 @@
|
||||
# Aastra SIP Phones R1.4.2 or better
|
||||
#
|
||||
# php source code
|
||||
# Copyright Aastra Telecom Ltd 2008
|
||||
# Copyright 2005-2015 Mitel Networks
|
||||
#############################################################################
|
||||
|
||||
#############################################################################
|
||||
|
@ -9,7 +9,7 @@
|
||||
# script.php?ip=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
|
||||
#############################################################################
|
||||
|
||||
#############################################################################
|
||||
|
@ -4,7 +4,7 @@
|
||||
# Aastra SIP Phones R1.4.2 or better
|
||||
#
|
||||
# php source code
|
||||
# Copyright (c) Aastra Telecom Ltd 2007-2009
|
||||
# Copyright (c) 2005-2015 Mitel Networks
|
||||
# Copyright (c) 2003 Jose Solorzano. All rights reserved.
|
||||
#
|
||||
# Supported phones
|
||||
|
@ -1,12 +1,12 @@
|
||||
#############################################################################
|
||||
# server.conf
|
||||
#
|
||||
# Main Configuration file for Aastra XML scripts
|
||||
# Main Configuration file for Mitel XML scripts
|
||||
# Located in /etc
|
||||
#
|
||||
# Version: VERSION
|
||||
#
|
||||
# Copyright 2009 Aastra Telecom Ltd
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
#############################################################################
|
||||
[General]
|
||||
|
@ -4,7 +4,7 @@
|
||||
#
|
||||
# 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
|
||||
#
|
||||
|
@ -2,9 +2,9 @@
|
||||
#############################################################################
|
||||
# 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
|
||||
# 55i, 57i and 57iCT
|
||||
@ -14,7 +14,6 @@
|
||||
#
|
||||
# Note
|
||||
# PHP-GD extension is needed for this script
|
||||
#
|
||||
#############################################################################
|
||||
|
||||
#############################################################################
|
||||
|
@ -31,6 +31,11 @@
|
||||
# Aastra480i Cordless=no
|
||||
# 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
|
||||
#
|
||||
#######################################################################################################################################
|
||||
|
||||
[RESERVED]
|
||||
@ -65,10 +70,6 @@ title=Today...
|
||||
title-fr=Aujourd'hui
|
||||
info=Daily information.
|
||||
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]
|
||||
title=Area Code
|
||||
info=Get the list of the cities attached to a area code.
|
||||
|
@ -4,9 +4,9 @@
|
||||
#
|
||||
# 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
|
||||
#
|
||||
# Usage
|
||||
@ -123,7 +123,10 @@ Aastra_test_phone_version('1.4.2.',0);
|
||||
|
||||
# Get global compatibility
|
||||
$nb_softkeys=Aastra_number_physical_softkeys_supported();
|
||||
$is_toptitle_supported=Aastra_is_top_title_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
|
||||
if($nb_softkeys) $MaxLines=AASTRA_MAXLINES;
|
||||
@ -187,6 +190,7 @@ switch($menu_action)
|
||||
if($is_toptitle_supported) $object->setTopTitle($title);
|
||||
else $object->setTitle($title);
|
||||
if($is_style_textmenu) $object->setStyle('none');
|
||||
if($is_font_mono) $object->setNoFontMono();
|
||||
$index=0;
|
||||
$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));
|
||||
|
@ -23,7 +23,7 @@
|
||||
###############################################################################################
|
||||
[RESERVED]
|
||||
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=
|
||||
replace_before=
|
||||
search_after=
|
||||
|
@ -23,7 +23,7 @@
|
||||
###############################################################################################
|
||||
[RESERVED]
|
||||
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/
|
||||
replace_before=,,
|
||||
search_after=
|
||||
|
@ -23,7 +23,7 @@
|
||||
###############################################################################################
|
||||
[RESERVED]
|
||||
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\\[/,/]]>/
|
||||
replace_before=,
|
||||
search_after=
|
||||
|
@ -23,7 +23,7 @@
|
||||
###############################################################################################
|
||||
[RESERVED]
|
||||
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\\[/,/]]>/
|
||||
replace_before=,
|
||||
search_after=
|
||||
|
@ -24,9 +24,9 @@
|
||||
|
||||
[RESERVED]
|
||||
title=Daily Horoscope
|
||||
copyright= 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 Aastra Telecom.
|
||||
copyright-fr= Fil RSS fourni par www.astrosage.com et mise en forme pour vous par 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 Mitel Networks.
|
||||
copyright-fr= Fil RSS fourni par www.astrosage.com et mise en forme pour vous par Mitel Networks.
|
||||
search_before=
|
||||
replace_before=
|
||||
search_after=
|
||||
|
@ -23,7 +23,7 @@
|
||||
###############################################################################################
|
||||
[RESERVED]
|
||||
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=
|
||||
replace_before=
|
||||
search_after=
|
||||
|
@ -24,9 +24,9 @@
|
||||
|
||||
[RESERVED]
|
||||
title=Netflix
|
||||
copyright= 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 Aastra Telecom.
|
||||
copyright-fr= Fil RSS fourni par Le Netflix.com et mise en forme pour vous par 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 Mitel Networks.
|
||||
copyright-fr= Fil RSS fourni par Le Netflix.com et mise en forme pour vous par Mitel Networks.
|
||||
search_before=
|
||||
replace_before=
|
||||
search_after=
|
||||
|
@ -4,9 +4,9 @@
|
||||
#
|
||||
# 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
|
||||
# 9112i
|
||||
# 9133i
|
||||
@ -114,10 +114,20 @@ $string=preg_replace('/\n/',' ', $string);
|
||||
# Process after
|
||||
if($pattern[1]==1) $string=preg_replace($after_s, $after_r, $string);
|
||||
|
||||
$string=escape_decode($string);
|
||||
|
||||
# Return processed string
|
||||
return($string);
|
||||
}
|
||||
|
||||
function escape_decode($string)
|
||||
{
|
||||
return(str_replace(
|
||||
array('&', '<', '>', '"', '''),
|
||||
array('&', '<', '>', '"', "'"),
|
||||
$string));
|
||||
}
|
||||
|
||||
#############################################################################
|
||||
# Beginning of the active code
|
||||
#############################################################################
|
||||
@ -149,6 +159,8 @@ $language=Aastra_get_language();
|
||||
# Global compatibility
|
||||
$nb_softkeys=Aastra_number_physical_softkeys_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(file_exists($file))
|
||||
@ -225,7 +237,7 @@ else
|
||||
# Process request
|
||||
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
|
||||
$object=new AastraIPPhoneTextMenu();
|
||||
@ -233,6 +245,7 @@ if(empty($index))
|
||||
if($last_index!='') $object->setDefaultIndex($last_index);
|
||||
if(Aastra_is_style_textmenu_supported()) $object->setStyle('radio');
|
||||
if(Aastra_is_textmenu_wrapitem_supported()) $object->setWrapList();
|
||||
if($is_font_mono) $object->setNoFontMono();
|
||||
|
||||
# Title
|
||||
if($is_toptitle_supported) $object->setTopTitle($Main);
|
||||
@ -408,6 +421,7 @@ else
|
||||
if(Aastra_is_style_textmenu_supported()) $object->setStyle('radio');
|
||||
if(Aastra_is_textmenu_wrapitem_supported()) $object->setWrapList();
|
||||
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));
|
||||
$i=1;
|
||||
foreach ($array_rss as $key=>$value)
|
||||
@ -442,6 +456,31 @@ else
|
||||
$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)
|
||||
{
|
||||
$object->addSoftkey('1', Aastra_get_label('Select',$language), 'SoftKey:Select');
|
||||
@ -498,7 +537,7 @@ else
|
||||
$object->setDestroyOnExit();
|
||||
if(Aastra_is_wrap_title_supported())$object->setTitleWrap();
|
||||
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
|
||||
{
|
||||
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);
|
||||
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!=(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('4',Aastra_get_label('Exit',$language),'SoftKey:Exit');
|
||||
$object->addSoftkey($nb_softkeys-1,Aastra_get_label('Back',$language),$back);
|
||||
$object->addSoftkey($nb_softkeys,Aastra_get_label('Exit',$language),'SoftKey:Exit');
|
||||
}
|
||||
else if($nb_softkeys==6)
|
||||
{
|
||||
|
@ -4,17 +4,9 @@
|
||||
#
|
||||
# Aastra SIP Phones 1.4.2 or better
|
||||
#
|
||||
# Copyright 2008 Aastra Telecom Ltd
|
||||
#
|
||||
# Supported Aastra Phones
|
||||
# 55i
|
||||
# 57i
|
||||
# 57iCT
|
||||
# 9480i
|
||||
# 9480iCT
|
||||
# Copyright 2005-2015 Mitel Networks
|
||||
#
|
||||
# script.php
|
||||
#
|
||||
#############################################################################
|
||||
|
||||
#############################################################################
|
||||
@ -191,7 +183,7 @@ Aastra_trace_call('currency','user='.$user.', action='.$action.', selection='.$s
|
||||
|
||||
# Test User Agent
|
||||
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
|
||||
$language=Aastra_get_language();
|
||||
|
@ -4,7 +4,7 @@
|
||||
#
|
||||
# Aastra SIP Phones 1.4.2 or better
|
||||
#
|
||||
# Copyright 2007-2009 Aastra Telecom Ltd
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# Supported Aastra Phones
|
||||
# All phones but best on large display phones
|
||||
@ -218,7 +218,7 @@ switch($action)
|
||||
if($action=='input')
|
||||
{
|
||||
if($data['last']!=NULL) $default=$data['last'];
|
||||
else $default='AAH.TO';
|
||||
else $default='MITL';
|
||||
}
|
||||
else $default=$data['favorites'][$selection];
|
||||
$object->setDefault($default);
|
||||
|
@ -4,18 +4,10 @@
|
||||
#
|
||||
# Aastra SIP Phones 1.4.2 or better
|
||||
#
|
||||
# Copyright 2007-2009 Aastra Telecom Ltd
|
||||
# Copyright Mitel Networks 2005-2015
|
||||
#
|
||||
# Supported Aastra Phones
|
||||
# All phones but best on
|
||||
# 480i
|
||||
# 480iCT
|
||||
# 35i
|
||||
# 35i CT
|
||||
# 55i
|
||||
# 57i
|
||||
# 57i CT
|
||||
# 6739i
|
||||
# All phones
|
||||
#
|
||||
# script.php?zip=XXXXX
|
||||
# where XXXXX is the US ZIP code of the city (optional)
|
||||
@ -141,6 +133,7 @@ $language=Aastra_get_language();
|
||||
# Global compatibility
|
||||
$nb_softkeys=Aastra_number_physical_softkeys_supported();
|
||||
$is_toptitle_supported=Aastra_is_top_title_supported();
|
||||
$is_font_mono=Aastra_is_font_mono_supported();
|
||||
|
||||
# Callback
|
||||
$XML_SERVER.='?user='.$user;
|
||||
@ -239,7 +232,7 @@ else
|
||||
fputs($handle,'title='.$allItems[$y]['title']."\n");
|
||||
$description=filter_format($allItems[$y]['description']);
|
||||
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,'uri='.$XML_SERVER.'&zip='.$zip.'&index='.($y+1)."\n");
|
||||
}
|
||||
@ -281,6 +274,7 @@ else
|
||||
$object=new AastraIPPhoneTextMenu();
|
||||
$object->setDestroyOnExit();
|
||||
if(Aastra_is_style_textmenu_supported()) $object->setStyle('radio');
|
||||
if($is_font_mono) $object->setNoFontMono();
|
||||
|
||||
# Title
|
||||
if($is_toptitle_supported) $object->setTopTitle($array_rss[99]['title']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user