Skip to main content

Creates a siprec connector

POST 
/siprec_connectors

Saves a siprec connector configuration.

Request

Body

required

The params expected to create/update a SIPREC connector

    host stringrequired

    Hostname/IPv4 address of SIPREC SRS to be used

    port integerrequired

    Port for SIPREC SRS to be used

    name stringrequired

    Name for the siprec connector resource.

    app_subdomain string

    Sip subdomain to route the call when using Telnyx SRS. Not required if non-Telnyx SRS is used.

Responses

201: Return details of the SIPREC connector associated with the given name.

default: Unexpected error.

Request samples


curl -L 'https://api.telnyx.com/v2/siprec_connectors' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"host": "siprec.telnyx.com",
"port": 5060,
"name": "my-siprec-connector",
"app_subdomain": "my-app"
}'

Response samples


{
"data": {
"record_type": "siprec_connector",
"name": "siprec-connector",
"host": "siprec.telnyx.com",
"port": 5060,
"app_subdomain": "my-app-domain",
"created_at": "2024-01-23T18:10:02.574Z",
"updated_at": "2024-01-23T18:10:02.574Z"
}
}