git-svn-id: https://svn.code.sf.net/p/freetel/code@680 01035d8c-6547-0410-b346-abe4f9...
authorhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Wed, 12 Sep 2012 22:07:57 +0000 (22:07 +0000)
committerhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Wed, 12 Sep 2012 22:07:57 +0000 (22:07 +0000)
mini-asterisk-gui2/install_gui2.sh [new file with mode: 0755]
mini-asterisk-gui2/phones.js

diff --git a/mini-asterisk-gui2/install_gui2.sh b/mini-asterisk-gui2/install_gui2.sh
new file mode 100755 (executable)
index 0000000..7bcbdd2
--- /dev/null
@@ -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"
+
+
+
index 628faf5dc08bb07fe09ac0ddf4b1277b75f317bc..cc2486f751f9c36cabfa6bf2ca249d9db730b543 100644 (file)
@@ -81,6 +81,8 @@ function initialisePage() {
            html += "<td>" + j + "</td>" + "<td>" + "IP Phone" + "</td>";
            html += "<td>" + ip_ext[j] + "</td>";
 
+            html += "<td>" + '<img src="tick.png" />' + "</td>";
+
             // the reception checkbox code
            html += "<td>" + '<input name="selected_in[]" type="checkbox" ' ;
                // Underscore used instead of forward slash to pass thru html request
@@ -100,7 +102,6 @@ function initialisePage() {
 
             html += "</td>";
 
-            html += "<td>" + '<img src="tick.png" />' + "</td>";
             html += "</tr>";
        }
     }