diff --git a/htdocs/portal/assets/js/fsportal.js b/htdocs/portal/assets/js/fsportal.js index b2086652d1..a36a86c3ed 100644 --- a/htdocs/portal/assets/js/fsportal.js +++ b/htdocs/portal/assets/js/fsportal.js @@ -218,6 +218,12 @@ App.newUserRoute = Ember.Route.extend({ } }); +App.SofiaStatusRoute = Ember.Route.extend({ + setupController: function(controller) { + App.sofiaStatusController.load(); + } +}); + App.Router.map(function(){ this.route("calls"); this.route("channels"); @@ -241,6 +247,8 @@ App.Router.map(function(){ this.route("show"); this.route("users"); this.route("newUser"); + this.route("sofiaStatus"); + this.route("addGateway"); this.route("about", { path: "/about" }); }); @@ -778,6 +786,95 @@ App.UsersController = Ember.ObjectController.extend({ } }); +App.sofiaStatusController = Ember.ArrayController.create({ + content: [], + init: function(){ + }, + load: function() { + var me = this; + $.get("/xmlapi/sofia?xmlstatus", function(data){ + console.log(data); + var row_count = 0; + var aliases = data.getElementsByTagName("alias"); + var profiles = data.getElementsByTagName("profile"); + var gateways = data.getElementsByTagName("gateway"); + + me.content.clear(); + + for (var i=0; iCalls
  • Channels
  • Show
  • +
  • Sofia
  • About
  • @@ -640,6 +641,66 @@ + +