From: horse69 Date: Sat, 27 Oct 2012 23:05:35 +0000 (+0000) Subject: git-svn-id: https://svn.code.sf.net/p/freetel/code@838 01035d8c-6547-0410-b346-abe4f9... X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=7f8e524f7d7dfd44bfadcc362fdfcfa383fcb7b9;p=freetel-svn-tracking.git git-svn-id: https://svn.code.sf.net/p/freetel/code@838 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/mini-asterisk-gui2/voiplines.js b/mini-asterisk-gui2/voiplines.js index 99619ed8..73871a13 100644 --- a/mini-asterisk-gui2/voiplines.js +++ b/mini-asterisk-gui2/voiplines.js @@ -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 + } + }