From 576d601cba6c3a9f85c3992aa60c68eb2b7a996a Mon Sep 17 00:00:00 2001 From: horse69 Date: Thu, 13 Sep 2012 00:12:37 +0000 Subject: [PATCH] git-svn-id: https://svn.code.sf.net/p/freetel/code@683 01035d8c-6547-0410-b346-abe4f91aad63 --- mini-asterisk-gui2/devel notes.txt | 6 ++++-- mini-asterisk-gui2/install notes.txt | 13 +++++++++---- mini-asterisk-gui2/install_gui2.sh | 8 ++++++-- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/mini-asterisk-gui2/devel notes.txt b/mini-asterisk-gui2/devel notes.txt index 8bebcc65..32ecf1e3 100644 --- a/mini-asterisk-gui2/devel notes.txt +++ b/mini-asterisk-gui2/devel notes.txt @@ -5,9 +5,10 @@ Sept 2012 IP04 Environment - ssh root@192.168.1.30 + telnet root@192.168.1.30 ipkg install dropbear (for ssh access to ip04) ipkg install fping + ssh root@192.168.1.30 url: 192.168.1.30 @@ -22,7 +23,7 @@ Packages lighttpd minimal webserver asterisk-1.4.11 when testing code around asterisk -r calls needs to be installed (we need access to the conf files) - but doesn't have to be running. + but doesn't have to be running unless testing sip stuff Source code @@ -47,6 +48,7 @@ Asterisk Install see x86 instructions at http://www.rowetel.com/blog/?page_id=455 IP04 runs 1.4.4-1 (2007) with zaptel-sport 1.4.3-2 on a 2.6.19-3 kernel (2006). + You can ipkg install asterisk-1.4.20 (2008) Asterisk 1.4.22 (2008) changed from using zaptel-sport to dahdi. diff --git a/mini-asterisk-gui2/install notes.txt b/mini-asterisk-gui2/install notes.txt index f13c95ff..c62a67d6 100644 --- a/mini-asterisk-gui2/install notes.txt +++ b/mini-asterisk-gui2/install notes.txt @@ -2,18 +2,23 @@ IP04 GUI2 Install notes Ian Roberts Sept 2012 +* I now have a script which automates this stuff +See install_gui2.sh + 0. ipkg install fping ipkg install dropbear ipkg install ntp -1. Uncomment cgi support in /etc/lighttpd.conf +1. Uncomment cgi support in /etc/lighttpd.conf and restart -2. Add "; mini_ext" tags to files +2. Add "; mini_ext" tags to 6000 numbers in /etc/asterisk/extensions.conf /etc/asterisk/extensions.conf.def -3. copy main files to /www/mini-asterisk-gui2 +3. copy main files to /www/gui2 + i want to leave the original gui intact while developing 4. copy cgi-bin scripts into /www/cgi-bin -5. point lighttpd at /www/mini-asterisk-gui2 + + point browser at 192.168.1.30/gui2/phones.html diff --git a/mini-asterisk-gui2/install_gui2.sh b/mini-asterisk-gui2/install_gui2.sh index 386811fb..1ffa742a 100755 --- a/mini-asterisk-gui2/install_gui2.sh +++ b/mini-asterisk-gui2/install_gui2.sh @@ -1,14 +1,15 @@ # Script to install GUI2 to IP04 +# (Original gui left intact) # Developement Edition # Ian Roberts # Sept 2012 # check we are on an IP0x box -echo "must be root directory on IP04" +echo "must be root directory on IP0x" echo "" -# remove old copy +# remove old copy if exists rm gui2.tar.gz @@ -34,6 +35,7 @@ tar zxvf gui2.tar.gz #create directories if required + mkdir /www/gui2 mkdir /www/cgi-bin @@ -46,6 +48,7 @@ cp mini-asterisk-gui2/*.css /www/gui2 # copy cgi to /www/cgi-bin + cp mini-asterisk-gui2/cgi-bin/*.* /www/cgi-bin @@ -56,6 +59,7 @@ ipkg install fping # check extension.conf 60xx lines have mini_ext tags +# check lighttpd installed # check cgi support in lighttpd #Uncomment cgi support in /etc/lighttpd.conf -- 2.25.1