In outbound sip trunk creation how to set transpor...
# ask-ai
a
In outbound sip trunk creation how to set transport protocol to TCP?
t
Thanks for reaching out, giri. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
When you're setting up an outbound SIP trunk and want to use the TCP transport protocol, just include the
transport
parameter with the value for TCP in your
CreateSIPOutboundTrunk
request. The
transport
field uses the
SIPTransport
enum, where: •
SIP_TRANSPORT_TCP = 2
Here's a quick example of what the request body might look like:
Copy code
{
  "trunk": {
    "name": "My Outbound Trunk",
    "address": "sip.example.com",
    "numbers": [
      "+1234567890"
    ],
    "transport": 2
  }
}
This setup makes sure that your SIP INVITE messages for outbound calls go out using the TCP protocol. If you have any questions or want to tweak this further, just let me know! Sources: livekit/sip_test.go | SIP APIs | LiveKit Docs | SIP APIs | LiveKit Docs