From a191df42c80953ac7949bc40cf345c3a3ae9b5d9 Mon Sep 17 00:00:00 2001 From: Maksym Sobolyev Date: Wed, 25 Sep 2024 12:55:23 -0700 Subject: [PATCH] Don't include own IP into call-id: it serves no practical purpose and can lead to the information leak. --- sippy/SipCallId.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sippy/SipCallId.py b/sippy/SipCallId.py index 1b1eeb863..475d5722b 100644 --- a/sippy/SipCallId.py +++ b/sippy/SipCallId.py @@ -52,15 +52,14 @@ def __init__(self, body = None): SipGenericHF.__init__(self, body) self.parsed = True if body is None: - salt = str((random() * 1000000000) + time()) - self.body = md5(salt.encode()).hexdigest() + '@' + str(SipConf.my_address) + self.genCallId() def __add__(self, other): return SipCallId(self.body + str(other)) def genCallId(self): salt = str((random() * 1000000000) + time()) - self.body = md5(salt.encode()).hexdigest() + '@' + str(SipConf.my_address) + self.body = md5(salt.encode()).hexdigest() def getCanName(self, name, compact = False): if compact: