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
Attempt to forward a call in setup sate results in Forbidden "operation is not allowed"
Tags: webhooks, rest api, call forwarding
Jan 27, 2022 at 11:07am   •   2 replies  •  0 likes
Zachary Spath

I'm trying to forward a call out of a queue. The call forwarding application works in several ringCentral accounts except for the main customer it was built for.... it works in sandbox and production environments except one.

My app has the Call Control permission, the call state is still in Setup when the forward is sent with the proper payload of extensionNumber.

RingCentral returns operation not allowed / forbidden

Forbidden error happens when the call is in an Answered state but I can't find a reason for the failure.

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

response_headers={"server"=>"nginx", "date"=>"Wed, 26 Jan 2022 05:05:37 GMT", "content-type"=>"application/json", "content-length"=>"123", "connection"=>"close", "x-rate-limit-group"=>"light", "x-rate-limit-limit"=>"50", "x-rate-limit-remaining"=>"49", "x-rate-limit-window"=>"60", "routingkey"=>"SJC01P13", "rcrequestid"=>"99381BLAH6"} @status=403 @reason_phrase="Forbidden"


The one thing I see that stands out is that for this customer queues the calls quickly move from the Setup state to the Proceeding state. Even if we don't send the forward API message, the call still goes into a proceeding state. For some reason this only happens on one environment.


Any help at all would be greatly appreciated.

Zak

2 Answers
answered on Jan 28, 2022 at 10:12am  

Phong Vu! My call forwarder will never be the owner of the call, this is a server side automatic routing application with password authentication. The user I was using was had the Super Admin role, however... it was not the default Super Admin (with default extension 101). I have spent all week on this with a very frustrated customer, it's finally working. thank you!



 0
on Jan 28, 2022 at 11:06am   •  0 likes

Yes, the only extension that can control other user's call is the main super admin user (not just any super admin). Note that this is for now and can be changed stricter in the future.

on Mar 20, 2022 at 10:40pm   •  0 likes

Thanks Phong, Zachary. I had the same thing. The ForwardCall stopped working when I moved from Sandbox to Production. In the Sandbox I was the SuperAdminUser, but in the Production environment our Manager created and was using the account.


I've asked my Manager to create a JWT key for me, so I can set it to our Routing Server.

Yes, we do exactly the same as Zachary, it is a .net core service using WebHooks and Forwarding calls from specific queues.


Summary

We DEFINITELY need ForwardCall to work a server side application. Please don't remove it. We can live with additional permission assignment requirements in the Admin Console etc. But please don't remove it.


Thanks.

on Mar 21, 2022 at 7:53am   •  0 likes

As I wrote earlier, if it's a call queue, you can use the user name and password of the call queue manager to authenticate your server app, then use that access token to forward incoming calls. Using the main super admin is ok. But that is not an official way to handle call forwarding.

answered on Jan 28, 2022 at 9:06am  

There are 2 scenario to receive the Forbidden error.

1. A call is in a wrong stage (which is not in this case as you wrote)

2. A call forwarder is not the owner of the call. In your case, it is a call via a call queue, so the owner of the call is the call queue extension (the call queue manager).

So which user is authenticated in your app to forward that call?


 1



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