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
Unable to answer incoming call in SandBox
Tags: rest api
Feb 18, 2021 at 11:33am   •   3 replies  •  0 likes
Paul Cookson

When I receive a incoming call Notification I attempt to answer the call but I recevive the following error:

{u'origin': {u'type': u'Call'}, u'eventTime': u'2021-02-18T19:23:42.528Z', u'sequence': 7, u'telephonySessionId': u's-dad3b26336bf45819c6f6aa3b3b3ae81', u'sessionId': u'24705630004', u'parties': [{u'status': {u'mobilePickupData': {u'srvLvl': u'118735933', u'to': u'#374004@sip.devtest.ringcentral.com:5060', u'ccMailboxes': [u'690648005'], u'srvLvlExt': u'502', u'sid': u'35209077718836'}, u'code': u'Proceeding', u'rcc': False}, u'direction': u'Inbound', u'extensionId': u'690648005', u'from': {u'phoneNumber': u'XXXXXXX'}, u'standAlone': False, u'muted': False, u'park': {}, u'to': {u'extensionId': u'690648005', u'phoneNumber': u'301', u'name': u'XXXXXX'}, u'missedCall': False, u'id': u'p-dad3b26336bf45819c6f6aa3b3b3ae81-3', u'accountId': u'XXXXXX'}], u'serverId': u'10.28.20.68.TAM'}
Answer Call: /restapi/v1.0/account/~/telephony/sessions/s-dad3b26336bf45819c6f6aa3b3b3ae81/parties/p-dad3b26336bf45819c6f6aa3b3b3ae81-3/answer
{
"errors" : [
{
"errorCode" : "CMN-102",
"message" : "Resource for parameter [deviceId] is not found"
}
]
}

I have received the deviceId from the extension number:
Extension Id: 690648005
{
"uri" : "https://platform.devtest.ringcentral.com/restapi/v1.0/account/690648005/extension/690648005/device?page=1&perPage=100",
"records" : [ {
"uri" : "https://platform.devtest.ringcentral.com/restapi/v1.0/account/690648005/device/801539097005",
"id" : "801539097005",
"type" : "SoftPhone",
"sku" : "DV-1",
"name" : "RingCentral Phone app",
"status" : "Offline",
"extension" : {
"uri" : "https://platform.devtest.ringcentral.com/restapi/v1.0/account/690648005/extension/690648005",
"id" : 690648005,
"extensionNumber" : "301"
},

I have added a Soft Phone to the account but even though I have logged in with the account credentials the Soft Phone still appears offline.

Please let me know how I can answer incoming calls for the main user account.

3 Answers
answered on Feb 23, 2021 at 7:48am  

Thank you for your help, I can now answer calls connected to the Ring Central Soft Phone App.


 1
answered on Feb 22, 2021 at 7:52pm  

Can you login your sandbox account, select the user and at the "Phones & Numbers" tab, select Phones and Edit. Then click the "Deauthorize this Computer". Do this for other users if you have ever login the same soft phone as other users. Finally, close the soft phone and re-login to see if the status is "Online". Then run your test again.


 0
answered on Feb 23, 2021 at 7:24am  

No the page just shows the Ring Cental App like this

screenshot-2021-02-23-user-phone-details-ringcentr.png

I have logged in mulitple times with my Python Script using the account credentials for this extension.



 0
on Feb 23, 2021 at 7:27am   •  0 likes

"I have logged in mulitple times with my Python Script using the account credentials for this extension."

=> NO, not login from your code. Login the RingCentral soft phone app. This app

screen-shot-2021-02-23-at-72818-am.png

on Feb 23, 2021 at 7:29am   •  0 likes

Where do I get a Ring Central Soft phone app that will login to the Sandbox Account, I assumed it was the Python Application I was developing.

on Feb 23, 2021 at 7:37am   •  -1 likes

Download it from here. Scroll down to the RC Phone Desktop and choose the right download link for your environment.

Run the app and before login, switch the mode to "Sandbox"

- On Windows: Ctrl + F2

- On Mac OS: Fn + Command + F2

Your Python app will be just a call controller which help you pick up a call programmatically.



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