From: horse69 Date: Wed, 12 Sep 2012 22:07:57 +0000 (+0000) Subject: git-svn-id: https://svn.code.sf.net/p/freetel/code@680 01035d8c-6547-0410-b346-abe4f9... X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=b4673a5b39e5ba6018e74e9d51cd93d2924fc81d;p=freetel-svn-tracking.git git-svn-id: https://svn.code.sf.net/p/freetel/code@680 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/mini-asterisk-gui2/install_gui2.sh b/mini-asterisk-gui2/install_gui2.sh new file mode 100755 index 00000000..7bcbdd25 --- /dev/null +++ b/mini-asterisk-gui2/install_gui2.sh @@ -0,0 +1,61 @@ +# Script to install GUI2 to IP04 +# Developement Edition +# Ian Roberts +# Sept 2012 + +# check we are on an IP0x box +echo "must be root directory on IP04" +echo "" + +# get the source + +wget -O gui2.tar.gz http://freetel.svn.sourceforge.net/viewvc/freetel/mini-asterisk-gui2/?view=tar + +#mv index.html?view=tar mag2.tar.gz + +echo "" + +# unpack + +tar zxvf gui2.tar.gz + + +# check root + +#testing +#mkdir www +#mkdir www/cgi-bin + + +#create directories if required +mkdir /www/gui2 +mkdir /www/cgi-bin + +# copy web files to /www + +cp mini-asterisk-gui2/*.html /www/gui2 +cp mini-asterisk-gui2/*.js /www/gui2 +cp mini-asterisk-gui2/*.png /www/gui2 +cp mini-asterisk-gui2/*.css /www/gui2 + + +# copy cgi to /www/cgi-bin +cp mini-asterisk-gui2/cgi-bin/*.* /www/cgi-bin + + +# check packages installed + +ipkg install fping + +# check extension.conf 60xx lines have mini_ext tags + + +# check cgi support in lighttpd + +#Uncomment cgi support in /etc/lighttpd.conf +#Restart lighttpd +echo "" +echo "Point your browser at 192.168.1.30/gui2/phones.html" + + + diff --git a/mini-asterisk-gui2/phones.js b/mini-asterisk-gui2/phones.js index 628faf5d..cc2486f7 100644 --- a/mini-asterisk-gui2/phones.js +++ b/mini-asterisk-gui2/phones.js @@ -81,6 +81,8 @@ function initialisePage() { html += "" + j + "" + "" + "IP Phone" + ""; html += "" + ip_ext[j] + ""; + html += "" + '' + ""; + // the reception checkbox code html += "" + '' + ""; html += ""; } }