fix issues/26

This commit is contained in:
haibo.chen
2025-10-14 15:45:39 +08:00
parent e3a94a599b
commit 83d9098a98
3 changed files with 139 additions and 1 deletions

View File

@ -86,7 +86,7 @@ func (s *UAS) startSipServer(agent *sipgo.UserAgent, ctx context.Context, r0 int
candidate := os.Getenv("CANDIDATE")
if candidate != "" {
MediaDB.AddMediaServer("Default", "SRS", candidate, 1985, "", "", "", 1)
MediaDB.AddOrUpdateMediaServer("Default", "SRS", candidate, 1985, "", "", "", 1)
}
return nil
}