Skip to main content
PUT
/
siprec_connectors
/
{connector_name}
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const siprecConnector = await client.siprecConnectors.update('connector_name', {
  host: 'siprec.telnyx.com',
  name: 'my-siprec-connector',
  port: 5060,
});

console.log(siprecConnector.data);
{
  "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"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

connector_name
string
required

Uniquely identifies a SIPREC connector.

Body

application/json

The parameters required to create or update a SIPREC connector.

host
string
required

Hostname/IPv4 address of the SIPREC SRS.

Example:

"siprec.telnyx.com"

port
integer
required

Port for the SIPREC SRS.

Example:

5060

name
string
required

Name for the SIPREC connector resource.

Example:

"my-siprec-connector"

app_subdomain
string

Subdomain to route the call when using Telnyx SRS (optional for non-Telnyx SRS).

Example:

"my-app-domain"

Response

Return details of the SIPREC connector.

data
object
required