Hey. Any idea why <go-server-sdk> is throwing this...
# ask-ai
b
Hey. Any idea why go-server-sdk is throwing this error: ../../../go/pkg/mod/github.com/livekit/server-sdk-go@v1.1.8/sipclient.go4921: s.sipClient.CreateSIPTrunk undefined (type livekit.SIP has no field or method CreateSIPTrunk)
t
Thanks for reaching out, Adeshina. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The error occurs because the
CreateSIPTrunk
method has been deprecated and removed from the LiveKit SIP protocol. Instead, you should use the newer methods that separate inbound and outbound functionality: • For inbound trunks: Use
CreateSIPInboundTrunk
to create trunks that accept incoming calls. • For outbound trunks: Use
CreateSIPOutboundTrunk
to create trunks for making outgoing calls. This change improves type safety and configuration clarity. Let me know if you need further assistance with implementing these methods! Sources: livekit/livekit_sip.twirp.go | sipclient.go | SIP APIs | LiveKit Docs