git-svn-id: https://svn.code.sf.net/p/freetel/code@726 01035d8c-6547-0410-b346-abe4f9...
authorhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 18 Sep 2012 06:55:56 +0000 (06:55 +0000)
committerhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 18 Sep 2012 06:55:56 +0000 (06:55 +0000)
mini-asterisk-gui2/network.js

index 71c206e5547bcb3f562765a924541f9b13562810..0956538cbeb7cce53f299b411d3a20e0a033def1 100644 (file)
@@ -250,6 +250,17 @@ function dnsReturn(doc,status) {
 
        // finally restart network-static service with new parameters
 
-       downloadUrl("/cgi-bin/setservice.cgi?action=restartstatic",GenericReturn);
+       downloadUrl("/cgi-bin/setservice.cgi?action=restartstatic",restartstaticReturn);
+}
+
+function restartstaticReturn(doc,status) {
+    loadHtmlTextFile(doc, function(line) {
+           //parseSipShowPeers(line);
+       }
+       );
+
+       // finally reload the page (this updates the fping....crudely)
+
+       initialise();
 }