Skip to content

Commit

Permalink
Fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Mar 26, 2024
1 parent 180f5e2 commit 1006b41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sippy/UasStateRinging.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def recvEvent(self, event):
if code == 100:
return None
if body != None and self.ua.on_local_sdp_change != None and body.needs_update:
self.ua.on_local_sdp_change(body, partial(self.ua.recvEvent, event))
self.ua.on_local_sdp_change(body, partial(self.ua.delayed_local_sdp_update, event))
return None
self.ua.lSDP = body
if self.ua.p1xx_ts == None:
Expand All @@ -57,7 +57,7 @@ def recvEvent(self, event):
elif isinstance(event, CCEventConnect) or isinstance(event, CCEventPreConnect):
code, reason, body = event.getData()
if body != None and self.ua.on_local_sdp_change != None and body.needs_update:
self.ua.on_local_sdp_change(body, partial(self.ua.recvEvent, event))
self.ua.on_local_sdp_change(body, partial(self.ua.delayed_local_sdp_update, event))
return None
if event.extra_headers != None:
extra_headers = tuple(event.extra_headers)
Expand Down
4 changes: 2 additions & 2 deletions sippy/UasStateTrying.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def recvEvent(self, event):
if code == 100:
return None
if body != None and self.ua.on_local_sdp_change != None and body.needs_update:
self.ua.on_local_sdp_change(body, partial(self.ua.recvEvent, 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)
Expand All @@ -60,7 +60,7 @@ def recvEvent(self, event):
elif isinstance(event, CCEventConnect) or isinstance(event, CCEventPreConnect):
code, reason, body = event.getData()
if body != None and self.ua.on_local_sdp_change != None and body.needs_update:
self.ua.on_local_sdp_change(body, partial(self.ua.recvEvent, event))
self.ua.on_local_sdp_change(body, partial(self.ua.delayed_local_sdp_update, event))
return None
if event.extra_headers != None:
extra_headers = tuple(event.extra_headers)
Expand Down

0 comments on commit 1006b41

Please sign in to comment.