- Joined
- Aug 19, 2008
- Messages
- 204
- Reaction score
- 0
I am working on a set of Aastra XML Applications and thought it best to start with porting to 3CX the existing Aastra/Asterisk XML/PHP scripts Aastra publishes for use with Asterisk.
Here is the first. Its the weather script. You need to unzip the attached zip file inside of C:\Program Files\3CX PhoneSystem\Data\Http. You will get a new subdirectory /aastra.
The weather script is an rss feed and it will cache to the 'cache' directory you will see inside of the aastra subdirectory (/aastra/cache). So its important to keep that structure.
I am assuming you have your app installed to the default location with all of this. If you don't, let me know and I will assist you in editing appropriately.
Also, you will need to edit your httpd.conf file to allow requests to the /aastra directory. 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.
Enjoy,
Mike
Here is the first. Its the weather script. You need to unzip the attached zip file inside of C:\Program Files\3CX PhoneSystem\Data\Http. You will get a new subdirectory /aastra.
The weather script is an rss feed and it will cache to the 'cache' directory you will see inside of the aastra subdirectory (/aastra/cache). So its important to keep that structure.
I am assuming you have your app installed to the default location with all of this. If you don't, let me know and I will assist you in editing appropriately.
Also, you will need to edit your httpd.conf file to allow requests to the /aastra directory. 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.
Enjoy,
Mike