Loading...
Loading...
Configure SIP trunking connections and outbound voice profiles. Use when connecting PBX systems or managing SIP infrastructure. This skill provides Go SDK examples.
npx skill4agent add team-telnyx/skills telnyx-sip-gogo get github.com/team-telnyx/telnyx-goimport (
"context"
"fmt"
"os"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
client := telnyx.NewClient(
option.WithAPIKey(os.Getenv("TELNYX_API_KEY")),
)clientimport "errors"
result, err := client.Messages.Send(ctx, params)
if err != nil {
var apiErr *telnyx.Error
if errors.As(err, &apiErr) {
switch apiErr.StatusCode {
case 422:
fmt.Println("Validation error — check required fields and formats")
case 429:
// Rate limited — wait and retry with exponential backoff
fmt.Println("Rate limited, retrying...")
default:
fmt.Printf("API error %d: %s\n", apiErr.StatusCode, apiErr.Error())
}
} else {
fmt.Println("Network error — check connectivity and retry")
}
}401403404422429ListAutoPaging()iter := client.Resource.ListAutoPaging(ctx, params); for iter.Next() { item := iter.Current() }GET /access_ip_ranges page, err := client.AccessIPRanges.List(context.Background(), telnyx.AccessIPRangeListParams{})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", page)cidr_blockcreated_atdescriptionidstatusupdated_atuser_idPOST /access_ip_rangescidr_blockdescription accessIPRange, err := client.AccessIPRanges.New(context.Background(), telnyx.AccessIPRangeNewParams{
CidrBlock: "203.0.113.0/24",
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", accessIPRange.ID)cidr_blockcreated_atdescriptionidstatusupdated_atuser_idDELETE /access_ip_ranges/{access_ip_range_id} accessIPRange, err := client.AccessIPRanges.Delete(context.Background(), "access_ip_range_id")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", accessIPRange.ID)cidr_blockcreated_atdescriptionidstatusupdated_atuser_idGET /connections page, err := client.Connections.List(context.Background(), telnyx.ConnectionListParams{})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", page)activeanchorsite_overrideconnection_namecreated_atidoutbound_voice_profile_idrecord_typetagsupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlGET /connections/{id} connection, err := client.Connections.Get(context.Background(), "id")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", connection.Data)activeanchorsite_overrideconnection_namecreated_atidoutbound_voice_profile_idrecord_typetagsupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlGET /credential_connections page, err := client.CredentialConnections.List(context.Background(), telnyx.CredentialConnectionListParams{})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", page)activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidinboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrecord_typertcp_settingssip_uri_calling_preferencetagsupdated_atuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsPOST /credential_connectionsuser_namepasswordconnection_nameactiveanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediainboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundrtcp_settingssip_uri_calling_preferencetagswebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secs credentialConnection, err := client.CredentialConnections.New(context.Background(), telnyx.CredentialConnectionNewParams{
ConnectionName: "my name",
Password: "my123secure456password789",
UserName: "myusername123",
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", credentialConnection.Data)activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidinboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrecord_typertcp_settingssip_uri_calling_preferencetagsupdated_atuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsGET /credential_connections/{id} credentialConnection, err := client.CredentialConnections.Get(context.Background(), "id")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", credentialConnection.Data)activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidinboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrecord_typertcp_settingssip_uri_calling_preferencetagsupdated_atuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsPATCH /credential_connections/{id}activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namedefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediainboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrtcp_settingssip_uri_calling_preferencetagsuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secs credentialConnection, err := client.CredentialConnections.Update(
context.Background(),
"id",
telnyx.CredentialConnectionUpdateParams{},
)
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", credentialConnection.Data)activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidinboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrecord_typertcp_settingssip_uri_calling_preferencetagsupdated_atuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsDELETE /credential_connections/{id} credentialConnection, err := client.CredentialConnections.Delete(context.Background(), "id")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", credentialConnection.Data)activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidinboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrecord_typertcp_settingssip_uri_calling_preferencetagsupdated_atuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsregistration_statusregistration_status_updated_atPOST /credential_connections/{id}/actions/check_registration_status response, err := client.CredentialConnections.Actions.CheckRegistrationStatus(context.Background(), "id")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", response.Data)ip_addresslast_registrationportrecord_typesip_usernamestatustransportuser_agentGET /fqdn_connections page, err := client.FqdnConnections.List(context.Background(), telnyx.FqdnConnectionListParams{})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", page)activeadjust_dtmf_timestampanchorsite_overrideandroid_push_credential_idcall_cost_enabledcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidignore_dtmf_durationignore_mark_bitinboundios_push_credential_idjitter_buffermicrosoft_teams_sbcnoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrecord_typertcp_settingsrtp_pass_codecs_on_stream_changesend_normalized_timestampstagsthird_party_control_enabledtransport_protocoltxt_nametxt_ttltxt_valueupdated_atuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsPOST /fqdn_connectionsconnection_nameactiveanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediainboundios_push_credential_idjitter_buffermicrosoft_teams_sbcnoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundrtcp_settingstagstransport_protocolwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secs fqdnConnection, err := client.FqdnConnections.New(context.Background(), telnyx.FqdnConnectionNewParams{
ConnectionName: "my-resource",
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", fqdnConnection.Data)activeadjust_dtmf_timestampanchorsite_overrideandroid_push_credential_idcall_cost_enabledcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidignore_dtmf_durationignore_mark_bitinboundios_push_credential_idjitter_buffermicrosoft_teams_sbcnoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrecord_typertcp_settingsrtp_pass_codecs_on_stream_changesend_normalized_timestampstagsthird_party_control_enabledtransport_protocoltxt_nametxt_ttltxt_valueupdated_atuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsGET /fqdn_connections/{id} fqdnConnection, err := client.FqdnConnections.Get(context.Background(), "1293384261075731499")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", fqdnConnection.Data)activeadjust_dtmf_timestampanchorsite_overrideandroid_push_credential_idcall_cost_enabledcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidignore_dtmf_durationignore_mark_bitinboundios_push_credential_idjitter_buffermicrosoft_teams_sbcnoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrecord_typertcp_settingsrtp_pass_codecs_on_stream_changesend_normalized_timestampstagsthird_party_control_enabledtransport_protocoltxt_nametxt_ttltxt_valueupdated_atuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsPATCH /fqdn_connections/{id}activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namedefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediainboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundrtcp_settingstagstransport_protocolwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secs fqdnConnection, err := client.FqdnConnections.Update(
context.Background(),
"1293384261075731499",
telnyx.FqdnConnectionUpdateParams{},
)
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", fqdnConnection.Data)activeadjust_dtmf_timestampanchorsite_overrideandroid_push_credential_idcall_cost_enabledcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidignore_dtmf_durationignore_mark_bitinboundios_push_credential_idjitter_buffermicrosoft_teams_sbcnoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrecord_typertcp_settingsrtp_pass_codecs_on_stream_changesend_normalized_timestampstagsthird_party_control_enabledtransport_protocoltxt_nametxt_ttltxt_valueupdated_atuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsDELETE /fqdn_connections/{id} fqdnConnection, err := client.FqdnConnections.Delete(context.Background(), "1293384261075731499")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", fqdnConnection.Data)activeadjust_dtmf_timestampanchorsite_overrideandroid_push_credential_idcall_cost_enabledcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidignore_dtmf_durationignore_mark_bitinboundios_push_credential_idjitter_buffermicrosoft_teams_sbcnoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundpasswordrecord_typertcp_settingsrtp_pass_codecs_on_stream_changesend_normalized_timestampstagsthird_party_control_enabledtransport_protocoltxt_nametxt_ttltxt_valueupdated_atuser_namewebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsGET /fqdns page, err := client.Fqdns.List(context.Background(), telnyx.FqdnListParams{})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", page)connection_idcreated_atdns_record_typefqdnidportrecord_typeupdated_atPOST /fqdnsfqdndns_record_typeconnection_idport fqdn, err := client.Fqdns.New(context.Background(), telnyx.FqdnNewParams{
ConnectionID: "1516447646313612565",
DNSRecordType: "a",
Fqdn: "example.com",
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", fqdn.Data)connection_idcreated_atdns_record_typefqdnidportrecord_typeupdated_atGET /fqdns/{id} fqdn, err := client.Fqdns.Get(context.Background(), "1517907029795014409")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", fqdn.Data)connection_idcreated_atdns_record_typefqdnidportrecord_typeupdated_atPATCH /fqdns/{id}connection_iddns_record_typefqdnport fqdn, err := client.Fqdns.Update(
context.Background(),
"1517907029795014409",
telnyx.FqdnUpdateParams{},
)
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", fqdn.Data)connection_idcreated_atdns_record_typefqdnidportrecord_typeupdated_atDELETE /fqdns/{id} fqdn, err := client.Fqdns.Delete(context.Background(), "1517907029795014409")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", fqdn.Data)connection_idcreated_atdns_record_typefqdnidportrecord_typeupdated_atGET /ip_connections page, err := client.IPConnections.List(context.Background(), telnyx.IPConnectionListParams{})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", page)activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidinboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundrecord_typertcp_settingstagstransport_protocolupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsPOST /ip_connectionsactiveanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namedefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediainboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundrtcp_settingstagstransport_protocolwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secs ipConnection, err := client.IPConnections.New(context.Background(), telnyx.IPConnectionNewParams{
ConnectionName: "my-ip-connection",
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", ipConnection.Data)activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidinboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundrecord_typertcp_settingstagstransport_protocolupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsGET /ip_connections/{id} ipConnection, err := client.IPConnections.Get(context.Background(), "id")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", ipConnection.Data)activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidinboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundrecord_typertcp_settingstagstransport_protocolupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsPATCH /ip_connections/{id}activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namedefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediainboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundrtcp_settingstagstransport_protocolwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secs ipConnection, err := client.IPConnections.Update(
context.Background(),
"id",
telnyx.IPConnectionUpdateParams{},
)
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", ipConnection.Data)activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidinboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundrecord_typertcp_settingstagstransport_protocolupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsDELETE /ip_connections/{id} ipConnection, err := client.IPConnections.Delete(context.Background(), "id")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", ipConnection.Data)activeanchorsite_overrideandroid_push_credential_idcall_cost_in_webhooksconnection_namecreated_atdefault_on_hold_comfort_noise_enableddtmf_typeencode_contact_header_enabledencrypted_mediaidinboundios_push_credential_idjitter_buffernoise_suppressionnoise_suppression_detailsonnet_t38_passthrough_enabledoutboundrecord_typertcp_settingstagstransport_protocolupdated_atwebhook_api_versionwebhook_event_failover_urlwebhook_event_urlwebhook_timeout_secsGET /ips page, err := client.IPs.List(context.Background(), telnyx.IPListParams{})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", page)connection_idcreated_atidip_addressportrecord_typeupdated_atPOST /ipsip_addressconnection_idport ip, err := client.IPs.New(context.Background(), telnyx.IPNewParams{
IPAddress: "192.168.0.0",
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", ip.Data)connection_idcreated_atidip_addressportrecord_typeupdated_atGET /ips/{id} ip, err := client.IPs.Get(context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", ip.Data)connection_idcreated_atidip_addressportrecord_typeupdated_atPATCH /ips/{id}ip_addressconnection_idport ip, err := client.IPs.Update(
context.Background(),
"6a09cdc3-8948-47f0-aa62-74ac943d6c58",
telnyx.IPUpdateParams{
IPAddress: "192.168.0.0",
},
)
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", ip.Data)connection_idcreated_atidip_addressportrecord_typeupdated_atDELETE /ips/{id} ip, err := client.IPs.Delete(context.Background(), "6a09cdc3-8948-47f0-aa62-74ac943d6c58")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", ip.Data)connection_idcreated_atidip_addressportrecord_typeupdated_atGET /outbound_voice_profiles page, err := client.OutboundVoiceProfiles.List(context.Background(), telnyx.OutboundVoiceProfileListParams{})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", page)billing_group_idcall_recordingcalling_windowconcurrent_call_limitconnections_countcreated_atdaily_spend_limitdaily_spend_limit_enabledenabledidmax_destination_ratenamerecord_typeservice_plantagstraffic_typeupdated_atusage_payment_methodwhitelisted_destinationsPOST /outbound_voice_profilesnamebilling_group_idcall_recordingcalling_windowconcurrent_call_limitdaily_spend_limitdaily_spend_limit_enabledenabledmax_destination_rateservice_plantagstraffic_typeusage_payment_methodwhitelisted_destinations outboundVoiceProfile, err := client.OutboundVoiceProfiles.New(context.Background(), telnyx.OutboundVoiceProfileNewParams{
Name: "office",
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", outboundVoiceProfile.Data)billing_group_idcall_recordingcalling_windowconcurrent_call_limitconnections_countcreated_atdaily_spend_limitdaily_spend_limit_enabledenabledidmax_destination_ratenamerecord_typeservice_plantagstraffic_typeupdated_atusage_payment_methodwhitelisted_destinationsGET /outbound_voice_profiles/{id} outboundVoiceProfile, err := client.OutboundVoiceProfiles.Get(context.Background(), "1293384261075731499")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", outboundVoiceProfile.Data)billing_group_idcall_recordingcalling_windowconcurrent_call_limitconnections_countcreated_atdaily_spend_limitdaily_spend_limit_enabledenabledidmax_destination_ratenamerecord_typeservice_plantagstraffic_typeupdated_atusage_payment_methodwhitelisted_destinationsPATCH /outbound_voice_profiles/{id}namebilling_group_idcall_recordingcalling_windowconcurrent_call_limitdaily_spend_limitdaily_spend_limit_enabledenabledmax_destination_rateservice_plantagstraffic_typeusage_payment_methodwhitelisted_destinations outboundVoiceProfile, err := client.OutboundVoiceProfiles.Update(
context.Background(),
"1293384261075731499",
telnyx.OutboundVoiceProfileUpdateParams{
Name: "office",
},
)
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", outboundVoiceProfile.Data)billing_group_idcall_recordingcalling_windowconcurrent_call_limitconnections_countcreated_atdaily_spend_limitdaily_spend_limit_enabledenabledidmax_destination_ratenamerecord_typeservice_plantagstraffic_typeupdated_atusage_payment_methodwhitelisted_destinationsDELETE /outbound_voice_profiles/{id} outboundVoiceProfile, err := client.OutboundVoiceProfiles.Delete(context.Background(), "1293384261075731499")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", outboundVoiceProfile.Data)billing_group_idcall_recordingcalling_windowconcurrent_call_limitconnections_countcreated_atdaily_spend_limitdaily_spend_limit_enabledenabledidmax_destination_ratenamerecord_typeservice_plantagstraffic_typeupdated_atusage_payment_methodwhitelisted_destinations