We have just released and made available on the Trixbox yum server the new version of the XML scripts for tha Aastra SIP phones. A detailed documentation will be posted on our web site next week, in the meantime here are some basic information on how to install and use the new scripts.
We tested the scripts on Trixbox CE 2.6 but they should be compatible with 2.2 and 2.4. Also, the phones need to be running 1.4.2.3000 for the 9112i, 9133i, 480i and 480iCT and 2.2.0.166 for the 5i Series.
What's new
The main additions to the XML scripts are the auto-discovery and self-configuration which allows a plug and play deployment of Aastra SIP phones with a Trixbox CE server. On top of that we have added:
- a MP3 Player application (requested by Kerry)
- the day/night control (thanks Ethan for the idea)
- a graphical Yahtzee game leveraging the new GD class we have provided in the XML API SDK for the 2.2 firmware (55i and 57i/57iCT only)
- a meet-me manager aplication
- the display of the parking orbit when the user hangs up the phone after a parking (requested in the forum)
- new RSS feeds and many more...
Installation
Just do a
yum install aastra-xml-scripts
or
yum update aastra-xml-scripts
There are some dependencies such as mpg123 and mDNSResponder which will be resolved by yum, all the needed packages are on the Trixbox yum repository.
You can also install php-gd if you plan to use the graphical applications.
Once the scripts are install, you have to run the following command from the console
setup-aastra-xml
This command creates a proper aastra.cfg in the TFTP directory (/tftpboot) to allow self-configuration.
Auto-discovery
The auto-discovery is provided by using the Apple Bonhour protocol a.k.a mDNSResponder. When the scripts are installed, the mDNSResponder daemon is also installed and configured to answer to the Aastra SIP phone mDNS request for configuration.
The deamon will answer to the phone providing the IP address of the TFTP server, this allows you to deploy in evnvironment where you cannot (or don't want to) use DHCP option 66 or other flavors of it.
Once the phone gets its configuration server, it will download the right firmware and the aastra.cfg generated earlier triggering the self-configuration, we use the action uri startup to launch a XML script after the boot.
If the phone gets more than one answer (multiple Trixbox servers on the LAN), the user will be prompted with a choice and will have to select which server he wants to connect to.
Self-Configuration
For the self-configuration, we have implemented XML scripts which will create the phone config file after the user has been authenticated.
We identify a user using:
- his extension
- his voicemail password
Which means that each user must have a voicemail enabled with a password.
Once the user is identified, he is prompted for a timezone, then the phone reboots with a complete configuration. This configuration comes from a template file located at /var/www/html/aastra/asterisk/trixbox.prf covering every type of Aastra phones. This file can be changed to accomodate your needs.
As we use park and directed call pickup in the configuration files, make sure that the parking has been properly configured using FreePBX before you connect your phone or some features might not work.
MP3 Player
The MP3Player aplication is delivered with a (free of right) MP3 sample file to be able to work 'out of the box'.
You can configure the location of the MP3 directories in /var/www/html/aastra/config/asterisk.conf
Then to index the MP3 files use
cd /var/www/html/aastra/asterisk
php genMP3.php
The files will be indexed only if they include id3 tags with artist and title.
The application allows you to browse by artists, albums and songs and will play your selection.
Again, a more detailed documentation will be available next week. Feel free to provide any feedback or idea for these scripts as well as report the bugs.
Enjoy
Aastra1 - Stephane
Member Since:
2006-11-06