Release call
On your own Plivo account only: the agent leaves a live call and the phone line stays up, so you can hand the caller to a person with Plivo. The agent stops speaking and listening, recording and transcription stop, and billing ends at that moment. The call ends completed with ended_reason: released, and its webhooks and post-call analysis arrive as for any completed call.
Mirai never hangs up the line: Plivo runs what comes next on the call. Start your Plivo Transfer first (POST /Call/{call_uuid}/ with aleg_url), then release. With no transfer waiting, Plivo runs Mirai’s answer to its end, which hangs up. Stopping Mirai’s audio stream yourself with Plivo (DELETE /Call/{call_uuid}/Stream/) releases the call the same way.
Every other call (Mirai numbers, SIP trunks, web calls) is a 400 release_unsupported: use Abort call or a live takeover there. Asked again for a released call, it answers the same 202.