update http://eric-poon.blogspot.com/2013/04/aastra-xml-script-for-elastix-pbx-2013.html
AASTRA XML 2.3.1 Bate2 install/upgrade script for
Before install AASTRA XML Script you to need add Extenion, Ring Group......
Login to GUI
Create Extension
Create Ring Group
Create Day / Nigh Mode
Create Inbound Route
Enable Parking Lot
Add Paging and Intercom Group
Enable Paging and Intercom prefix under Feature Code Enable Intercom prefix *80
Add Conference Room
Add ACD Queue
Software
WinSCP http://winscp.net/eng/index.php
PuTTY http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Modified version of the XML script link
Copy the sritp to your Elastix /tmp folder and run it
Login via Putty
===========
cd /tmp
chmod +x install-aastra-xml.b2.x
./install-aastra-xml.b2.x
Run script setup
===========
setup-aastra-xml
Reboot you Elastix PBX
Patch
===========
1.Voicemail configuration
Add two line to /etc/asterisk/voicemail.conf under general
[general]
pollmailboxes=yes
USEDEVSTATE=true
===========
2.USEDEVSTATE set to True
Add this line to /etc/amportal.conf file
USEDEVSTATE=true
=====================
3. Wideband Codec (g722) configuration
Enable G722 Codec via FreePBX GUI
=======================
4. Self-configuration password
Add password to /var/www/html/aastra/config/asterisk.conf file
# Admin password for self-configuration, must be a number. Used in 'extensions' mode
pw_admin=1234
# User password for self-configuration, must be a number. Used when user has no voicemail in 'extensions' mode.
pw_user=1234
======================
Aastra XML scripts 2.3.1 Installation Check
run this
/var/www/html/aastra/utilities/check_install
If you upgrade from old version run this command to apply on existing user
user/var/www/html/aastra/utilities/apply_prf -r ALL
============================
Since 2.3.0, we have changed the way we perform the login/logout of a user in order to avoid to modify the agi script provided by freePBX, but when we tested the feature we discovered a bug in the AGI script which has been submitted to freePBX (thanks Philippe), therefore until the bug is fixed it is strongly recommended to download a modified version of the script (which is not part anymore of the aastra-xml-scripts RPM). The AGI file can be found here. It must be installed in /var/lib/asterisk/agi-bin.
ref:
http://pbxinaflash.com/forum/showthread.php?t=10179