> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leamout.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Call control

> Answer, hang up, transfer, hold, play media, record, and send DTMF on durable calls.

Leamout controls calls by durable call ID.

```text theme={null}
POST /v1/calls/{id}/answer
POST /v1/calls/{id}/hangup
POST /v1/calls/{id}/transfer
POST /v1/calls/{id}/hold
POST /v1/calls/{id}/unhold
POST /v1/calls/{id}/play
POST /v1/calls/{id}/stop
POST /v1/calls/{id}/record
POST /v1/calls/{id}/dtmf
```

## Transfer

```json theme={null}
{
  "destination": "1001",
  "dialplan": "XML",
  "context": "default"
}
```

`dialplan` and `context` are optional.

## Play media

```json theme={null}
{
  "path": "/path/to/media.wav"
}
```

## Record

```json theme={null}
{
  "action": "start",
  "path": "/path/to/recording.wav"
}
```

## Send DTMF

```json theme={null}
{
  "digits": "1234#"
}
```

Call-control requests are checked against the call's current lifecycle state before Leamout executes the requested media action.
