Skip to content

Commit

Permalink
More debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
tcz committed Aug 12, 2023
1 parent 8862294 commit 9a0f18c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rotarygpt/sip.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ def _handle_request(self, request):
for callback in self.incoming_call_callbacks:
callback(request.from_address[0], port)

logging.debug(f'Finished incoming call callbacks')

elif request.method == b'BYE':
if not self.in_call:
return
Expand All @@ -157,6 +159,8 @@ def _handle_request(self, request):
for callback in self.call_ended_callbacks:
callback()

logging.debug(f'Finished call ended callbacks')

@staticmethod
def _extract_sip_host(sip_address):
sip_address = sip_address.strip('<> ')
Expand Down

0 comments on commit 9a0f18c

Please sign in to comment.