From 70741e4399a3c25df0b0102ebef72c198c5e105b Mon Sep 17 00:00:00 2001 From: Maksym Sobolyev Date: Thu, 26 Sep 2024 10:39:48 -0700 Subject: [PATCH] Merge from python: Don't include own IP into call-id: it serves no practical purpose and can lead to the information leak. --- sippy/headers/sip_call_id.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sippy/headers/sip_call_id.go b/sippy/headers/sip_call_id.go index 48283b7..f205e3e 100644 --- a/sippy/headers/sip_call_id.go +++ b/sippy/headers/sip_call_id.go @@ -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 {