removed g729 from sip.conf for now, added tool tip for reception button on phones...
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Wed, 10 Feb 2010 08:51:45 +0000 (08:51 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Wed, 10 Feb 2010 08:51:45 +0000 (08:51 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@150 01035d8c-6547-0410-b346-abe4f91aad63

mini-asterisk-gui/README.txt
mini-asterisk-gui/cgi-bin/phones.pl
mini-asterisk-gui/cgi-bin/tooltips.html
mini-asterisk-gui/etc/asterisk/sip.conf

index f2df260a6ed0f7a1bf5f8dc3156a3f23d5387981..2593a17cbb01fca71cfa2e26cce611836fa592d2 100644 (file)
@@ -150,7 +150,7 @@ IP0X, which is upwards compatable to x86.
 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....
@@ -171,22 +171,37 @@ root~> ipkg install mini-asterisk
 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 ~ 
@@ -205,8 +220,8 @@ The .def copies are required by the "reset defaults" feature on the
 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.
@@ -214,13 +229,11 @@ 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:
index 6f874a8a783926001b423486a01ce40878ed6fa9..324b9195db2dc8328a1fbdcb142bd1247226cd5c 100644 (file)
@@ -179,7 +179,9 @@ foreach $s (sort keys %sip) {
 
 print '<tr><td>&nbsp;</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')\"";
 
index c2073ca60ad778dcf42133c69ba7ea67a2ed6978..56b4a462c06f324488e51ea7e3609cf96c04889d 100644 (file)
                          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>
index 02384e6807e26b98a790a0f9a062f2e994d14b38..733d1c817f0c1304ab53fd4a51adba77c468991d 100644 (file)
@@ -454,7 +454,7 @@ secret=6011
 canreinvite=no
 callerid=6011
 disallow=all
-allow=ulaw,g729
+allow=ulaw,alaw
 qualify=yes
 
 [6012]
@@ -465,7 +465,7 @@ secret=6012
 canreinvite=no
 callerid=6012
 disallow=all
-allow=ulaw,g729
+allow=ulaw,alaw
 qualify=yes
 
 [6013]
@@ -476,7 +476,7 @@ secret=6013
 canreinvite=no
 callerid=6013
 disallow=all
-allow=ulaw,g729
+allow=ulaw,alaw
 qualify=yes
 
 [6014]
@@ -487,7 +487,7 @@ secret=6014
 canreinvite=no
 callerid=6014
 disallow=all
-allow=ulaw,g729
+allow=ulaw,alaw
 qualify=yes
 
 [6015]
@@ -498,7 +498,7 @@ secret=6015
 canreinvite=no
 callerid=6015
 disallow=all
-allow=ulaw,g729
+allow=ulaw,alaw
 qualify=yes
 
 [6016]
@@ -509,7 +509,7 @@ secret=6016
 canreinvite=no
 callerid=6016
 disallow=all
-allow=ulaw,g729
+allow=ulaw,alaw
 qualify=yes
 
 [6017]
@@ -520,7 +520,7 @@ secret=6017
 canreinvite=no
 callerid=6017
 disallow=all
-allow=ulaw,g729
+allow=ulaw,alaw
 qualify=yes
 
 [6018]
@@ -531,7 +531,7 @@ secret=6018
 canreinvite=no
 callerid=6018
 disallow=all
-allow=ulaw,g729
+allow=ulaw,alaw
 qualify=yes
 
 [6019]
@@ -542,7 +542,7 @@ secret=6018
 canreinvite=no
 callerid=6018
 disallow=all
-allow=ulaw,g729
+allow=ulaw,alaw
 qualify=yes
 
 [6020]
@@ -553,7 +553,7 @@ secret=6018
 canreinvite=no
 callerid=6018
 disallow=all
-allow=ulaw,g729
+allow=ulaw,alaw
 qualify=yes
 
 [6021]
@@ -564,7 +564,7 @@ secret=6018
 canreinvite=no
 callerid=6018
 disallow=all
-allow=ulaw,g729
+allow=ulaw,alaw
 qualify=yes
 
 [6022]
@@ -575,7 +575,7 @@ secret=6018
 canreinvite=no
 callerid=6018
 disallow=all
-allow=ulaw,g729
+allow=ulaw,alaw
 qualify=yes
 
 ; Pre-configured mini-asterisk SIP trunks
@@ -589,7 +589,7 @@ qualify=yes
 ;host=192.168.1.28
 ;canreinvite=no
 ;disallow=all
-;allow=ulaw,g729
+;allow=ulaw,alaw
 ;qualify=yes
 ;nat=yes
 
@@ -602,7 +602,7 @@ qualify=yes
 ;host=192.168.1.28
 ;canreinvite=no
 ;disallow=all
-;allow=ulaw,g729
+;allow=ulaw,alaw
 ;qualify=yes
 
 ;[user] ; "OEG" mini-asterisk do not remove this comment
@@ -615,7 +615,7 @@ qualify=yes
 ;insecure=port,invite
 ;type=friend
 ;disallow=all
-;allow=g729,ulaw
+;allow=ulaw,alaw
 ;dtmfmod=rfc2833
 ;qualify=yes
 ;canreinvite=no