git-svn-id: https://svn.code.sf.net/p/freetel/code@852 01035d8c-6547-0410-b346-abe4f9...
authorhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Sun, 28 Oct 2012 07:10:52 +0000 (07:10 +0000)
committerhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Sun, 28 Oct 2012 07:10:52 +0000 (07:10 +0000)
mini-asterisk-gui2/voiplines.js

index 196fe952896fdf6353d10309b6dc66162ebf74d3..b405e938147874d6dabef020302675a091d23017 100644 (file)
@@ -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 = '<img src="tick.png" alt="Provider OK" />';
     var crossicon = '<img src="cross.png" alt="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.