Create Inbound Trunk#
You can create several type of inbound trunks: SIP, PSTN.
Request#
HTTP Method: POST
URI Path: /v3/voice_in_trunks
Body Parameters#
Name |
Type |
Nullable |
Is Required? |
Description |
|---|---|---|---|---|
type |
|
No |
Yes |
Trunks |
attributes |
|
No |
Yes |
Trunk configuration complex object. |
Data Attributes#
Name |
Type |
Nullable |
Is Required? |
Description |
|---|---|---|---|---|
priority |
|
No |
Yes |
The priority of this target host. |
weight |
|
No |
Yes |
A trunk selection mechanism. |
capacity_limit |
|
No |
No |
Maximum number of simultaneous calls for the trunk. |
ringing_timeout |
|
No |
No |
Ring time in seconds. Supported values are integers from 1 to 32. If |
name |
|
No |
Yes |
Friendly name of the trunk. |
external_reference_id |
|
Yes |
No |
Optional identifier for the inbound trunk in the customer’s external system. Maximum length is 100 characters. |
cli_format |
|
No |
No |
RAW - Do not alter CLI (default). |
cli_prefix |
|
No |
No |
You may prefix the CLI with an optional |
description |
|
No |
No |
Optional description of the trunk. |
configuration |
N/A |
Yes |
Trunk configuration complex object. |
Object Relationships#
Value |
Description |
|---|---|
voice_in_trunk_group |
|
pop |
Attributes Configuration#
Name |
Type |
Nullable |
Is Required? |
Description |
|---|---|---|---|---|
type |
|
No |
Yes |
SIP configuration complex object. |
attributes |
No |
Yes |
SIP configuration attributes object. |
Name |
Type |
Nullable |
Is Required? |
Description |
|---|---|---|---|---|
type |
|
No |
Yes |
PSTN configuration complex object. |
attributes |
No |
Yes |
PSTN configuration attributes object. |
Configuration Attributes#
Name |
Type |
Nullable |
Is Required? |
Description |
|---|---|---|---|---|
username |
|
No |
Yes |
User part of R-URI in INVITE request. |
host |
|
No |
Yes |
Host part of R-URI in INVITE request. |
port |
|
No |
No |
Port part of R-URI in INVITE request (is not mandatory). |
codec_ids |
|
No |
No |
|
rx_dtmf_format_id |
|
No |
No |
The method id for receiving DTMF signals from customers equipment. |
tx_dtmf_format_id |
|
No |
No |
The method of sending DTMF signals to the customer’s equipment. |
resolve_ruri |
|
No |
No |
Replace host part of the R-URI by resolved IP address. |
auth_enabled |
|
No |
No |
Enable authorization for the SIP server. |
auth_user |
|
No |
No |
Optional authorization user for the SIP server. |
auth_password |
|
No |
No |
Optional authorization password for the SIP server. |
auth_from_user |
|
No |
No |
Specify user in a from field instead of CallerID (overrides CallerID). |
auth_from_domain |
|
No |
No |
Sets default from domain in SIP messages. Some equipment may require specific From Domain. |
sst_enabled |
|
No |
No |
Enable SIP Session timers customization. |
sst_min_timer |
|
No |
No |
Minimal SIP Session timer value (Default 600 seconds). |
sst_max_timer |
|
No |
No |
Maximal SIP Session timer value (Default 900 seconds). |
sst_accept_501 |
|
No |
No |
Do not drop the call after receiving SIP 501 response for non-critical messages. |
sip_timer_b |
|
No |
No |
INVITE transaction timeout (Default 8000ms). |
dns_srv_failover_timer |
|
No |
No |
Invite transaction timeout for each of gateways with DNS SRV rerouting (Default 2000ms). |
rtp_ping |
|
No |
No |
Use RTP PING when connecting a call. |
rtp_timeout |
|
No |
No |
Disconnect the call if the RTP packets do not arrive within the specified time. |
force_symmetric_rtp |
|
No |
No |
Forced to work in Symmetric RTP / COMEDIA mode. |
symmetric_rtp_ignore_rtcp |
|
No |
No |
Avoid switching RTP session based on RTCP packet while working in Symmetric RTP / COMEDIA. |
rerouting_disconnect_code_ids |
|
No |
No |
|
sst_session_expires |
|
No |
No |
Session-Expires header value. Optional, should be in range with sst_min_timer and sst_max_timer. |
sst_refresh_method_id |
|
No |
No |
SIP method which will be used for session update. |
transport_protocol_id |
|
No |
No |
The transport layer that will be responsible for the actual transmission of SIP requests and responses: |
max_transfers |
|
No |
No |
Max count of the REFER requests. |
max_30x_redirects |
|
No |
No |
Max count of 301/302 redirects. |
media_encryption_mode |
|
No |
No |
Media encryption mode. |
stir_shaken_mode |
|
No |
No |
Stir/Shaken mode. |
allowed_rtp_ips |
Array of |
No |
No |
The allowed RTP IPs. Array from 0 to 10 items: IPv4 or IPv6, single or subnet. |
network_protocol_priority |
|
No |
No |
Network protocol priority for SIP routing. |
enabled_sip_registration |
|
No |
No |
Enables SIP registration for the trunk. |
use_did_in_ruri |
|
No |
No |
Uses the called DID in the R-URI. This attribute works only when |
diversion_relay_policy |
|
No |
No |
Controls how Diversion information is relayed. |
diversion_inject_mode |
|
No |
No |
Controls how Diversion information is injected. |
cnam_lookup |
|
No |
No |
Enables inbound CNAM lookup. |
Name |
Type |
Nullable |
Is Required? |
Description |
|---|---|---|---|---|
dst |
|
No |
Yes |
Phone number’s. |
Examples#
http
1POST /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]
6
7{
8 "data": {
9 "type": "voice_in_trunks",
10 "attributes": {
11 "priority": "1",
12 "weight": "2",
13 "capacity_limit": 10,
14 "ringing_timeout": 30,
15 "name": "Office",
16 "cli_format": "e164",
17 "cli_prefix": "+",
18 "description": "custom description",
19 "configuration": {
20 "type": "sip_configurations",
21 "attributes": {
22 "username": "username",
23 "host": "example.com",
24 "port": 5060,
25 "codec_ids": [
26 9,
27 7
28 ],
29 "rx_dtmf_format_id": 1,
30 "tx_dtmf_format_id": 1,
31 "resolve_ruri": "true",
32 "auth_enabled": true,
33 "auth_user": "username",
34 "auth_password": "password",
35 "auth_from_user": "Office",
36 "auth_from_domain": "example.com",
37 "sst_enabled": "false",
38 "sst_min_timer": 600,
39 "sst_max_timer": 900,
40 "sst_accept_501": "true",
41 "sip_timer_b": 8000,
42 "dns_srv_failover_timer": 2000,
43 "rtp_ping": "false",
44 "rtp_timeout": 30,
45 "force_symmetric_rtp": "false",
46 "symmetric_rtp_ignore_rtcp": "false",
47 "rerouting_disconnect_code_ids": [
48 58,
49 59
50 ],
51 "sst_session_expires": null,
52 "sst_refresh_method_id": 1,
53 "transport_protocol_id": 2,
54 "max_transfers": 0,
55 "max_30x_redirects": 0,
56 "media_encryption_mode": "disabled",
57 "stir_shaken_mode": "disabled",
58 "allowed_rtp_ips": null,
59 "network_protocol_priority": "prefer_ipv4",
60 "diversion_relay_policy": "sip",
61 "diversion_inject_mode": "did_number",
62 "cnam_lookup": true
63 }
64 }
65 }
66 }
67}
curl
1curl -i -X POST 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" --data-raw '{"data": {"attributes": {"capacity_limit": 10, "cli_format": "e164", "cli_prefix": "+", "configuration": {"attributes": {"allowed_rtp_ips": null, "auth_enabled": true, "auth_from_domain": "example.com", "auth_from_user": "Office", "auth_password": "password", "auth_user": "username", "cnam_lookup": true, "codec_ids": [9, 7], "diversion_inject_mode": "did_number", "diversion_relay_policy": "sip", "dns_srv_failover_timer": 2000, "force_symmetric_rtp": "false", "host": "example.com", "max_30x_redirects": 0, "max_transfers": 0, "media_encryption_mode": "disabled", "network_protocol_priority": "prefer_ipv4", "port": 5060, "rerouting_disconnect_code_ids": [58, 59], "resolve_ruri": "true", "rtp_ping": "false", "rtp_timeout": 30, "rx_dtmf_format_id": 1, "sip_timer_b": 8000, "sst_accept_501": "true", "sst_enabled": "false", "sst_max_timer": 900, "sst_min_timer": 600, "sst_refresh_method_id": 1, "sst_session_expires": null, "stir_shaken_mode": "disabled", "symmetric_rtp_ignore_rtcp": "false", "transport_protocol_id": 2, "tx_dtmf_format_id": 1, "username": "username"}, "type": "sip_configurations"}, "description": "custom description", "name": "Office", "priority": "1", "ringing_timeout": 30, "weight": "2"}, "type": "voice_in_trunks"}}'
response
1HTTP/1.1 201 Created
2Content-Type: application/vnd.api+json
3
4{
5 "data": {
6 "id": "f36d1d17-bd16-42b9-af42-0cfe166bf3ec",
7 "type": "voice_in_trunks",
8 "attributes": {
9 "priority": 1,
10 "capacity_limit": 10,
11 "weight": 2,
12 "name": "Office",
13 "cli_format": "e164",
14 "cli_prefix": "+",
15 "description": "custom description",
16 "ringing_timeout": 30,
17 "created_at": "2017-06-25T08:21:41.795Z",
18 "external_reference_id": null,
19 "configuration": {
20 "type": "sip_configurations",
21 "attributes": {
22 "username": "username",
23 "host": "example.com",
24 "port": 5060,
25 "codec_ids": [
26 9,
27 7
28 ],
29 "rx_dtmf_format_id": 1,
30 "tx_dtmf_format_id": 1,
31 "resolve_ruri": true,
32 "auth_enabled": true,
33 "auth_user": "username",
34 "auth_password": "password",
35 "auth_from_user": "Office",
36 "auth_from_domain": "example.com",
37 "sst_enabled": false,
38 "sst_min_timer": 600,
39 "sst_max_timer": 900,
40 "sst_accept_501": true,
41 "sip_timer_b": 8000,
42 "dns_srv_failover_timer": 2000,
43 "rtp_ping": false,
44 "rtp_timeout": 30,
45 "force_symmetric_rtp": false,
46 "symmetric_rtp_ignore_rtcp": false,
47 "rerouting_disconnect_code_ids": [
48 58,
49 59
50 ],
51 "sst_session_expires": null,
52 "sst_refresh_method_id": 1,
53 "transport_protocol_id": 2,
54 "max_transfers": 0,
55 "max_30x_redirects": 0,
56 "media_encryption_mode": "disabled",
57 "stir_shaken_mode": "disabled",
58 "allowed_rtp_ips": null,
59 "network_protocol_priority": "prefer_ipv4",
60 "diversion_relay_policy": "sip",
61 "diversion_inject_mode": "did_number",
62 "cnam_lookup": true
63 }
64 }
65 },
66 "relationships": {
67 "voice_in_trunk_group": {
68 "links": {
69 "self": "https://api.didww.com/v3/voice_in_trunks/f36d1d17-bd16-42b9-af42-0cfe166bf3ec/relationships/voice_in_trunk_group",
70 "related": "https://api.didww.com/v3/voice_in_trunks/f36d1d17-bd16-42b9-af42-0cfe166bf3ec/voice_in_trunk_group"
71 }
72 },
73 "pop": {
74 "links": {
75 "self": "https://api.didww.com/v3/voice_in_trunks/f36d1d17-bd16-42b9-af42-0cfe166bf3ec/relationships/pop",
76 "related": "https://api.didww.com/v3/voice_in_trunks/f36d1d17-bd16-42b9-af42-0cfe166bf3ec/pop"
77 }
78 }
79 }
80}
81}
When enabled_sip_registration is true, do not send host or port in the create request.
http
1POST /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]
6
7{
8 "data": {
9 "type": "voice_in_trunks",
10 "attributes": {
11 "priority": "1",
12 "weight": "2",
13 "name": "Office Registration",
14 "capacity_limit": 10,
15 "ringing_timeout": 30,
16 "cli_format": "e164",
17 "cli_prefix": "+",
18 "description": "custom description",
19 "configuration": {
20 "type": "sip_configurations",
21 "attributes": {
22 "username": "office-registration",
23 "codec_ids": [
24 9,
25 7
26 ],
27 "rx_dtmf_format_id": 1,
28 "tx_dtmf_format_id": 1,
29 "resolve_ruri": "false",
30 "auth_enabled": true,
31 "auth_user": "office-registration",
32 "auth_password": "password",
33 "auth_from_user": "OfficeRegistration",
34 "auth_from_domain": "example.com",
35 "sst_enabled": "false",
36 "sst_min_timer": 600,
37 "sst_max_timer": 900,
38 "sst_accept_501": "true",
39 "sip_timer_b": 8000,
40 "dns_srv_failover_timer": 2000,
41 "rtp_ping": "false",
42 "rtp_timeout": 30,
43 "force_symmetric_rtp": "false",
44 "symmetric_rtp_ignore_rtcp": "false",
45 "rerouting_disconnect_code_ids": [
46 58,
47 59
48 ],
49 "sst_session_expires": null,
50 "sst_refresh_method_id": 1,
51 "transport_protocol_id": 2,
52 "max_transfers": 0,
53 "max_30x_redirects": 0,
54 "media_encryption_mode": "disabled",
55 "stir_shaken_mode": "disabled",
56 "allowed_rtp_ips": null,
57 "network_protocol_priority": "prefer_ipv4",
58 "enabled_sip_registration": true,
59 "use_did_in_ruri": true,
60 "diversion_relay_policy": "sip",
61 "diversion_inject_mode": "did_number",
62 "cnam_lookup": true
63 }
64 }
65 }
66 }
67}
curl
1curl -i -X POST 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" --data-raw '{"data": {"attributes": {"capacity_limit": 10, "cli_format": "e164", "cli_prefix": "+", "configuration": {"attributes": {"allowed_rtp_ips": null, "auth_enabled": true, "auth_from_domain": "example.com", "auth_from_user": "OfficeRegistration", "auth_password": "password", "auth_user": "office-registration", "cnam_lookup": true, "codec_ids": [9, 7], "diversion_inject_mode": "did_number", "diversion_relay_policy": "sip", "dns_srv_failover_timer": 2000, "enabled_sip_registration": true, "force_symmetric_rtp": "false", "max_30x_redirects": 0, "max_transfers": 0, "media_encryption_mode": "disabled", "network_protocol_priority": "prefer_ipv4", "rerouting_disconnect_code_ids": [58, 59], "resolve_ruri": "false", "rtp_ping": "false", "rtp_timeout": 30, "rx_dtmf_format_id": 1, "sip_timer_b": 8000, "sst_accept_501": "true", "sst_enabled": "false", "sst_max_timer": 900, "sst_min_timer": 600, "sst_refresh_method_id": 1, "sst_session_expires": null, "stir_shaken_mode": "disabled", "symmetric_rtp_ignore_rtcp": "false", "transport_protocol_id": 2, "tx_dtmf_format_id": 1, "use_did_in_ruri": true, "username": "office-registration"}, "type": "sip_configurations"}, "description": "custom description", "name": "Office Registration", "priority": "1", "ringing_timeout": 30, "weight": "2"}, "type": "voice_in_trunks"}}'
response
1HTTP/1.1 201 Created
2Content-Type: application/vnd.api+json
3
4{
5 "data": {
6 "id": "5b59c2b0-2a3b-4a17-b8f9-d4df5e8ad2b1",
7 "type": "voice_in_trunks",
8 "attributes": {
9 "priority": 1,
10 "capacity_limit": 10,
11 "weight": 2,
12 "name": "Office Registration",
13 "cli_format": "e164",
14 "cli_prefix": "+",
15 "description": "custom description",
16 "ringing_timeout": 30,
17 "created_at": "2026-04-27T09:15:00.000Z",
18 "external_reference_id": null,
19 "configuration": {
20 "type": "sip_configurations",
21 "attributes": {
22 "username": "office-registration",
23 "host": null,
24 "port": null,
25 "codec_ids": [
26 9,
27 7
28 ],
29 "rx_dtmf_format_id": 1,
30 "tx_dtmf_format_id": 1,
31 "resolve_ruri": false,
32 "auth_enabled": true,
33 "auth_user": "office-registration",
34 "auth_password": "password",
35 "auth_from_user": "OfficeRegistration",
36 "auth_from_domain": "example.com",
37 "sst_enabled": false,
38 "sst_min_timer": 600,
39 "sst_max_timer": 900,
40 "sst_accept_501": true,
41 "sip_timer_b": 8000,
42 "dns_srv_failover_timer": 2000,
43 "rtp_ping": false,
44 "rtp_timeout": 30,
45 "force_symmetric_rtp": false,
46 "symmetric_rtp_ignore_rtcp": false,
47 "rerouting_disconnect_code_ids": [
48 58,
49 59
50 ],
51 "sst_session_expires": null,
52 "sst_refresh_method_id": 1,
53 "transport_protocol_id": 2,
54 "max_transfers": 0,
55 "max_30x_redirects": 0,
56 "media_encryption_mode": "disabled",
57 "stir_shaken_mode": "disabled",
58 "allowed_rtp_ips": null,
59 "network_protocol_priority": "prefer_ipv4",
60 "enabled_sip_registration": true,
61 "use_did_in_ruri": true,
62 "diversion_relay_policy": "sip",
63 "diversion_inject_mode": "did_number",
64 "cnam_lookup": true
65 }
66 }
67 },
68 "relationships": {
69 "voice_in_trunk_group": {
70 "links": {
71 "self": "https://api.didww.com/v3/voice_in_trunks/5b59c2b0-2a3b-4a17-b8f9-d4df5e8ad2b1/relationships/voice_in_trunk_group",
72 "related": "https://api.didww.com/v3/voice_in_trunks/5b59c2b0-2a3b-4a17-b8f9-d4df5e8ad2b1/voice_in_trunk_group"
73 }
74 },
75 "pop": {
76 "links": {
77 "self": "https://api.didww.com/v3/voice_in_trunks/5b59c2b0-2a3b-4a17-b8f9-d4df5e8ad2b1/relationships/pop",
78 "related": "https://api.didww.com/v3/voice_in_trunks/5b59c2b0-2a3b-4a17-b8f9-d4df5e8ad2b1/pop"
79 }
80 }
81 }
82 }
83}
http
1POST /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]
6
7{
8 "data": {
9 "type": "voice_in_trunks",
10 "attributes": {
11 "name": "Office Mobile",
12 "capacity_limit": 5,
13 "configuration": {
14 "type": "pstn_configurations",
15 "attributes": {
16 "dst": "1xxxxxxxxx"
17 }
18 }
19 }
20 }
21}
curl
1curl -i -X POST 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" --data-raw '{"data": {"attributes": {"capacity_limit": 5, "configuration": {"attributes": {"dst": "1xxxxxxxxx"}, "type": "pstn_configurations"}, "name": "Office Mobile"}, "type": "voice_in_trunks"}}'
response
1HTTP/1.1 201 Created
2Content-Type: application/vnd.api+json
3
4{
5 "data": {
6 "id": "28b360b9-0d35-4c94-bbfd-1c33a7680b34",
7 "type": "voice_in_trunks",
8 "attributes": {
9 "priority": 1,
10 "capacity_limit": 5,
11 "weight": 65535,
12 "name": "Office Mobile",
13 "cli_format": "e164",
14 "cli_prefix": null,
15 "description": null,
16 "ringing_timeout": null,
17 "created_at": "2017-06-25T08:21:41.795Z",
18 "external_reference_id": null,
19 "configuration": {
20 "type": "pstn_configurations",
21 "attributes": {
22 "dst": "1xxxxxxxxx"
23 }
24 }
25 },
26 "relationships": {
27 "voice_in_trunk_group": {
28 "links": {
29 "self": "https://api.didww.com/v3/voice_in_trunks/28b360b9-0d35-4c94-bbfd-1c33a7680b34/relationships/voice_in_trunk_group",
30 "related": "https://api.didww.com/v3/voice_in_trunks/28b360b9-0d35-4c94-bbfd-1c33a7680b34/voice_in_trunk_group"
31 }
32 },
33 "pop": {
34 "links": {
35 "self": "https://api.didww.com/v3/voice_in_trunks/28b360b9-0d35-4c94-bbfd-1c33a7680b34/relationships/pop",
36 "related": "https://api.didww.com/v3/voice_in_trunks/28b360b9-0d35-4c94-bbfd-1c33a7680b34/pop"
37 }
38 }
39 }
40 }
41}
http
1POST /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]
6
7{
8 "data": {
9 "type": "voice_in_trunks",
10 "attributes": {
11 "name": "Office SIP",
12 "capacity_limit": 18,
13 "cli_format": "e164",
14 "cli_prefix": "+1",
15 "configuration": {
16 "type": "sip_configurations",
17 "attributes": {
18 "username": "username",
19 "host": "example.com",
20 "codec_ids": [
21 9,
22 7
23 ],
24 "rx_dtmf_format_id": 1,
25 "tx_dtmf_format_id": 1,
26 "resolve_ruri": "true",
27 "auth_enabled": true,
28 "auth_user": "username",
29 "auth_password": "password",
30 "auth_from_user": "Office",
31 "auth_from_domain": "example.com",
32 "sst_enabled": "false",
33 "sst_min_timer": 600,
34 "sst_max_timer": 900,
35 "sst_refresh_method_id": 1,
36 "sst_accept_501": "true",
37 "sip_timer_b": 8000,
38 "dns_srv_failover_timer": 2000,
39 "rtp_ping": "false",
40 "rtp_timeout": 30,
41 "force_symmetric_rtp": "false",
42 "symmetric_rtp_ignore_rtcp": "false",
43 "rerouting_disconnect_code_ids": [
44 58,
45 59
46 ],
47 "port": 5060,
48 "transport_protocol_id": 2,
49 "max_transfers": 0,
50 "max_30x_redirects": 0,
51 "media_encryption_mode": "disabled",
52 "stir_shaken_mode": "disabled",
53 "allowed_rtp_ips": null
54 }
55 }
56 },
57 "relationships": {
58 "pop": {
59 "data": {
60 "type": "pops",
61 "id": "240416e4-aeb2-4ca5-9df2-f37f01e930cf"
62 }
63 }
64 }
65 }
66}
curl
1curl -i -X POST 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" --data-raw '{"data": {"attributes": {"capacity_limit": 18, "cli_format": "e164", "cli_prefix": "+1", "configuration": {"attributes": {"allowed_rtp_ips": null, "auth_enabled": true, "auth_from_domain": "example.com", "auth_from_user": "Office", "auth_password": "password", "auth_user": "username", "codec_ids": [9, 7], "dns_srv_failover_timer": 2000, "force_symmetric_rtp": "false", "host": "example.com", "max_30x_redirects": 0, "max_transfers": 0, "media_encryption_mode": "disabled", "port": 5060, "rerouting_disconnect_code_ids": [58, 59], "resolve_ruri": "true", "rtp_ping": "false", "rtp_timeout": 30, "rx_dtmf_format_id": 1, "sip_timer_b": 8000, "sst_accept_501": "true", "sst_enabled": "false", "sst_max_timer": 900, "sst_min_timer": 600, "sst_refresh_method_id": 1, "stir_shaken_mode": "disabled", "symmetric_rtp_ignore_rtcp": "false", "transport_protocol_id": 2, "tx_dtmf_format_id": 1, "username": "username"}, "type": "sip_configurations"}, "name": "Office SIP"}, "relationships": {"pop": {"data": {"id": "240416e4-aeb2-4ca5-9df2-f37f01e930cf", "type": "pops"}}}, "type": "voice_in_trunks"}}'
response
1HTTP/1.1 201 Created
2Content-Type: application/vnd.api+json
3
4{
5 "data": {
6 "id": "7adfab4e-83bc-45e2-84e6-60342a505713",
7 "type": "voice_in_trunks",
8 "attributes": {
9 "priority": 1,
10 "capacity_limit": 18,
11 "weight": 65535,
12 "name": "Office SIP",
13 "cli_format": "e164",
14 "cli_prefix": "+1",
15 "description": null,
16 "ringing_timeout": null,
17 "configuration": {
18 "type": "sip_configurations",
19 "attributes": {
20 "username": "username",
21 "host": "example.com",
22 "port": 5060,
23 "codec_ids": [
24 9,
25 7
26 ],
27 "rx_dtmf_format_id": 1,
28 "tx_dtmf_format_id": 1,
29 "resolve_ruri": true,
30 "auth_enabled": true,
31 "auth_user": "username",
32 "auth_password": "password",
33 "auth_from_user": "Office",
34 "auth_from_domain": "example.com",
35 "sst_enabled": false,
36 "sst_min_timer": 600,
37 "sst_max_timer": 900,
38 "sst_accept_501": true,
39 "sip_timer_b": 8000,
40 "dns_srv_failover_timer": 2000,
41 "rtp_ping": false,
42 "rtp_timeout": 30,
43 "force_symmetric_rtp": false,
44 "symmetric_rtp_ignore_rtcp": false,
45 "rerouting_disconnect_code_ids": [
46 58,
47 59
48 ],
49 "sst_session_expires": null,
50 "sst_refresh_method_id": 1,
51 "transport_protocol_id": 2,
52 "max_transfers": 0,
53 "max_30x_redirects": 0,
54 "media_encryption_mode": "disabled",
55 "stir_shaken_mode": "disabled",
56 "allowed_rtp_ips": null
57 }
58 }
59 },
60 "relationships": {
61 "voice_in_trunk_group": {
62 "links": {
63 "self": "https://api.didww.com/v3/voice_in_trunks/389deacb-5be5-46d7-8cbd-aba11f66d6c2/relationships/voice_in_trunk_group",
64 "related": "https://api.didww.com/v3/voice_in_trunks/389deacb-5be5-46d7-8cbd-aba11f66d6c2/voice_in_trunk_group"
65 }
66 },
67 "pop": {
68 "links": {
69 "self": "https://api.didww.com/v3/voice_in_trunks/389deacb-5be5-46d7-8cbd-aba11f66d6c2/relationships/pop",
70 "related": "https://api.didww.com/v3/voice_in_trunks/389deacb-5be5-46d7-8cbd-aba11f66d6c2/pop"
71 },
72 "data": {
73 "type": "pops",
74 "id": "240416e4-aeb2-4ca5-9df2-f37f01e930cf"
75 }
76 }
77 }
78 },
79 "included": [
80 {
81 "id": "240416e4-aeb2-4ca5-9df2-f37f01e930cf",
82 "type": "pops",
83 "links": {
84 "self": "https://api.didww.com/v3/pops/240416e4-aeb2-4ca5-9df2-f37f01e930cf"
85 },
86 "attributes": {
87 "name": "USA, NY"
88 }
89 }
90 ]
91}
Other Responses#
Code |
Success |
Description |
|---|---|---|
422 |
No |
|
401 |
No |