import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const callControlApplication = await client.callControlApplications.delete('id');
console.log(callControlApplication.data);{
"data": {
"active": false,
"anchorsite_override": "\"Latency\"",
"application_name": "call-router",
"created_at": "2018-02-02T22:25:27.521Z",
"dtmf_type": "Inband",
"first_command_timeout": true,
"first_command_timeout_secs": 10,
"id": "1293384261075731499",
"inbound": {
"channel_limit": 10,
"shaken_stir_enabled": true,
"sip_subdomain": "example",
"sip_subdomain_receive_settings": "only_my_connections"
},
"outbound": {
"channel_limit": 10,
"outbound_voice_profile_id": "1293384261075731499"
},
"record_type": "call_control_application",
"updated_at": "2018-02-02T22:25:27.521Z",
"webhook_api_version": "1",
"webhook_event_failover_url": "https://failover.example.com",
"webhook_event_url": "https://example.com",
"webhook_timeout_secs": 25,
"call_cost_in_webhooks": false,
"redact_dtmf_debug_logging": true
}
}Deletes a call control application.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const callControlApplication = await client.callControlApplications.delete('id');
console.log(callControlApplication.data);{
"data": {
"active": false,
"anchorsite_override": "\"Latency\"",
"application_name": "call-router",
"created_at": "2018-02-02T22:25:27.521Z",
"dtmf_type": "Inband",
"first_command_timeout": true,
"first_command_timeout_secs": 10,
"id": "1293384261075731499",
"inbound": {
"channel_limit": 10,
"shaken_stir_enabled": true,
"sip_subdomain": "example",
"sip_subdomain_receive_settings": "only_my_connections"
},
"outbound": {
"channel_limit": 10,
"outbound_voice_profile_id": "1293384261075731499"
},
"record_type": "call_control_application",
"updated_at": "2018-02-02T22:25:27.521Z",
"webhook_api_version": "1",
"webhook_event_failover_url": "https://failover.example.com",
"webhook_event_url": "https://example.com",
"webhook_timeout_secs": 25,
"call_cost_in_webhooks": false,
"redact_dtmf_debug_logging": true
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Identifies the resource.
"1293384261075731499"
Successful response with details about a call control application.
Show child attributes
Specifies whether the connection can be used.
Latency directs Telnyx to route media through the site with the lowest round-trip time to the user's connection. Telnyx calculates this time using ICMP ping messages. This can be disabled by specifying a site to handle all media.
"Latency", "Chicago, IL", "Ashburn, VA", "San Jose, CA" "\"Amsterdam, Netherlands\""
A user-assigned name to help manage the application.
"call-router"
ISO 8601 formatted date of when the resource was created
"2018-02-02T22:25:27.521Z"
Sets the type of DTMF digits sent from Telnyx to this Connection. Note that DTMF digits sent to Telnyx will be accepted in all formats.
RFC 2833, Inband, SIP INFO "Inband"
Specifies whether calls to phone numbers associated with this connection should hangup after timing out.
true
Specifies how many seconds to wait before timing out a dial command.
10
Tags assigned to the Call Control Application.
"1293384261075731499"
Show child attributes
When set, this will limit the total number of inbound calls to phone numbers associated with this connection.
10
When enabled Telnyx will include Shaken/Stir data in the Webhook for new inbound calls.
false
Specifies a subdomain that can be used to receive Inbound calls to a Connection, in the same way a phone number is used, from a SIP endpoint. Example: the subdomain "example.sip.telnyx.com" can be called from any SIP endpoint by using the SIP URI "sip:@example.sip.telnyx.com" where the user part can be any alphanumeric value. Please note TLS encrypted calls are not allowed for subdomain calls.
"example"
This option can be enabled to receive calls from: "Anyone" (any SIP endpoint in the public Internet) or "Only my connections" (any connection assigned to the same Telnyx user).
only_my_connections, from_anyone "only_my_connections"
Show child attributes
call_control_application ISO 8601 formatted date of when the resource was last updated
"2018-02-02T22:25:27.521Z"
Determines which webhook format will be used, Telnyx API v1 or v2.
1, 2 "1"
The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as https.
"https://failover.example.com"
The URL where webhooks related to this connection will be sent. Must include a scheme, such as https.
"https://example.com"
0 <= x <= 3025
Specifies if call cost webhooks should be sent for this Call Control Application.
When enabled, DTMF digits entered by users will be redacted in debug logs to protect PII data entered through IVR interactions.
true
{
"active": false,
"anchorsite_override": "\"Latency\"",
"application_name": "call-router",
"created_at": "2018-02-02T22:25:27.521Z",
"dtmf_type": "Inband",
"first_command_timeout": true,
"first_command_timeout_secs": 10,
"id": "1293384261075731499",
"inbound": {
"channel_limit": 10,
"shaken_stir_enabled": true,
"sip_subdomain": "example",
"sip_subdomain_receive_settings": "only_my_connections"
},
"outbound": {
"channel_limit": 10,
"outbound_voice_profile_id": "1293384261075731499"
},
"record_type": "call_control_application",
"updated_at": "2018-02-02T22:25:27.521Z",
"webhook_api_version": "1",
"webhook_event_failover_url": "https://failover.example.com",
"webhook_event_url": "https://example.com",
"webhook_timeout_secs": 25,
"call_cost_in_webhooks": false,
"redact_dtmf_debug_logging": true
}Was this page helpful?