diff --git a/pkgs/myintercom-doorbell/myintercom_doorbell/connection.py b/pkgs/myintercom-doorbell/myintercom_doorbell/connection.py index 12767ea..a5e968e 100644 --- a/pkgs/myintercom-doorbell/myintercom_doorbell/connection.py +++ b/pkgs/myintercom-doorbell/myintercom_doorbell/connection.py @@ -13,9 +13,15 @@ from time import sleep @dataclass(frozen=True) class types_struct: uuid: bytes = b"\x01" # Message payload contains UUID set in Asterisk Dialplan - audio: bytes = b"\x10" # * Message payload contains 8Khz 16-bit mono LE PCM audio (* See Github readme) - silence: bytes = b"\x02" # Message payload contains silence (I've never seen this occur personally) - hangup: bytes = b"\x00" # Tell Asterisk to hangup the call (This doesn't appear to ever be sent from Asterisk to us) + audio: bytes = ( + b"\x10" # * Message payload contains 8Khz 16-bit mono LE PCM audio (* See Github readme) + ) + silence: bytes = ( + b"\x02" # Message payload contains silence (I've never seen this occur personally) + ) + hangup: bytes = ( + b"\x00" # Tell Asterisk to hangup the call (This doesn't appear to ever be sent from Asterisk to us) + ) error: bytes = b"\xff" # Message payload contains an error from Asterisk