---
title: Categorized Overview
slug: voice-apis/AE2D-categorized-overview
docTags: 
createdAt: 2026-01-20T03:43:18.019Z
---

# Introduction

Leg Actions are executed on an active **call leg** to control **media**, **call state**, **routing**, **recording**, and **real-time integrations**.

Use this page to **quickly discover the right action** before diving into detailed API reference pages.

## A. Media & Interaction Actions

These actions control **what the participant hears, says, or inputs** during a call.

- **\<StartPlay>&#x20;**&#x50;lays an audio file from a URL to the leg.&#x20;
- **\<StopPlay>&#x20;**&#x53;tops an ongoing audio playback.&#x20;
- **\<Say>&#x20;**&#x43;onverts text to speech and plays it to the leg. Supports **Amazon Polly** and **Google TTS**.&#x20;
- **\<StopSay>&#x20;**&#x53;tops an ongoing text-to-speech playback.&#x20;
- **\<PlaySequence>&#x20;**&#x50;lays a sequence of media actions (e.g., Play → Say → Play) in order.&#x20;
- **\<Gather>&#x20;**&#x43;ollects DTMF digits (for IVR menus, PIN entry, confirmations).&#x20;
- **\<SendDigits>&#x20;**&#x50;lays DTMF tones *out* to the leg (used to interact with downstream IVRs).&#x20;

## B. Call State Control

These actions manage the **lifecycle and audio state** of a call leg.

- **\<Answer>&#x20;**&#x50;icks up an incoming leg.&#x20;
- **\<Hangup>&#x20;**&#x54;erminates the leg immediately.&#x20;
- **\<Mute> / \<UnMute>&#x20;**&#x4D;utes or unmutes audio on the leg. Supports direction control: in, out, or both.&#x20;
- **\<Hold> / \<UnHold>&#x20;**&#x50;laces the leg on hold and resumes it. Supports optional **Music on Hold (MOH)** using nested \<StartPlay>.&#x20;

## C. Connectivity & Routing

Advanced actions for **connecting legs, conferencing, and supervision**.

- **\<Dial>&#x20;**&#x43;reates a new outbound leg and bridges it to the current leg. Supports PSTN and VoIP destinations.&#x20;
- **\<JoinBridge>&#x20;**&#x4D;oves the leg into an existing multi-party bridge.&#x20;
- **\<LeaveBridge>&#x20;**&#x52;emoves the leg from a bridge.&#x20;
- **\<StartMonitoring>&#x20;**&#x41;llows a supervisor to **listen** or **whisper** on another leg
  &#x20;(rxAudio: muted / enabled).&#x20;
- **\<StopMonitoring>&#x20;**&#x53;tops an active monitoring session.&#x20;

## D. Recording Actions

These actions manage **call recordings** at the leg level.

- **\<StartRecording>&#x20;**&#x53;tarts recording audio on the leg. Supports multiple formats and storage options (S3 / HTTPS).&#x20;
- **\<StopRecording>&#x20;**&#x53;tops an active recording and finalizes the recording file.&#x20;

## E. Streaming & Real-Time Integrations

Used for **voice bots, real-time analytics, and AI processing**.

- **\<StartStream>&#x20;**&#x53;treams live audio from the leg to a WebSocket endpoint.Supports unidirectional and bidirectional streaming.&#x20;
- **\<StopStream>&#x20;**&#x53;tops an active audio stream.&#x20;

## F. Control & Event Routing

Actions that affect **control ownership and event delivery**.

- **\<Refer>&#x20;**&#x55;pdates the external **event delivery endpoint (gRPC)** for the leg.Used when control needs to be transferred between systems.&#x20;

## Quick Summary Table

| **Category**            | **Actions**                                                         |
| ----------------------- | ------------------------------------------------------------------- |
| Media & Interaction     | StartPlay, StopPlay, Say, StopSay, PlaySequence, Gather, SendDigits |
| Call State Control      | Answer, Hangup, Mute, UnMute, Hold, UnHold                          |
| Connectivity & Routing  | Dial, JoinBridge, LeaveBridge, StartMonitoring, StopMonitoring      |
| Recording               | StartRecording, StopRecording                                       |
| Streaming               | StartStream, StopStream                                             |
| Control & Event Routing | Refer                                                               |

