Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
1146 Discussions

Error trying to get service's list of ROOMs from Node.js script in server side[v1.5]

Hi, I'm trying to create a simple Node.js script for determine how yours woogeenserver.js Node.js custom module can be used from server side for list the rooms of a particular service. In my attempt I have created a testServer.js file(in my home directory, i have copy the woogeenserver.js file in the same directory also) that have the following content:
//Start Code of file testServer.js var Woogeen = require('./woogeenserver.js'); Woogeen.API.init('54a1c29bb38b35ba58270227', '12843', ''); http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type':'text/plain'}); Woogeen.API.getRooms(function(rooms) { for(var i in rooms) { console.log('Room ', i, ':',; } }, function (err){ console.log('Error: ', err); }); res.write("Hello World"); res.end(); }).listen(1337, ''); console.log('Server running at'); //End Code
When I open the url in a navigator I get the following error message in the terminal where I run mi custom script via Node.js: Error: 503 For run my script I download the tar archive node-v0.10.26-linux-x64.tar.gz from Node.js web site and extract it in my home directory, then i execute the following command in the terminal where i'm running Node.js: $sudo node-v0.10.26-linux-x64/bin/node testServer.js Can you tell me what i'm doing wrong? I have already execute the Release-v1.5/bin/ for start the IntelCS MCU Server with sudo. I'm missing something? Must i need to copy the files woogeenconfig.js and woogeen.js that are in the Release-v1.5/sdk directory to my home directory also? For what are used the Node.js's modules in directory Release-v1.5/lib/node: amqp, aws-lib, express, mongojs, node-stat, request,, How is supposed to be used the addon.node binary?. The specified modules are in use by the IntelCS MCU Server?. I known these are a lot of questions, but I suppose that the right understanding of these matters is crucial for who are trying to use the woogeenserver.js functions from Node.js's script in server side. Thanks in advance and Regards for the great work in IntelCS WebRTC tegnologies.
0 Kudos
1 Reply

Hi Reynier,

Your testServer.js has been tested on our 1.5 release machine. Everything works fine here...

Could you send us more information regarding the log file of woogeen server and test server?

What's more, if you have other issues/concerns, please start new threads on the forum so that we can track them well.

Thanks a lot!

0 Kudos