diff --git a/sippy/SipCallId.py b/sippy/SipCallId.py index 1b1eeb8..475d572 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: