SIP trunks
Create a SIP trunk
Creates a SIP trunk for routing inbound and outbound calls. Returns the trunk with its generated access_token.
post/v1/trunks
Request body
Example request
{
"label": "My trunk",
"password": "4r=h;EaCB85QNtr2",
"host_request": {
"host": "127.0.0.1"
},
"callerid": "13132847320",
"allowed_ips": [
{
"ip": "127.0.0.1"
}
],
"didinfo_enabled": true,
"call_restrict": true,
"call_limit": 3600,
"cost_limit": true,
"max_call_cost": 0.18,
"max_channels": 2,
"rewrite_enabled": true,
"rewrite_prefix": "1",
"call_recording_enabled": true,
"transcription_enabled": true,
"transcription_threshold": 10,
"machine_detection_enabled": true,
"encrypted_media": true
}Response
Returns the created SIP trunk.
Example response
{
"id": 293,
"name": "67758",
"callerid": "12345678900",
"label": "My trunk",
"allowed_ips": [
{
"id": 6712,
"ip": "127.0.0.1"
}
],
"max_channels": 2,
"cost_limit": true,
"max_call_cost": "0.18",
"call_limit": 3600,
"didinfo_enabled": true,
"rewrite_enabled": true,
"rewrite_prefix": "1",
"call_recording_enabled": true,
"machine_detection_enabled": true,
"transcription_threshold": 10,
"created_at": "2023-05-16T17:13:25.000Z",
"host": "dynamic",
"multiple_numbers": true,
"encrypted_media": true,
"passthrough": true,
"access_token": "123easwqe321132"
}