---
title: "SIPREC start"
method: POST
path: "/calls/{call_control_id}/actions/siprec_start"
tags: ["Call Commands"]
---

# SIPREC start

`POST /calls/{call_control_id}/actions/siprec_start`

Start siprec session to configured in SIPREC connector SRS. 

**Expected Webhooks:**

- `siprec.started`
- `siprec.stopped`
- `siprec.failed`

## Path parameters

- `call_control_id` string, required

## Request body

- StartSiprecRequest
  - `connector_name` string — Name of configured SIPREC connector to be used.
  - `sip_transport` 'udp' | 'tcp' | 'tls' — Specifies SIP transport protocol.
  - `siprec_track` 'inbound_track' | 'outbound_track' | 'both_tracks' — Specifies which track should be sent on siprec session.
  - `include_metadata_custom_headers` true | false — When set, custom parameters will be added as metadata (recording.session.ExtensionParameters). Otherwise, they’ll be added to sip headers.
  - `secure` true | false — Controls whether to encrypt media sent to your SRS using SRTP and TLS. When set you need to configure SRS port in your connector to 5061.
  - `session_timeout_secs` integer — Sets `Session-Expires` header to the INVITE. A reinvite is sent every half the value set. Usefull for session keep alive. Minimum value is 90, set to 0 to disable.
  - `client_state` string — Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.

## Response `200`

Successful response upon making a call control command.

- object
  - `data` CallControlCommandResult
    - `result` string

## Other responses

- `422` — Unprocessable entity. The request was well-formed but could not be processed due to semantic errors. This includes validation errors, invalid parameter values, call state errors, conference errors, queue errors, recording/transcription errors, and business logic violations.
- `default` — Unexpected error

---

[API](https://skmtc.net/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.net/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/revisions/8f5f4e537994/schema)
