diff --git a/baresipy/__init__.py b/baresipy/__init__.py index f35a8b3..0b73377 100644 --- a/baresipy/__init__.py +++ b/baresipy/__init__.py @@ -324,6 +324,9 @@ def handle_error(self, error): LOG.error(error) if error == "failed to set audio-source (No such device)": self.handle_audio_stream_failure() + + def handle_unhandled_output(self, output): + LOG.info("Received unhandled output: '{0}'".format(output)) # event loop def run(self): @@ -429,6 +432,8 @@ def run(self): match = re.search('received DTMF: \'(.)\' \(duration=(\d+)\)', out) if match: self.handle_dtmf_received(match.group(1), int(match.group(2))) + else: + self.handle_unhandled_output(out) self._prev_output = out except pexpect.exceptions.EOF: # baresip exited