From 331d29f51872fb1c1bc1f57332b662a60c23e440 Mon Sep 17 00:00:00 2001 From: Andriy Pylypenko Date: Thu, 6 Jun 2024 20:49:36 +0300 Subject: [PATCH] Remove duplicate rtpproxy heartbeat variables. --- cmd/b2bua_radius/my_config_parser.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/b2bua_radius/my_config_parser.go b/cmd/b2bua_radius/my_config_parser.go index c324be8..7e3fd29 100644 --- a/cmd/b2bua_radius/my_config_parser.go +++ b/cmd/b2bua_radius/my_config_parser.go @@ -64,8 +64,6 @@ type myConfigParser struct { B2bua_socket string Foreground bool Hide_call_id bool - Hrtb_retr_ival int - Hrtb_ival int Keepalive_ans int Keepalive_orig int Logfile string @@ -302,8 +300,8 @@ func (self *myConfigParser) Parse() error { if err != nil { return err } - self.Hrtb_ival_dur = time.Duration(self.Hrtb_ival) * time.Second - self.Hrtb_retr_ival_dur = time.Duration(self.Hrtb_retr_ival) * time.Second + self.Hrtb_ival_dur = time.Duration(self.Rtpp_hrtb_ival) * time.Second + self.Hrtb_retr_ival_dur = time.Duration(self.Rtpp_hrtb_retr_ival) * time.Second self.Config = sippy_conf.NewConfig(error_logger, sip_logger) self.SetMyPort(sippy_net.NewMyPort(strconv.Itoa(self.Sip_port))) if auth_disable {