git-svn-id: https://svn.code.sf.net/p/freetel/code@840 01035d8c-6547-0410-b346-abe4f9...
authorhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Sat, 27 Oct 2012 23:17:36 +0000 (23:17 +0000)
committerhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Sat, 27 Oct 2012 23:17:36 +0000 (23:17 +0000)
mini-asterisk-gui2/voiplines.html
mini-asterisk-gui2/voiplines.js

index feefb14e2e835de4ceea9bc697fa66417615bc2e..5c02d0ffcc41bbadb27d791f6e429bf382756b6e 100644 (file)
@@ -44,7 +44,7 @@
       <tr id="tt_pass"><td >Password:</td><td><input type="password" name="pass" id="pass" value=""/></td></tr>
       <tr id="tt_host"><td >Host:</td><td><input type="text" name="host" id="host" value=""/></td></tr>
          <tr><td colspan="2">Voip Line Status:</td><td> </td><td><div id="voiplinestatus"></div></td></tr>
-      <tr><td colspan="2"><div id=VoipLineDesc></div> </td></tr>
+      <tr><td colspan="2"><div id=info></div> </td></tr>
       <tr><td>&nbsp;</td></tr>
       <tr><td colspan="2">Sometimes it takes a few seconds to connect
                           your Voip Line.  After clicking OK refresh
index ad15c449ef6c32c9c8fbbd00b539aef3b86d9a03..bc9f96c352e9c8b9ad8ba73392f7c91dcd0c2a51 100644 (file)
@@ -57,6 +57,10 @@ function changeProvider() {
 
        if (selection == "none" ) {
                // clear fields
+               document.getElementById('user').value = "";
+               document.getElementById('host').value = "";
+               document.getElementById('pass').value = "";
+               document.getElementById('info').value = "No provider selected";
        } else if (selection == "SIPNAT" ) {
                // fill sipnat
                document.getElementById('user').value = "sipnat";
@@ -64,8 +68,14 @@ function changeProvider() {
                document.getElementById('pass').value = "xxxxxx";
        } else if (selection == "SIP" ) {
            // fill sip
+               document.getElementById('user').value = "sip";
+               document.getElementById('host').value = "siphost";
+               document.getElementById('pass').value = "xxxxxx";               
        } else if (selection == "JAZMIN" ) {
                // fill jazmin
+               document.getElementById('user').value = "jazmin";
+               document.getElementById('host').value = "jazminhost";
+               document.getElementById('pass').value = "xxxxxx";               
        } else {
                // something weird happened
        }