From b29e1589653d4ee41bcedd19c629174239ffe28b Mon Sep 17 00:00:00 2001 From: Kinshuk Bairagi Date: Wed, 24 Nov 2021 17:09:31 +0530 Subject: [PATCH] go-b2bua and logrotate fixes --- distribution/debian/etc/logrotate.d/voiceip-b2bua | 1 + distribution/debian/etc/systemd/system/voiceip-b2bua.service | 2 +- lib/go-b2bua | 2 +- release.sh | 0 sbc/call_controller.go | 4 ++-- 5 files changed, 5 insertions(+), 4 deletions(-) mode change 100644 => 100755 release.sh diff --git a/distribution/debian/etc/logrotate.d/voiceip-b2bua b/distribution/debian/etc/logrotate.d/voiceip-b2bua index b147395..aed920c 100644 --- a/distribution/debian/etc/logrotate.d/voiceip-b2bua +++ b/distribution/debian/etc/logrotate.d/voiceip-b2bua @@ -1,6 +1,7 @@ /var/log/voiceip-b2bua.log /var/log/voiceip-b2bua-sip.log { daily rotate 7 + minsize 100M missingok compress delaycompress diff --git a/distribution/debian/etc/systemd/system/voiceip-b2bua.service b/distribution/debian/etc/systemd/system/voiceip-b2bua.service index 7ac74ff..77fbf18 100644 --- a/distribution/debian/etc/systemd/system/voiceip-b2bua.service +++ b/distribution/debian/etc/systemd/system/voiceip-b2bua.service @@ -3,7 +3,7 @@ Description=VoiceIP B2BUA [Service] EnvironmentFile=/etc/default/voiceip-b2bua -ExecStart=/bin/sh -c '/usr/local/bin/voiceip-b2bua -p $LISTEN_PORT -n $DESTINATION -l $LISTEN_IP -L /var/log/voiceip-b2bua-sip.log 2>&1 > /var/log/voiceip-b2bua.log' +ExecStart=/usr/local/bin/voiceip-b2bua -p $LISTEN_PORT -n $DESTINATION -l $LISTEN_IP -L /var/log/voiceip-b2bua-sip.log Type=simple User=root Restart=on-failure diff --git a/lib/go-b2bua b/lib/go-b2bua index 94af418..71427be 160000 --- a/lib/go-b2bua +++ b/lib/go-b2bua @@ -1 +1 @@ -Subproject commit 94af418475fde5a47f72117022acb26362f9bac7 +Subproject commit 71427be1b452e169c3ed8ca88a88abe26ccee56e diff --git a/release.sh b/release.sh old mode 100644 new mode 100755 diff --git a/sbc/call_controller.go b/sbc/call_controller.go index dfd3e13..8c1d071 100644 --- a/sbc/call_controller.go +++ b/sbc/call_controller.go @@ -32,7 +32,7 @@ import ( "sync" "sippy" - "sippy/types" + sippy_types "sippy/types" ) type CallController struct { @@ -127,7 +127,7 @@ func (self *CallController) RecvEvent(event sippy_types.CCEvent, ua sippy_types. //cId := sippy_header.GenerateSipCallId(self.cmap.config) cld := redirectUrl.GetUrl().Username - ev_try := sippy.NewCCEventTry(self.evTry.GetSipCallId(), self.evTry.GetSipCiscoGUID(), + ev_try, _ := sippy.NewCCEventTry(self.evTry.GetSipCallId(), self.evTry.GetCLI(), cld, nil /*body*/, nil /*auth*/, self.evTry.GetCallerName(), ev_disc.GetRtime(), self.evTry.GetOrigin())