From 9a0f18c3708ebdb727bbc6e864e3f160f15f93e3 Mon Sep 17 00:00:00 2001 From: tcz Date: Sat, 12 Aug 2023 12:46:51 +0200 Subject: [PATCH] More debugging --- rotarygpt/sip.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rotarygpt/sip.py b/rotarygpt/sip.py index 48cb34a..018085c 100644 --- a/rotarygpt/sip.py +++ b/rotarygpt/sip.py @@ -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 @@ -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('<> ')