Skip to main content
Question

Not Getting Call Status after Sucessful subscribition


var subscription = rcsdk.getSubscription();

subscription.on(subscription.events.notification, function(msg) {


console.log(msg.body.activeCalls[n].from);


// activeCalls is array

console.log(msg.body.activeCalls[n].to);

})

.register({


events: ['/account/~/extension/~/presence?detailedTelephonyState=true'],

})

.then(function(response) {


console.log('Success: Subscription is listening');

}).catch(function(e) {


alert('Subscription Error: ' + e.message);

});



Using This code for that



3 replies

Without seeing the complete code for this and how you've configured your Sandbox account I am unable to help isolate this problem any further on your specific issues.

So I created this sample application in Node.js which shows how to use the basics of the RingCentral Push Notifications.

https://github.com/bdeanindy/ringcentral-subscription-basics

Let me know if this helps (if you encounter issues with this code, please add issues in the Github issue tracker for this repository).

  • Author
  • Participating Frequently
  • 5 replies
  • May 26, 2016
how i do this in javascript.

  • Author
  • Participating Frequently
  • 5 replies
  • May 26, 2016
on loading page this exception occurs
Network Error when attempting to fetch resource.Server cannot authorize user


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings