question

Vince avatar image
Vince asked ·

Call Forwarding API

Hello I have a question about the call forwarding API, my current setup is
Main Number (Mask Number) -> Forwards to Huntgroup (huntgroup contains 4 numbers)

I want to forward the Main Number to an external number through the API by replacing the first Forwarding Number to the external number I want to forward to but I am getting the following error when I try to remove or update that number:

RingCentral\SDK\Http\ApiException: Device number cannot be deleted from the forwarding number list

It works on my Sandbox mode, forwards correctly, but when I change it to the Production mode it gives me the error above.


Any suggestions would be appreciated, thanks!

call forwarding
5 comments
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Can you revise your question? I have no idea what you want to achieve, or what is the exact problem.

0 Likes 0 ·

I have 5 phone lines with Ringcentral. 1 line is a masked number where clients call in, this number gets transferred to my other 4 lines (whichever is not busy), I believe it's called the Call Queue Group.

I want to be able to transfer the masked line to an external number. I was able to achieve this in sandbox mode by deleting the forwarding number and creating a new one with these:

https://developers.ringcentral.com/api-reference/Call-Forwarding/deleteForwardingNumber
https://developers.ringcentral.com/api-reference/Call-Forwarding/createForwardingNumber

But once I tried it in Production, it gives me the error:

RingCentral\SDK\Http\ApiException: Device number cannot be deleted from the forwarding number list

I also tried to update the forwarding number (which currently points to the primary number of the 4 lines) but also fails.

0 Likes 0 ·

So pretty much,

Sandbox:
Masked Line -> Delete Forwarding Number (Success) -> Create Forwarding External Number (Success) -> Calls Being Forwarded

Production:
Masked Line -> Delete Forwarding Number (Fail)
Masked Line -> Update Forwarding Number (Fail)

0 Likes 0 ·

Can you print out the error messages? And also the app client id

0 Likes 0 ·
Show more comments

1 Answer

· Write an Answer
Phong Vu avatar image
Phong Vu answered ·

Sorry for the long delay. Got stuck at other tasks.

So the problem is that you can only use those APIs to manage (delete and update) forwarding numbers, NOT forwarding to other's phones (see attached image)

The behavior is the same for sandbox and production accounts.

I will update if and when I have a solution to this problem.


1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Work together.
From anywhere.

Team messaging, video meetings
and phone - all in one app.


Get the new RingCentral app