From: drowe67 Date: Thu, 14 Jan 2010 23:27:55 +0000 (+0000) Subject: tooltips for voiplines screen X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=a82356da4e348c74bfa3e513753a8c8e2a6c9215;p=freetel-svn-tracking.git tooltips for voiplines screen git-svn-id: https://svn.code.sf.net/p/freetel/code@114 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/easy-asterisk-gui/voiplines.pl b/easy-asterisk-gui/voiplines.pl index 6f4f2c31..240e7f6b 100755 --- a/easy-asterisk-gui/voiplines.pl +++ b/easy-asterisk-gui/voiplines.pl @@ -71,9 +71,9 @@ my %voip = (); # SIP trunks status keyed on sip.conf stanza names open SIP, "sipshowpeers.txt"; while () { - if (/^(voip[0-9]*)[\s\/].*(OK)/) { + if (/^(\S*).*(OK)/) { $voip{$1} = $2; - #print "'$1' '$2' $voip{$1}\n"; + print "'$1' '$2' $voip{$1}\n"; $e = $1; if (/\s([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\s/) { $ipad{$e} = $1; @@ -120,15 +120,15 @@ foreach (@providers) { print "\n"; print "User:\n"; -print "Password:"; -print "Host:"; +print "Password:\n"; +print "Host:\n"; if ($voip{$stanza{$provider_current}} eq "OK") { - $icon = "\"VOIP"; + $icon = "\"OK\""; } else { - $icon = "\"VOIP"; + $icon = "\"Not"; } -print "Voip Line Status:$icon"; +print "Voip Line Status:$icon\n"; # hidden field to pass stanza with form