I am trying to create session using openTok Nodejs. I don't get any error but the session isn't created.
var OpenTok = require('opentok'),
opentok = new OpenTok(vc_config.ot_api_key, vc_config.ot_secret);
opentok.createSession({mediaMode:"routed"}, function(err, session) {
if (err) { return console.log(err); }
console.log(session);
this.session_id = session.sessionId;
});
thanks