Get Voice OUT Trunk

Description

Returns a single Voice Out trunk owned by the account.

Request

HTTP Method: GET

URI Path: /v3/voice_out_trunks/{id}

URI Query Parameters:

Name

Type

Is Required?

Description

id

string

Yes

Unique ID identifier of the Trunk.

includes

string

Optional

Inclusion.

Includes:

Value

Description

DID

DIDs

Examples

http

GET /v3/voice_out_trunks/457bf47d-446d-41cd-91c3-dfbda7bf0753 HTTP/1.1
Host: api.didww.com
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
Api-Key: [API token]

curl

curl -i https://api.didww.com/v3/voice_out_trunks/457bf47d-446d-41cd-91c3-dfbda7bf0753 -H 'Accept: application/vnd.api+json' -H 'Api-Key: [API token]' -H 'Content-Type: application/vnd.api+json'

response

HTTP/1.1 200 OK
Content-Type: application/vnd.api+json

{
  "data": {
    "id": "457bf47d-446d-41cd-91c3-dfbda7bf0753",
    "type": "voice_out_trunks",
    "attributes": {
      "allowed_sip_ips": [
        "0.0.0.0/0"
      ],
      "allowed_rtp_ips": [
        "0.0.0.0/0"
      ],
      "allow_any_did_as_cli": true,
      "status": "active",
      "on_cli_mismatch_action": "send_original_cli",
      "name": "Outbound trunk 1",
      "capacity_limit": 100,
      "username": "671******",
      "password": "3k0******",
      "created_at": "2022-05-10T18:59:28.875Z",
      "threshold_reached": false,
      "threshold_amount": "10000.0",
      "media_encryption_mode": "disabled",
      "default_dst_action": "allow_all",
      "dst_prefixes": [],
      "force_symmetric_rtp": false,
      "rtp_ping": false,
      "callback_url": null
    },
    "relationships": {
      "dids": {
        "links": {
          "self": "https://api.didww.com/v3/voice_out_trunks/457bf47d-446d-41cd-91c3-dfbda7bf0753/relationships/dids",
          "related": "https://api.didww.com/v3/voice_out_trunks/457bf47d-446d-41cd-91c3-dfbda7bf0753/dids"
        }
      }
    },
    "meta": {
      "spent_amount": "0.0"
    }
  },
  "meta": {
    "api_version": "2022-05-10"
  }
}

Other Responses

Code

Success

Description

404

No

Not Found

401

No

Unauthorized