Add Online status to device registration in inbound service

This commit is contained in:
haibo.chen
2025-03-13 14:05:59 +08:00
parent 15561111a6
commit 6e927834f8

View File

@ -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())