tooltips for voiplines screen
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 14 Jan 2010 23:27:55 +0000 (23:27 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 14 Jan 2010 23:27:55 +0000 (23:27 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@114 01035d8c-6547-0410-b346-abe4f91aad63

easy-asterisk-gui/voiplines.pl

index 6f4f2c312686883833044108f579339dec5f2ea0..240e7f6b6c030ee87f969df41820e762e76c1217 100755 (executable)
@@ -71,9 +71,9 @@ my %voip = (); # SIP trunks status keyed on sip.conf stanza names
 
 open SIP, "sipshowpeers.txt";
 while (<SIP>) { 
-    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 "</select></td></tr>\n";
 
 print "<tr $tt_user><td>User:</td><td><input type=\"text\" name=\"user\" id=\"user\" value=\"$user{$provider_current}\"></td></tr>\n";
-print "<tr $tt_pass><td>Password:</td><td><input type=\"password\" name=\"pass\" id=\"pass\" value=\"$pass{$provider_current}\"></td></tr>";
-print "<tr $tt_host><td>Host:</td><td><input type=\"text\" name=\"host\" id=\"host\" value=\"$host{$provider_current}\"></td></tr>";
+print "<tr $tt_pass><td>Password:</td><td><input type=\"password\" name=\"pass\" id=\"pass\" value=\"$pass{$provider_current}\"></td></tr>\n";
+print "<tr $tt_host><td>Host:</td><td><input type=\"text\" name=\"host\" id=\"host\" value=\"$host{$provider_current}\"></td></tr>\n";
 if ($voip{$stanza{$provider_current}} eq "OK") {
-    $icon = "<img src=\"tick.png\" alt=\"VOIP Line OK\" />";
+    $icon = "<img src=\"tick.png\" alt=\"OK\" />";
 }
 else {
-    $icon = "<img src=\"cross.png\" alt=\"VOIP Line OK\" />";
+    $icon = "<img src=\"cross.png\" alt=\"Not OK\" />";
 }
-print "<tr $tt_status><td>Voip Line Status:</td><td>$icon</td></tr>";
+print "<tr $tt_status><td>Voip Line Status:</td><td>$icon</td></tr>\n";
 
 # hidden field to pass stanza with form