From: Seven Du Date: Tue, 30 Jul 2013 15:58:15 +0000 (+0800) Subject: allow debug event X-Git-Tag: v1.4.1~19^2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5454a95f5badb9b83b1faa993e93e319c49c928e;p=thirdparty%2Ffreeswitch.git allow debug event --- diff --git a/htdocs/portal/assets/js/fsportal.js b/htdocs/portal/assets/js/fsportal.js index ab99306846..cf9f87f1fe 100644 --- a/htdocs/portal/assets/js/fsportal.js +++ b/htdocs/portal/assets/js/fsportal.js @@ -715,10 +715,15 @@ App.usersController = Ember.ArrayController.create({ }); App.initialize(); - +var global_debug_event = false; function eventCallback(data) { console.log(data["Event-Name"]); + + if (global_debug_event) { + console.log(data); + } + if (data["Event-Name"] == "CHANNEL_CREATE") { var channel = { uuid: data["Unique-ID"], diff --git a/htdocs/portal/index.html b/htdocs/portal/index.html index d9a8d5ab51..c1e9d3cfe4 100644 --- a/htdocs/portal/index.html +++ b/htdocs/portal/index.html @@ -777,7 +777,6 @@ socket.onmessage =function(msg) { // console.log(msg.data); var data = JSON.parse(msg.data); - console.log(data["Event-Name"]); eventCallback(data); }