From bb653a2b44f8de3c247f948a45146764a59b7a28 Mon Sep 17 00:00:00 2001 From: Andriy Pylypenko Date: Thu, 6 Jun 2024 17:49:28 +0300 Subject: [PATCH] Use correct number of configured rtpproxies. --- cmd/b2bua_radius/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/b2bua_radius/main.go b/cmd/b2bua_radius/main.go index 54ab7c5..00c354c 100644 --- a/cmd/b2bua_radius/main.go +++ b/cmd/b2bua_radius/main.go @@ -62,7 +62,7 @@ func main() { if ! global_config.Foreground { sippy_utils.Daemonize(global_config.Logfile, -1, -1, global_config.ErrorLogger()) } - rtp_proxy_clients := make([]sippy_types.RtpProxyClient, len(global_config.Rtp_proxy_clients)) + rtp_proxy_clients := make([]sippy_types.RtpProxyClient, len(global_config.Rtp_proxy_clients_arr)) for i, address := range global_config.Rtp_proxy_clients_arr { opts, err := sippy.NewRtpProxyClientOpts(address, nil /*bind_address*/, global_config, global_config.ErrorLogger()) if err != nil {