From 2d002c66f4a5683da26da0e06aeec08d4de5c82a Mon Sep 17 00:00:00 2001 From: drowe67 Date: Wed, 10 Feb 2010 08:51:45 +0000 Subject: [PATCH] removed g729 from sip.conf for now, added tool tip for reception button on phones screen git-svn-id: https://svn.code.sf.net/p/freetel/code@150 01035d8c-6547-0410-b346-abe4f91aad63 --- mini-asterisk-gui/README.txt | 43 ++++++++++++++++--------- mini-asterisk-gui/cgi-bin/phones.pl | 4 ++- mini-asterisk-gui/cgi-bin/tooltips.html | 25 +++++++------- mini-asterisk-gui/etc/asterisk/sip.conf | 30 ++++++++--------- 4 files changed, 60 insertions(+), 42 deletions(-) diff --git a/mini-asterisk-gui/README.txt b/mini-asterisk-gui/README.txt index f2df260a..2593a17c 100644 --- a/mini-asterisk-gui/README.txt +++ b/mini-asterisk-gui/README.txt @@ -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 <>. -. 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: diff --git a/mini-asterisk-gui/cgi-bin/phones.pl b/mini-asterisk-gui/cgi-bin/phones.pl index 6f874a8a..324b9195 100644 --- a/mini-asterisk-gui/cgi-bin/phones.pl +++ b/mini-asterisk-gui/cgi-bin/phones.pl @@ -179,7 +179,9 @@ foreach $s (sort keys %sip) { print ' '; print ""; -print "Add IP Phone"; + +$tooltip_update_reception = "onMouseOver=\"popUp(event,'phone_update_reception')\" onmouseout=\"popUp(event,'phone_update_reception')\""; +print "Add IP Phone"; $tool_tip = "onMouseOver=\"popUp(event,'phone_lines')\" onmouseout=\"popUp(event,'phone_lines')\""; diff --git a/mini-asterisk-gui/cgi-bin/tooltips.html b/mini-asterisk-gui/cgi-bin/tooltips.html index c2073ca6..56b4a462 100644 --- a/mini-asterisk-gui/cgi-bin/tooltips.html +++ b/mini-asterisk-gui/cgi-bin/tooltips.html @@ -17,18 +17,21 @@ ringing phone by dialling *8 on your phone - see FAQ for details. +
+ Press this button to lock in any changes you + have made to the Reception check-boxes above.
+
- Analog Phone: Normal telephone plugged into a port on your phone system. -
-
- IP Phone plugged into your network. -
-
- Analog Phone Line: Analog telephone line plugged into a port on your phone system. -
-
- VOIP Phone Line: Make and receive phone calls over the Internet. -
+ Analog Phone: Normal telephone plugged into a + port on your phone system.
IP Phone + plugged into your network.
Analog Phone + Line: Analog telephone line plugged into a + port on your phone system.
VOIP Phone + Line: Make and receive phone calls over the + Internet.
Important information about your Phone System.
diff --git a/mini-asterisk-gui/etc/asterisk/sip.conf b/mini-asterisk-gui/etc/asterisk/sip.conf index 02384e68..733d1c81 100644 --- a/mini-asterisk-gui/etc/asterisk/sip.conf +++ b/mini-asterisk-gui/etc/asterisk/sip.conf @@ -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 -- 2.25.1