From: horse69 Date: Sat, 27 Oct 2012 23:17:36 +0000 (+0000) Subject: git-svn-id: https://svn.code.sf.net/p/freetel/code@840 01035d8c-6547-0410-b346-abe4f9... X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=e41003e43e441904f7d920b4236f2a3e1858bf1f;p=freetel-svn-tracking.git git-svn-id: https://svn.code.sf.net/p/freetel/code@840 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/mini-asterisk-gui2/voiplines.html b/mini-asterisk-gui2/voiplines.html index feefb14e..5c02d0ff 100644 --- a/mini-asterisk-gui2/voiplines.html +++ b/mini-asterisk-gui2/voiplines.html @@ -44,7 +44,7 @@ Password: Host: Voip Line Status:
-
+
  Sometimes it takes a few seconds to connect your Voip Line. After clicking OK refresh diff --git a/mini-asterisk-gui2/voiplines.js b/mini-asterisk-gui2/voiplines.js index ad15c449..bc9f96c3 100644 --- a/mini-asterisk-gui2/voiplines.js +++ b/mini-asterisk-gui2/voiplines.js @@ -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 }