I am using twilio flex, task router and twilio functions. I want to redirect the live call to the function I've created.
The Scenario is,
Thank you,
Twilio developer evangelist here.
This is not something I've done, but the first thing that comes to mind is to over-ride the button that ends the call on the agent side. Rather than having it just end the call, it could call out to a Function that redirects the caller to your function.
I don't have any more detail than that right now. I recommend you try something like this and ask a new question if you have specific questions about the code.