Format file using black
This commit is contained in:
parent
3d4e1ceac1
commit
e180a20b7d
1 changed files with 9 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue