Is it possible to use Asterisk version 13 to get call details and forward them via API?

I have a task: to make automatic forwarding of calls from clients to the manager. To do this, I need to get the caller’s number from Asterisk via ARI, and then pass to Asterisk the number to which the call should be forwarded. I will also need to get data from Asterisk if the manager did not answer the call and forward it to another number in this case.

Can I do all this on Asterisk version 13 or will I need an expensive upgrade to a more current version?

All versions of Asterisk are free of charge.

You will find it difficult to get support for something as old as Asterisk 13, as people will have forgotten exactly what it supports, and what its known limitations are.

ARI does exist in Asterisk 13.

I can’t see anything in the requirement that needs ARI. I’d say it should be done with AGI and dialplan, although even AGI might not be needed.

With the high level information provided I agree with @david551, though getting deeper into things may yield hurdles.