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

index 99619ed88fab2543429fd791e71beadadcd527b2..73871a138c4f7310d32836eb6831821f8202dee9 100644 (file)
@@ -53,9 +53,20 @@ function changeProvider() {
 
 // fill the host and username fields based on selection
 
-var selection = document.getElementById('provider').value;
-
-
+       var selection = document.getElementById('provider').value;
+
+       if (selection == "none" ) {
+               // clear fields
+       } else if (selection == "SIPNAT" ) {
+               // fill sipnat
+       } else if (selection == "SIP" ) {
+           // fill sip
+       } else if (selection == "JAZMIN" ) {
+               // fill jazmin
+       } else {
+               // something weird happened
+       }
+       
 }