From c1fc73dffc6407727f3dd260124560b8a962b1c2 Mon Sep 17 00:00:00 2001 From: drowe67 Date: Thu, 4 Feb 2010 23:31:07 +0000 Subject: [PATCH] added 'none' option to voip lines git-svn-id: https://svn.code.sf.net/p/freetel/code@142 01035d8c-6547-0410-b346-abe4f91aad63 --- mini-asterisk-gui/README.txt | 10 ++++++-- mini-asterisk-gui/cgi-bin/voiplines.pl | 3 +++ mini-asterisk-gui/cgi-bin/voiplines.sh | 7 ++++- mini-asterisk-gui/etc/asterisk/sip.conf | 34 +++++++++++++++++-------- 4 files changed, 40 insertions(+), 14 deletions(-) diff --git a/mini-asterisk-gui/README.txt b/mini-asterisk-gui/README.txt index 45665f6c..ec9e4e93 100644 --- a/mini-asterisk-gui/README.txt +++ b/mini-asterisk-gui/README.txt @@ -44,10 +44,13 @@ There are http://www.voip-info.org/wiki/view/Asterisk+GUI[a lot of Asterisk GUIs] out there already. So why do we need another one? Well I needed an Asterisk GUI that was very easy to use for the -link:ip04.html[IP0X] family. Something that would lower the -technical skill required to install and maintain an Asterisk Phone +link:ip04.html[IP0X] family. Something that would lower +the technical skill required to install and maintain an Asterisk Phone system. Something my wife and kids could use. +The IP0X can't run a LAMP stack very well so the GUI had to be light +weight. + I was also interested in exploring the ease-of-use meme, as we have been discussing it a lot on the http://villagetelco.org[Village Telco] project. Just how easy can we make Asterisk to use? So I scratched @@ -133,6 +136,9 @@ probably OK an on IP0X but not a good idea on an x86. I am not happy with this security model and would appreciate any suggestions on how to improve it. +Mini Asterisk uses HTML, CSS, Javascript, CGI, Shell scripting, and +Perl. + [[install]] Installation ------------ diff --git a/mini-asterisk-gui/cgi-bin/voiplines.pl b/mini-asterisk-gui/cgi-bin/voiplines.pl index c910fb63..68318edb 100644 --- a/mini-asterisk-gui/cgi-bin/voiplines.pl +++ b/mini-asterisk-gui/cgi-bin/voiplines.pl @@ -14,6 +14,9 @@ my %user = (); # user keyed on provider my %pass = (); # password keyed on provider my %host = (); # host name keyed on provider +my $provider_current = "none"; +push (@providers, "none"); + while () { # start of any stanza switches off parsing. It may get switched diff --git a/mini-asterisk-gui/cgi-bin/voiplines.sh b/mini-asterisk-gui/cgi-bin/voiplines.sh index c7240ed6..41039400 100644 --- a/mini-asterisk-gui/cgi-bin/voiplines.sh +++ b/mini-asterisk-gui/cgi-bin/voiplines.sh @@ -57,7 +57,12 @@ perl ./voiplines.pl cat <  - Refresh your browser to update Voip Line status + + Sometime it takes a few seconds to connect + your Voip Line. After clicking OK refresh + your browser to update Voip Line status. + +   diff --git a/mini-asterisk-gui/etc/asterisk/sip.conf b/mini-asterisk-gui/etc/asterisk/sip.conf index 82a98dea..94b565c3 100644 --- a/mini-asterisk-gui/etc/asterisk/sip.conf +++ b/mini-asterisk-gui/etc/asterisk/sip.conf @@ -536,18 +536,30 @@ qualify=yes ; Pre-configured mini-asterisk SIP trunks -[user] ; "Generic" mini-asterisk do not remove this comment -type=friend -context=default -username=user -secret=password -host=192.168.1.28 -canreinvite=no -disallow=all -allow=ulaw,g729 -qualify=yes +;[user] ; "SIP-NAT" mini-asterisk do not remove this comment +;type=friend +;context=default +;username=user +;secret=password +;host=192.168.1.28 +;canreinvite=no +;disallow=all +;allow=ulaw,g729 +;qualify=yes +;nat=yes + +;[user] ; "SIP" mini-asterisk do not remove this comment +;type=friend +;context=default +;username=user +;secret=password +;host=192.168.1.28 +;canreinvite=no +;disallow=all +;allow=ulaw,g729 +;qualify=yes -;[oeg] ; "OEG" mini-asterisk do not remove this comment +;[user] ; "OEG" mini-asterisk do not remove this comment ;host=voip.oeg.com.au ;secret=pass ;username=your user number -- 2.25.1