Create a new SIP trunk and register it with Bolna for inbound and outbound calling.
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
RTP directly between caller and callee. Keep false.
Symmetric RTP. Required for NAT.
Force responses to source port. Required for NAT.
ICE for media negotiation
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.
Whether RTP is routed directly between endpoints (typically false).
Enables symmetric RTP to handle NAT.
Forces responses to the source port to handle NAT.
Whether ICE is enabled for media negotiation.
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.