Question

Unable to answer incoming call in SandBox

  • 18 February 2021
  • 4 replies
  • 813 views

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.


4 replies

Userlevel 1

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.

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.


Userlevel 1

"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

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

Reply