Skip to content

Commit

Permalink
Put Contact into 18x-class provisional responses, as required by
Browse files Browse the repository at this point in the history
the RFC3162.
  • Loading branch information
sobomax committed Jan 16, 2025
1 parent df08983 commit c44f80e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sippy/UasStateRinging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sippy/UasStateTrying.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c44f80e

Please sign in to comment.