From: horse69 Date: Sun, 28 Oct 2012 07:10:52 +0000 (+0000) Subject: git-svn-id: https://svn.code.sf.net/p/freetel/code@852 01035d8c-6547-0410-b346-abe4f9... X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=13b7537610f776f692b3ad10f3bc5e600326dbb9;p=freetel-svn-tracking.git git-svn-id: https://svn.code.sf.net/p/freetel/code@852 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/mini-asterisk-gui2/voiplines.js b/mini-asterisk-gui2/voiplines.js index 196fe952..b405e938 100644 --- a/mini-asterisk-gui2/voiplines.js +++ b/mini-asterisk-gui2/voiplines.js @@ -21,14 +21,24 @@ function initialise() { function initialisePage() { // + + // Check if provider is up + // asterisk sip show registry + downloadUrl("/cgi-bin/asterisk.cgi?cli=sip show registry",OnSipshowReturn); + +} + +function OnSiphowReturn(doc,status) { + loadHtmlTextFile(doc, function(line) { + //parseSipShowPeers(line); + } + ); + var tickicon = 'Provider OK'; var crossicon = 'No provider found'; var html = ''; var providerfound = 0; - - // Check if provider is up - // asterisk sip show registry - + // If a provider is registered, // get provider details from sip.conf // fill out form on page @@ -43,7 +53,6 @@ function initialisePage() { } - function onClickApply() { // All this stuff is synchronous. Must happen in order specified.