Skip to main content
Question

Random Errors Rejecting and Dropping Call Sessions

  • March 13, 2025
  • 1 reply
  • 4 views

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.

1 reply

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2310 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.


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