News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Not Getting Call Status after Sucessful subscribition
Tags: subscription
May 23, 2016 at 8:29am   •   3 replies  •  0 likes
zeeshan-yousaf

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 Answers
answered on May 26, 2016 at 2:13am  
on loading page this exception occurs
Network Error when attempting to fetch resource.Server cannot authorize user


 0
answered on May 26, 2016 at 1:53am  
how i do this in javascript.

 0
answered on May 23, 2016 at 11:00am  
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).

 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us