Skip to main content
Question

Random Errors Rejecting and Dropping Call Sessions


I’m building a service that receives call events via a RingCentral webhook subscription, checks all of the numbers against a fraud service we use, and rejects/drops the call if any participant is deemed suspicious.

So far, everything works fine with my cell phone, which I’ve rigged to always return suspicious, but during live testing, I get several errors like AGW-404 and TAS-106.

Attached is my log output, which includes details from the Webhook and responses when trying to drop/reject the call.

According to the call logs, the call listed in the attached log was accepted and lasted almost a minute before terminating normally.

3 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2312 replies
  • March 13, 2025

The /reject endpoint is a POST method, not DELETE

Wrong method

DELETE /v1.0/account/~/telephony/sessions/s-a78cc422b5db2z19590b054e4z385af420000/parties/p-a78cc422b5db2z19590b054e4z385af420000-2/reject

You can/should use the drop call session API for all call status (Setup | Proceeding | Answered)

E.g.

DELETE /v1.0/account/~/telephony/sessions/s-a78cc422b5db2z19590b054e4z385af420000

If you get the error “403 Forbidden”

"errors": [
    {
      "errorCode": "TAS-106",
      "message": "Operation is not allowed"
    }
  ]

It seems you try to drop a call which does not belong to the user who authenticated the app. Only the owner (the call party) of the call can control his calls.


  • Author
  • New Participant
  • 1 reply
  • March 14, 2025

Good catch.  I updated the reject to use POST and this resolved the AGW-404 error, but now I’m just getting TAS-106 errors.

How can I create a service that can terminate the calls of any extension?  Should I open a new topic for this question?


PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2312 replies
  • March 14, 2025
Jared Fowkes wrote:

Good catch.  I updated the reject to use POST and this resolved the AGW-404 error, but now I’m just getting TAS-106 errors.

How can I create a service that can terminate the calls of any extension?  Should I open a new topic for this question?

You can authenticate your app with the main super admin user (normally the user extension 101). Only that super admin can control calls of other users under the same account.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings