From 1a2d2508a2f490b0e6fd880b4cef84f788b89aac Mon Sep 17 00:00:00 2001 From: Benjamin Pracht Date: Tue, 29 Oct 2024 09:42:11 -0700 Subject: [PATCH] WiP --- pkg/sip/types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/sip/types.go b/pkg/sip/types.go index 7e2ed5b..3d736e9 100644 --- a/pkg/sip/types.go +++ b/pkg/sip/types.go @@ -120,9 +120,9 @@ func (u URI) GetHost() string { } func (u URI) GetPort() int { - port = int(u.Port) + port := int(u.Port) if port == 0 { - port := int(u.Addr.Port()) + port = int(u.Addr.Port()) } if port == 0 { port = 5060