v52

OpenAPI 3.1.0raw.githubusercontent.com2026-07-311,1941,9384.1 MB
Call Commands

SIPREC start

Start siprec session to configured in SIPREC connector SRS.

Expected Webhooks:

  • siprec.started
  • siprec.stopped
  • siprec.failed
post/calls/{call_control_id}/actions/siprec_start

Path parameters

call_control_idstring required

Unique identifier and token for controlling the call

Request body

client_statestring

Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.

connector_namestring

Name of configured SIPREC connector to be used.

include_metadata_custom_headerstrue | false

When set, custom parameters will be added as metadata (recording.session.ExtensionParameters). Otherwise, they’ll be added to sip headers.

securetrue | 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_secsinteger

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.

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.

Example request

{
  "client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d",
  "connector_name": "my-siprec-connector",
  "siprec_track": "both_tracks"
}

Response

Successful response upon making a call control command.

Example response

{
  "data": {
    "result": "ok"
  }
}