ovh / node-ovh

Node.js wrapper for the OVH APIs
http://ovh.github.io/node-ovh
Other
129 stars 27 forks source link

events api not working #33

Closed schmurfy closed 5 years ago

schmurfy commented 5 years ago

Hello, I wanted to test the events api to receive ringing events and others but I can't seem to receive anything, here is what I tried the following to create a new token:

var ovh = require('ovh')({
  endpoint: 'ovh-eu',
  appKey: 'XX',
  appSecret: 'XX',
  consumerKey: 'XX'
});

var params = {
  expiration: "1 day"
}
ovh.request('POST', '/telephony/XXX/service/XXX/eventToken', params, (err, token) => {
  console.log(err || token);
})

And then called https://events.voip.ovh.net/?token=<TOKEN> but when I call my ovh number (with an X-Lite registered on it) I receive nothing and the call eventually timeout.

Do I need to activate anything to use the events api ?

Thanks for any help

schmurfy commented 5 years ago

I tested again today and now it works... very reassuring...