4.2.0 version.
This commit is contained in:
@ -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
|
||||
@ -214,6 +221,9 @@ class AastraIPPhoneFormattedTextScreen extends AastraIPPhone {
|
||||
if($this->_scrollDown!='') $out .= " scrollDown=\"".$this->escape($this->_scrollDown)."\"";
|
||||
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 $_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
|
||||
#
|
||||
###########################################################################
|
||||
|
||||
|
Reference in New Issue
Block a user