Get Inbound Trunks#
Returns the collection of inbound Trunks.
Request#
HTTP Method: GET
URI Path: /v3/voice_in_trunks
Note
For all returned data attributes, see Inbound Trunk Object.
URI Query Parameters#
Name |
Type |
Is Required? |
Description |
|---|---|---|---|
filter[<filter_name>] |
|
No |
|
fields[voice_in_trunks] |
|
No |
|
sort |
|
No |
Filters#
Filter Name |
Type |
Allow Blank |
Allow Array |
Filters by: |
|---|---|---|---|---|
id |
|
No |
Yes |
Trunk |
name |
|
Yes |
Yes |
Trunk |
external_reference_id |
|
No |
No |
The |
configuration.type |
|
Yes |
Yes |
The type of configuration (SIP, PSTN, etc) |
Sorting#
Value |
Sorts by: |
|---|---|
name |
The |
priority |
The |
capacity_limit |
The |
weight |
The |
cli_format |
The |
cli_prefix |
The |
description |
The |
ringing_timeout |
The |
created_at |
The |
Object Relationships#
Value |
Description |
|---|---|
voice_in_trunk_group |
|
pop |
Example#
http
1GET /v3/voice_in_trunks HTTP/1.1
2Host: api.didww.com
3Content-Type: application/vnd.api+json
4Accept: application/vnd.api+json
5Api-Key: [API token]
curl
1curl -i -X GET https://api.didww.com/v3/voice_in_trunks -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json"
response
1HTTP/1.1 200 OK
2Content-Type: application/vnd.api+json
3
4{
5 "data": [
6 {
7 "id": "2d7f943f-07c4-4b27-8792-e85806368218",
8 "type": "voice_in_trunks",
9 "attributes": {
10 "priority": 1,
11 "capacity_limit": 10,
12 "weight": 2,
13 "name": "Office",
14 "cli_format": "e164",
15 "cli_prefix": "+",
16 "description": null,
17 "ringing_timeout": 30,
18 "created_at": "2017-06-25T08:21:41.795Z",
19 "external_reference_id": null,
20 "configuration": {
21 "type": "sip_configurations",
22 "attributes": {
23 "username": "username",
24 "host": "example.com",
25 "port": null,
26 "codec_ids": [
27 9,
28 7
29 ],
30 "rx_dtmf_format_id": 1,
31 "tx_dtmf_format_id": 1,
32 "resolve_ruri": true,
33 "auth_enabled": true,
34 "auth_user": "username",
35 "auth_password": "password",
36 "auth_from_user": "Office",
37 "auth_from_domain": "example.com",
38 "sst_enabled": false,
39 "sst_min_timer": 600,
40 "sst_max_timer": 900,
41 "sst_accept_501": true,
42 "sip_timer_b": 8000,
43 "dns_srv_failover_timer": 2000,
44 "rtp_ping": false,
45 "rtp_timeout": 30,
46 "force_symmetric_rtp": false,
47 "symmetric_rtp_ignore_rtcp": false,
48 "rerouting_disconnect_code_ids": [
49 58,
50 59,
51 1505
52 ],
53 "sst_session_expires": null,
54 "sst_refresh_method_id": 1,
55 "transport_protocol_id": 1,
56 "max_transfers": 5,
57 "max_30x_redirects": 7,
58 "media_encryption_mode": "disabled",
59 "stir_shaken_mode": "disabled",
60 "allowed_rtp_ips": null,
61 "network_protocol_priority": "any",
62 "enabled_sip_registration": true,
63 "use_did_in_ruri": true,
64 "diversion_relay_policy": "as_is",
65 "diversion_inject_mode": "did_number",
66 "cnam_lookup": true
67 }
68 }
69 },
70 "relationships": {
71 "voice_in_trunk_group": {
72 "links": {
73 "self": "https://api.didww.com/v3/voice_in_trunks/2d7f943f-07c4-4b27-8792-e85806368218/relationships/voice_in_trunk_group",
74 "related": "https://api.didww.com/v3/voice_in_trunks/2d7f943f-07c4-4b27-8792-e85806368218/voice_in_trunk_group"
75 }
76 }
77 }
78 },
79 {
80 "id": "34b95e8c-9b78-4e64-aea8-9e5764d8f16f",
81 "type": "voice_in_trunks",
82 "attributes": {
83 "priority": 1,
84 "capacity_limit": 5,
85 "weight": 65535,
86 "name": "Office Mobile",
87 "cli_format": "e164",
88 "cli_prefix": null,
89 "description": null,
90 "ringing_timeout": null,
91 "created_at": "2017-06-25T08:21:41.795Z",
92 "external_reference_id": null,
93 "configuration": {
94 "type": "pstn_configurations",
95 "attributes": {
96 "dst": "1xxxxxxxxx"
97 }
98 }
99 },
100 "relationships": {
101 "voice_in_trunk_group": {
102 "links": {
103 "self": "https://api.didww.com/v3/voice_in_trunks/34b95e8c-9b78-4e64-aea8-9e5764d8f16f/relationships/voice_in_trunk_group",
104 "related": "https://api.didww.com/v3/voice_in_trunks/34b95e8c-9b78-4e64-aea8-9e5764d8f16f/voice_in_trunk_group"
105 }
106 }
107 }
108 }
109 ],
110 "meta": {
111 "total_records": 2
112 },
113 "links": {
114 "first": "https://api.didww.com/v3/voice_in_trunks?page%5Bnumber%5D=1&page%5Bsize%5D=50",
115 "last": "https://api.didww.com/v3/voice_in_trunks?page%5Bnumber%5D=1&page%5Bsize%5D=50"
116 }
117}