curl --request POST \
--url https://api.open.cx/phone/sip/outbound-trunks \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"host": "<string>",
"username": "<string>",
"password": "<string>",
"caller_number": "<string>",
"port": 32768,
"transport": "udp"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}Create an outbound SIP trunk with your SIP provider credentials. Assign it to agents so they can make outbound calls through your provider.
curl --request POST \
--url https://api.open.cx/phone/sip/outbound-trunks \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"host": "<string>",
"username": "<string>",
"password": "<string>",
"caller_number": "<string>",
"port": 32768,
"transport": "udp"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}Friendly name for the trunk
1SIP provider host address
1SIP authentication username
1SIP authentication password
1Caller ID phone number in E.164 format
1SIP port (default: 5060)
1 <= x <= 65535Transport protocol (default: udp)
udp, tcp, tls Default Response
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Friendly name
Creation timestamp
Last update timestamp
Was this page helpful?