Create a new SIP trunk on Bolna and register it with your gateway details. Set up your trunk for inbound and outbound voice calling.
Documentation Index
Fetch the complete documentation index at: https://www.bolna.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
SIP trunk configuration
Human-readable label. Must be unique per account.
"Zadarma Production"
SIP provider name (e.g. twilio, plivo, zadarma, telnyx, vonage, custom)
"zadarma"
Authentication method
userpass, ip-based "userpass"
At least one gateway is required
Optional description for internal reference
SIP username. Required when auth_type is userpass.
SIP password. Required when auth_type is userpass.
Required when auth_type is ip-based
Comma-separated codecs to allow
Comma-separated codecs to disallow
SIP transport protocol.
transport-udp, transport-tcp, transport-tls RTP directly between caller and callee. Keep false.
Symmetric RTP. Required for NAT.
Force responses to source port. Required for NAT.
RTP encryption. Use "sdes" for SRTP. Requires transport=transport-tls.
no, sdes When media_encryption=sdes, fall back to clear RTP if the carrier does not offer crypto in its SDP.
SIP OPTIONS ping interval in seconds. 0 to disable.
Set true to receive inbound calls on this trunk
Prepend + to outbound dialed numbers
Optional phone numbers to add at creation time
SIP trunk created successfully
SIP trunk object returned by the API.
Unique SIP trunk identifier.
Human-readable trunk name.
SIP provider name (e.g., twilio, plivo, zadarma, telnyx, vonage, custom).
Optional trunk description for internal reference.
Authentication method used for this trunk.
userpass, ip-based SIP username (present only for userpass trunks).
Ordered list of SIP gateways used for registration and call routing.
IP ranges associated with this trunk (used only for ip-based authentication).
Phone numbers (DIDs) registered on this trunk.
Comma-separated codecs to allow.
Comma-separated codecs to disallow.
SIP transport used by the trunk.
transport-udp, transport-tcp, transport-tls Whether RTP is routed directly between endpoints (typically false).
Enables symmetric RTP to handle NAT.
Forces responses to the source port to handle NAT.
RTP encryption mode. "no" for plain RTP, "sdes" for SRTP via SDES (TLS trunks only).
no, sdes When media_encryption=sdes, whether to fall back to clear RTP if the carrier does not offer crypto.
SIP OPTIONS ping interval in seconds.
Whether inbound calling is enabled.
Whether to prepend a leading + to outbound dialed numbers.
Whether the trunk is active.
ISO timestamp when the trunk was created.
ISO timestamp when the trunk was last updated.