Installation
------------
-Note: this process may overwrite your Asterisk extensions.conf and
+NOTE: this process may overwrite your Asterisk extensions.conf and
sip.conf files - back them up if you have an existing Asterisk
installation that you want to keep. The IP0X ipkg does attempt to
backup the modified conf files to *.bak but no guarantees....
x86 Installation
~~~~~~~~~~~~~~~~
-. You need a web server, Asterisk and some sort of Perl installed
+You need a web server, Asterisk and some sort of Perl installed
(very basic Perl installation is fine). Configure your web server to
-run CGIs (.sh and .pl) from your server root (lighttpd config
-instructions below).
+run CGIs (.sh and .pl) from your server root. Lighttpd config
+instructions are below.
Mini Asterisk expects all files (shell, perl, html etc) to be in the
same directory. If you find this painful please <<support, let me know>>.
-. The process below places the web files in /var/www, you may like to
+The process below places the web files in /var/www, you may like to
place the files somewhere else. One of the files is named index.html
so make sure you don't overwrite an existing index.html.
-. Login as root to install the Mini Asterisk files:
+. Login as root.
+
+. If you haven't done so already install Asterisk 1.4.x:
+
-Remember to backup your existing extensions.conf & sip.conf in
-/etc/asterisk
+-------------------------------------------------------------------
+# wget http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/asterisk-1.4.11.tar.gz
+# tar xvzf asterisk-1.4.11.tar.gz
+# cd asterisk-1.4.11
+# ./configure
+# make
+# make install
+# make samples
+-------------------------------------------------------------------
+
+. If you have a running Asterisk installation backup your existing
+extensions.conf & sip.conf in /etc/asterisk
+
+. Installation of Mini Asterisk is basically copying the cgi-bin and etc/asterisk
+files:
+
-------------------------------------------------------------------
# cd ~
admin screen.
. It's a good idea to switch off the internal Asterisk web server by editing
-/etc/asterisk.httpd.conf. Make sure the enabled line reads like this:
-
+/etc/asterisk/http.conf. Make sure the enabled line reads like this:
++
enabled=no
+
Then stop and restart Asterisk.
-------------------------------------------------------------------
# /etc/init.d/asterisk restart
-------------------------------------------------------------------
-+
-. I use lighttpd as the web server. On my x86 box I needed to install
-a sym-link and edit the 10-cgi.conf file:
+
+. I use lighttpd as the web server. To enable CGI support:
+
-------------------------------------------------------------------
-# cd /etc/lighttpd/conf-enabled
-# ln -s ../conf-available/10-cgi.conf .
+# lighty-enable-mod cgi
-------------------------------------------------------------------
+
I then modified 10-cgi-conf to enable perl and shell scripts:
print '<tr><td> </td></tr>';
print "<tr><td colspan=\"2\" onMouseOver=\"popUp(event,'phone_addipphone')\" onmouseout=\"popUp(event,'phone_addipphone')\">";
-print "<a href=\"ipphones.sh\">Add IP Phone</a></td><td></td><td><input type=\"submit\" value=\"Update Reception\"></td></tr>";
+
+$tooltip_update_reception = "onMouseOver=\"popUp(event,'phone_update_reception')\" onmouseout=\"popUp(event,'phone_update_reception')\"";
+print "<a href=\"ipphones.sh\">Add IP Phone</a></td><td></td><td $tooltip_update_reception><input type=\"submit\" value=\"Update Reception\"></td></tr>";
$tool_tip = "onMouseOver=\"popUp(event,'phone_lines')\" onmouseout=\"popUp(event,'phone_lines')\"";
ringing phone by dialling *8 on your phone -
see FAQ for details.</div>
+<div id="phone_update_reception" class="tip">
+ Press this button to lock in any changes you
+ have made to the Reception check-boxes above.</div>
+
<div id="phone_anphone" class="tip">
- Analog Phone: Normal telephone plugged into a port on your phone system.
- </div>
-<div id="phone_ipphone" class="tip">
- IP Phone plugged into your network.
- </div>
-<div id="phone_line" class="tip">
- Analog Phone Line: Analog telephone line plugged into a port on your phone system.
- </div>
-<div id="phone_voipline" class="tip">
- VOIP Phone Line: Make and receive phone calls over the Internet.
- </div>
+ Analog Phone: Normal telephone plugged into a
+ port on your phone system. </div> <div
+ id="phone_ipphone" class="tip"> IP Phone
+ plugged into your network. </div> <div
+ id="phone_line" class="tip"> Analog Phone
+ Line: Analog telephone line plugged into a
+ port on your phone system. </div> <div
+ id="phone_voipline" class="tip"> VOIP Phone
+ Line: Make and receive phone calls over the
+ Internet. </div>
<div id="phone_system" class="tip">
Important information about your Phone System.</div>