Specifications
PA-001011-03-04 Aastra July 2014
199
560M for the 60 keys self labeled expansion module (6735i, 6737i, 6739i, 55i, 57i, 57i CT)
M680i for the 16 keys paper labeled expansion module (6867i)
The following source code is a php example that can be used to decode the X-Aastra_ExpMod
header sent by an Aastra phone.
function Aastra_decode_HTTP_X_Aastra()
{
$header[‘module1’]=$_SERVER["HTTP_X_AASTRA_EXPMOD1"];
$header[‘module2’]=$_SERVER["HTTP_X_AASTRA_EXPMOD2"];
$header[‘module3’]=$_SERVER["HTTP_X_AASTRA_EXPMOD3"];
return($header);
}
Example of execution
An Aastra 57i with one 560M in position 1 and a 536M in position 2.
Array[‘module1’] => 560M
Array[‘module2’] => 536M
Array[‘module3’] => Empty string
4.16.3 Accept-Language
The phone also sends the standard Accept-Language in the headers request which describes the
language of the phone using 2 characters.
To access it using php the syntax is $_SERVER["HTTP_ACCEPT_LANGUAGE"])
Example
echo $_SERVER["HTTP_ACCEPT_LANGUAGE"]
returns “en”
4.17 Some development guidelines
There are some simple rules that you should follow when you develop XML applications for the
Aastra SIP phones.
Don’t forget the “Exit” key when you use custom softkeys
Place custom softkeys as they are for the standard objects, also it is better to use the same
labels. The Exit key should preferably be placed in position 6.
Setting destroyOnExit attribute to “yes” is always preferable when you write complex
applications as it is the only way to properly control the pages that are stacked in the
phone.
Avoid using the Directory Object; TextMenu object with custom keys is much more flexible.
If you want to access data from the internet, it is preferable to use a RSS feed or a SOAP
interface than Web scraping as Web sites frequently change their layout interface.