Put a live call on hold
hold_callPlace one leg of a live call on hold to stop its current interactions; resume later with the unhold action and XML URL that takes over.
Instructions
Put one leg of a LIVE call on hold (emulated: the leg is transferred to a hosted flow that loops music_url, or plays silence for up to an hour), so whatever that leg was doing stops. Resume with unhold_call and the XML URL that should take over; Vobiz cannot return to the exact point before the hold. To send the leg somewhere else use transfer_call; to silence audio you started with play_audio use stop_audio instead. HTTP mode with VOBIZ_PUBLIC_URL only; a call that is not live fails with call_not_active. Requires confirm: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legs | No | Leg to park: aleg (the call's first leg, default), bleg (the party bridged by <Dial>) or both. Give the same value to unhold_call. | |
| confirm | Yes | Must be true, set only after the user explicitly asked to put this call on hold. If your client supports MCP elicitation, the server asks the user to approve directly and this flag is not relied on; otherwise it is your attestation that the user approved. | |
| call_uuid | Yes | UUID of the LIVE call to act on: the request_uuid returned by make_call, or a UUID from list_live_calls. | |
| music_url | No | https .mp3/.wav to loop while on hold. Silence if omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | True on success. On a failure the result is isError with ok: false plus `error` (kind), `message`, `retryable` and sometimes `http_status`. | |
| legs | No | The leg(s) the action was applied to (aleg when none was given). | |
| on_hold | No | True once Vobiz accepted the transfer into the hold flow. | |
| emulated | No | Always true: Vobiz has no native hold, so this is a transfer to a hosted hold flow. | |
| call_uuid | No | The call UUID the action was applied to, echoed from the request. | |
| http_status | No | HTTP status Vobiz answered with: 202 when an action was accepted, 204 when one was stopped. |