Tuesday, September 23, 2008

Im working on some various XML Applications for the Aastra 5xi Series of IP phones. Im starting by porting over some of the pre-made Aastra/Asterisk scripts.

These assume your 3CX installation is in the default c:\program files\3cx phonesystem\ directory. The aastra XML apps will live inside of C:\Program Files\3CX PhoneSystem\Data\Http\aastra

http://www.worksighted.com/blog/3cxfiles/aastra.zip

At the moment this has the weather feed ported over. This creates a 'cache' directory for storing cahced RSS feeds etc inside of /aastra/cache. The weather for specific Zips is cached for an hour per phone to prevent hammering the RSS server.

You also need to edit httpd.conf to allow access to the new aastra subdirectory via http. You need to edit C:\Program Files\3CX PhoneSystem\Bin\Apache\conf\httpd.conf and add the following ...

<Location /aastra>
Allow from all
</Location>

and save the file. You will need to restart the 3CX Apache service for that change to take effect.

To use this on your Aastra 5xi, just assign one of your buttons an XML value of http://xx.xx.xx.xx:5481/weather.php (obviously editing IP and server port as appropriate). If you dont want to prompt for zip and use a default use this format....http://xx.xx.xx.xx:5481/weather.php?zip=xxxxx and it wont prompt for zip code.I'll post the additional scripts to this thread as I go through them.

I'm also working on a hot-desking script which should be cool.

Mike

0 comments: