From 83de7de3d7932e707697c3af3363ba1212bcce05 Mon Sep 17 00:00:00 2001 From: Maksym Sobolyev Date: Wed, 15 Jan 2025 11:21:30 -0800 Subject: [PATCH] Put Contact into 18x-class provisional responses, as required by the RFC3261. --- sippy/UasStateRinging.py | 2 +- sippy/UasStateTrying.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sippy/UasStateRinging.py b/sippy/UasStateRinging.py index 9d83f3f..c61eb4f 100644 --- a/sippy/UasStateRinging.py +++ b/sippy/UasStateRinging.py @@ -51,7 +51,7 @@ def recvEvent(self, event): self.ua.lSDP = body if self.ua.p1xx_ts == None: self.ua.p1xx_ts = event.rtime - self.ua.sendUasResponse(code, reason, body, extra_headers = eh) + self.ua.sendUasResponse(code, reason, body, (self.ua.lContact,), extra_headers = eh) for ring_cb in self.ua.ring_cbs: ring_cb(self.ua, event.rtime, event.origin, code) return None diff --git a/sippy/UasStateTrying.py b/sippy/UasStateTrying.py index 36eb921..e1c464a 100644 --- a/sippy/UasStateTrying.py +++ b/sippy/UasStateTrying.py @@ -49,7 +49,7 @@ def recvEvent(self, event): self.ua.on_local_sdp_change(body, partial(self.ua.delayed_local_sdp_update, event)) return None self.ua.lSDP = body - self.ua.sendUasResponse(code, reason, body, extra_headers = eh) + self.ua.sendUasResponse(code, reason, body, (self.ua.lContact,), extra_headers = eh) if self.ua.no_progress_timer != None: self.ua.no_progress_timer.cancel() self.ua.no_progress_timer = None