From 2bc9a316b0988e89cd35ce9e5f5f6eef80b5ce78 Mon Sep 17 00:00:00 2001 From: Benjamin Pracht Date: Tue, 12 Nov 2024 12:43:23 -0800 Subject: [PATCH] Update protocol --- go.mod | 2 +- go.sum | 4 ++-- pkg/sip/types.go | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 4775c7d..c0c9951 100644 --- a/go.mod +++ b/go.mod @@ -13,7 +13,7 @@ require ( github.com/jfreymuth/oggvorbis v1.0.5 github.com/livekit/mageutil v0.0.0-20230125210925-54e8a70427c1 github.com/livekit/mediatransportutil v0.0.0-20240730083616-559fa5ece598 - github.com/livekit/protocol v1.27.1-0.20241028171043-ee0a12bd25a5 + github.com/livekit/protocol v1.27.2-0.20241112203928-f558b991de7c github.com/livekit/psrpc v0.6.1-0.20240924010758-9f0a4268a3b9 github.com/livekit/server-sdk-go/v2 v2.2.2-0.20241015094126-b8538ae5d67b github.com/mjibson/go-dsp v0.0.0-20180508042940-11479a337f12 diff --git a/go.sum b/go.sum index 4c585a4..9d3a350 100644 --- a/go.sum +++ b/go.sum @@ -118,8 +118,8 @@ github.com/livekit/mageutil v0.0.0-20230125210925-54e8a70427c1 h1:jm09419p0lqTkD github.com/livekit/mageutil v0.0.0-20230125210925-54e8a70427c1/go.mod h1:Rs3MhFwutWhGwmY1VQsygw28z5bWcnEYmS1OG9OxjOQ= github.com/livekit/mediatransportutil v0.0.0-20240730083616-559fa5ece598 h1:yLlkHk2feSLHstD9n4VKg7YEBR4rLODTI4WE8gNBEnQ= github.com/livekit/mediatransportutil v0.0.0-20240730083616-559fa5ece598/go.mod h1:jwKUCmObuiEDH0iiuJHaGMXwRs3RjrB4G6qqgkr/5oE= -github.com/livekit/protocol v1.27.1-0.20241028171043-ee0a12bd25a5 h1:XZXXukbyH80Y4vNiL8E6JKrgc1wOXPqIpz42L7pagLc= -github.com/livekit/protocol v1.27.1-0.20241028171043-ee0a12bd25a5/go.mod h1:BrACGxSTlbAe+T9uXLOiiWyYrJ2gNc0mTYmZJPq/4aA= +github.com/livekit/protocol v1.27.2-0.20241112203928-f558b991de7c h1:hDKTElZzPu6nFf0OdF7mTnF7ZqiqwXwavuY9u/P/9O8= +github.com/livekit/protocol v1.27.2-0.20241112203928-f558b991de7c/go.mod h1:BrACGxSTlbAe+T9uXLOiiWyYrJ2gNc0mTYmZJPq/4aA= github.com/livekit/psrpc v0.6.1-0.20240924010758-9f0a4268a3b9 h1:33oBjGpVD9tYkDXQU42tnHl8eCX9G6PVUToBVuCUyOs= github.com/livekit/psrpc v0.6.1-0.20240924010758-9f0a4268a3b9/go.mod h1:CQUBSPfYYAaevg1TNCc6/aYsa8DJH4jSRFdCeSZk5u0= github.com/livekit/server-sdk-go/v2 v2.2.2-0.20241015094126-b8538ae5d67b h1:R1GpKwVbSYsG08k5sIkNCukvnrkOE18R8IO1YeujR8o= diff --git a/pkg/sip/types.go b/pkg/sip/types.go index ca2b3db..83a84fa 100644 --- a/pkg/sip/types.go +++ b/pkg/sip/types.go @@ -16,7 +16,6 @@ package sip import ( "errors" - "fmt" "net" "net/netip" "strconv" @@ -170,7 +169,7 @@ func (u URI) ToSIPUri() *livekit.SIPUri { url := &livekit.SIPUri{ User: u.User, Host: u.GetHost(), - Port: fmt.Sprintf("%d", u.GetPort()), + Port: uint32(u.GetPort()), Transport: SIPTransportFrom(u.Transport), }