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
TAS-106 - Operation is not allowed
Tags: rest api, call handling, call logs, call forwarding, call recording
Nov 2, 2023 at 4:46am   •   2 replies  •  0 likes
sattar k


when we hit the answer call party API we are getting the error.

answer-call-party-response.png


we got this suggestion from your end but we didn't get the device id from the List Extension Devices API . As you mentioned in the comment that we can not detect the device ID for RC app. so how we gonna run the answer call API without device id when it is a required field.

1698925237259.png


Do we have any other option to get the static/dynamic device ID from RC app.

1 Answer
answered on Nov 2, 2023 at 7:14am  

Unfortunately, with the device id limitation, this API can be used mainly to answer incoming calls to a desk/hard phone only.

But if you want to try out with the RC app. here is a workaround solution.

Manually make an outbound call from your RC app to any phone number and answer the call. Then read the user active calls with the view=Detailed and parse the "from" object from the response to detect the device id. The device id will remain the same until you change your internet connection.

E.g. response

{
  uri: 'https://platform.ringcentral.com/restapi/v1.0/account/80964XXX/extension/6228832XXX/call-log/YILblmt5jMJPzUA?view=Detailed',
  id: 'YILblmt5jMJPzUA',
  sessionId: '1166748370016',
  startTime: '2023-11-02T14:03:54.000Z',
  duration: 104,
  durationMs: 104000,
  type: 'Voice',
  internalType: 'LongDistance',
  direction: 'Outbound',
  action: 'VoIP Call',
  result: 'Call connected',
  to: {
      ...
  },
  from: {
    name: 'Paco Vu',
    extensionNumber: '11119',
    device: {
      uri: 'https://platform.ringcentral.com/restapi/v1.0/account/80964xxx/device/802404970016',
      id: '802404970016'
    }
  },
...

 0
on Nov 2, 2023 at 10:06am   •  0 likes

In case of out bound in the user active call API (https://developers.ringcentral.com/api-reference/Call-Log/listExtensionActiveCalls) I am getting the device ID but not getting the party Id. So please suggest from which API we will get party id and device id both to answer the incoming call using answering call API (https://developers.ringcentral.com/api-reference/Call-Control/answerCallParty)



I am getting the error in response of answer call API.

1698944316052.png


Actually i need the answer call functionality for inbound calls.

on Nov 2, 2023 at 10:57am   •  0 likes

That workaround solution is just for grabbing the device id. You can hangup the call after that and save the device id somewhere for using with your test to answer incoming calls later.

on Nov 3, 2023 at 6:26am   •  0 likes

We are hitting the User Active Call API (https://developers.ringcentral.com/api-reference/Call-Log/listExtensionActiveCalls).

Case 1 :- In response we are getting the result : In Progress, so in this case which type of result should we get in response.

1699017933973.png


on Nov 3, 2023 at 6:44am   •  0 likes

That's fine. As long as you get the device id, you are good to terminate that call. You can use the device id until you change your internet connection or sometimes, logout and re-login the RC app.



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