
Whos says Office phones are boring?
This weekend I’ve rearranged the soft keys for my VOIP Lobby Phone to be a bit easier and intuitive for family and friends.The phone’s default key layout is structured for an office environment, but because it’s being used in a home I’ve had to make some minor adjustments. Here’s how I did it:
After using the Aastra 57i for the past couple of months, I found the default key layout didn’t work well in a home environment. I am currently running various scripts provided by Nerd Vittles that auto provisions the telephone for me. Auto provisioning allows you to setup many phones very quickly with a standard setup. The default scripting provided by Aastra and improved upon by the community makes the Aastra 57i hard to beat.
Here’s the steps I took to change the key layout:
To change the default soft key layout you need to locate a file on your Asterisk server
/var/www/html/aastra/asterisk/demo-user.prf
Open up the demo-user.prf file in a text editor and look for the title of your phone.
My bit of code for the Aastra57i now looks like this
[Aastra57i]
###############################################################################
# Top Key 1: Services
# Top Key 2: Calls
# Top Key 3: Voice Mail
# Top Key 4: DND
# Top Key 5: Day/Night
# Top Key 6: Presence
# Key 1: Phonebook
# Key 2: Call Forward
# Key 3: Park Call
# Key 4: Intercom
# Key 5: Extensions
# Key 6: Meet-me
# Key 7: Queues
# Key 8: MP3 Player
# Key 9: Speed Dial
# Key 10: ACD
# Key 20: Logout
###############################################################################
# SIP Lines
sip line1 screen name 2: Ext. $$AA_SIPUSERNAME_AA$$
# Intercom and Paging
sip intercom type: 2
sip intercom prefix code: $$AA_INTERCOM_CODE_AA$$
sip intercom line: 3
# Global Park
sprecode: asterisk;$$AA_PARKINGLOT_AA$$
# System Softkeys
topsoftkey1 type:services
topsoftkey1 label:Services
topsoftkey2 type:callers
topsoftkey2 label:Calls
topsoftkey2 states: idle, connected, incoming, outgoing, busy
topsoftkey3 type:xml
topsoftkey3 label:Voice Mail
topsoftkey3 value:http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/asterisk/vmail.php?ext=$$SIPUSERNAME$$
topsoftkey3 states:idle
topsoftkey4 type:xml
topsoftkey4 label:DND
topsoftkey4 value:http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/asterisk/dnd.php?user=$$SIPUSERNAME$$
topsoftkey4 states:idle
topsoftkey5 type:xml
topsoftkey5 label:Day/Night
topsoftkey5 value:http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/asterisk/daynight.php?user=$$SIPUSERNAME$$
topsoftkey6 type:xml
topsoftkey6 label:Presence
topsoftkey6 value:http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/asterisk/away.php?user=$$SIPUSERNAME$$
softkey1 type:directory
softkey1 label:Phonebook
softkey1 states:idle, connected, incoming, outgoing, busy
softkey2 type:xml
softkey2 label:Call Fwd
softkey2 value:http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/asterisk/cfwd.php?user=$$SIPUSERNAME$$
softkey2 states:idle
softkey3 type:xml
softkey3 label:Parking
softkey3 value:http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/asterisk/park.php
softkey3 states:idle
softkey4 type: icom
softkey4 label: Intercom
softkey5 type: xml
softkey5 label: Extensions
softkey5 value: http://192.168.1.2:80/aastra/asterisk/directory.php?user=$$SIPUSERNAME$$
softkey6 type:xml
softkey6 label:Meet-me
softkey6 value:http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/asterisk/meetme.php?ext=$$SIPUSERNAME$$
softkey6 states:idle connected
softkey7 type:xml
softkey7 label:Queues
softkey7 value:http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/asterisk/queues.php
softkey7 states:idle connected
softkey8 type:xml
softkey8 label:Music
softkey8 value:http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/asterisk/music.php?user=$$SIPUSERNAME$$
softkey8 states:idle
softkey9 type:xml
softkey9 label:Speed Dial
softkey9 value:http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/asterisk/speed.php?user=$$SIPUSERNAME$$
softkey10 type: xml
softkey10 label: ACD Agent
softkey10 value: http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/asterisk/agent.php?agent=$$SIPUSERNAME$$
softkey10 states: idle
softkey20 type:xml
softkey20 label:Logout
softkey20 value:http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/asterisk/logout.php?user=$$SIPUSERNAME$$
softkey20 states:idle
###############################################################
Now go into your TFTP or FTP boot folder and remove the MAC.cfg file associated with the phones you’d like to update the keys on. In my directory was a file named 00095E121C43J.cfg. I backed the file up and then deleted it from the tftpboot folder.
I then went to var/cache/aastra/ and opened up a file named startup_asterisk.cfg. I deleted the bits of text associated with my extensions. So in my case I deleted:
[1000]
mac=00095E121C43J
ip=192.168.1.167
model=Aastra57i
Once everything was removed. I saved the file.
I then rebooted the Aastra phone.
When the phone was done rebooting I was presented with my new layout.
Done