This is designed to change the radio station being played on elastix. We use this for a tanoy connected to an FXS module on our phone system.
download and install perl-CGI-Simple from DAG
uncomment AddHandler cgi-script .cgi in /etc/httpd/conf/httpd.conf
Create a music on hold streaming category in the freepbx web interface, mine is called stream1 if you use something else please update the code as required
place the script in the /var/www/cgi-bin/ on your elastix server and update the variables are required (server IP, stations and category name)