question

Paul Cookson avatar image
Paul Cookson asked Paul Cookson answered

Unable to answer incoming call in SandBox

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.

phonesandbox
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Phong Vu avatar image
Phong Vu answered Phong Vu commented

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.

2 comments
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

When I log in to the Sandbox and go to the Phones, and Numbers tab, and select Phones, then edit on the RingCentral Phone app there is no Deauthorize this Computer button to click.

0 Likes 0 ·

Can you login your sandbox again and set the Emergency address. Then login the softphone one more time.

0 Likes 0 ·
Paul Cookson avatar image
Paul Cookson answered Phong Vu commented

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.



3 comments
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

"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

0 Likes 0 ·

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.

0 Likes 0 ·

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.

-1 Like -1 ·
Paul Cookson avatar image
Paul Cookson answered

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

1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys