Skip to content

Commit

Permalink
Merge from python:
Browse files Browse the repository at this point in the history
  Don't include own IP into call-id: it serves no practical purpose
  and can lead to the information leak.
  • Loading branch information
sobomax committed Sep 26, 2024
1 parent 331d29f commit 70741e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sippy/headers/sip_call_id.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func CreateSipCallId(body string) []SipHeader {
func (self *SipCallId) genCallId(config sippy_conf.Config) {
buf := make([]byte, 16)
rand.Read(buf)
self.CallId = hex.EncodeToString(buf) + "@" + config.GetMyAddress().String()
self.CallId = hex.EncodeToString(buf)
}

func NewSipCallIdFromString(call_id string) *SipCallId {
Expand Down

0 comments on commit 70741e4

Please sign in to comment.