From 6e927834f81a7e508343d2230e83df49207496ed Mon Sep 17 00:00:00 2001 From: "haibo.chen" <495810242@qq.com> Date: Thu, 13 Mar 2025 14:05:59 +0800 Subject: [PATCH] Add Online status to device registration in inbound service --- pkg/service/inbound.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/service/inbound.go b/pkg/service/inbound.go index b4ba7c0..4e1e0c1 100644 --- a/pkg/service/inbound.go +++ b/pkg/service/inbound.go @@ -69,6 +69,7 @@ func (s *UAS) onRegister(req *sip.Request, tx sip.ServerTransaction) { DeviceID: id, SourceAddr: req.Source(), NetworkType: req.Transport(), + Online: true, }) s.respondRegister(req, http.StatusOK, "OK", tx) logger.Tf(s.ctx, "%s Register success, source:%s, req: %s", id, req.Source(), req.String())