Detaching Asterisk from call from/to FreeSWITCH

Hi everyone.

I have two servers, one with Asterisk (22.7) and one with FreeSWITCH (1.10).

Asterisk registers on FreeSWITCH as extension 999.

I have implemented, on Asterisk, some kind of virtual assistant app that manages calls through ARI.

So a call comes inbound from RTG to FreeSWITCH and it is sent to FS extension 999, i.e. Asterisk. Let’s name this LegA.

Asterisk answers and does all its job; then decides to make an attendant transfer towards a FS extension (i.e. 111). Let’s name this LegB.

If the transfer is successful, I end up with two call legs between Asterisk and FS, LegA (FS->Asterisk) and LegB (Asterisk->FS).
I’d love Asterisk to detach from this “loop”. I suppose it should send a REFER with Replace to FS.
Is there any ARI to do that?

Thanks a lot in advance.

There is no such external attended transfer functionality.