Skip to content

Commit dda896c

Browse files
florentchauveaugtjoseph
authored andcommitted
AudioSocket.md: updated for DTMF support in the protocol
1 parent 5888516 commit dda896c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/Configuration/Channel-Drivers/AudioSocket.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pageid: 42012937
66
AudioSocket
77
===========
88

9-
AudioSocket is a simple TCP-based protocol for sending and receiving real-time audio streams.
9+
AudioSocket is a simple TCP-based protocol for sending and receiving real-time audio streams, and sending DTMF digits.
1010

1111
There exists a protocol definition (below), a Go [library](https://github.com/CyCoreSystems/audiosocket), and Asterisk application and channel interfaces.
1212

@@ -21,6 +21,7 @@ The minimum message length is three bytes: type and payload-length. Hangup indic
2121

2222
* `0x00` - Terminate the connection (socket closure is also sufficient)
2323
* `0x01` - Payload will contain the UUID (16-byte binary representation) for the audio stream
24+
* `0x03` - Payload is 1 byte (ascii) DTMF (dual-tone multi-frequency) digit
2425
* `0x10` - Payload is signed linear, 16-bit, 8kHz, mono PCM (little-endian)
2526
* `0xff` - An error has occurred; payload is the (optional) application-specific error code. Asterisk-generated error codes are listed below.
2627

0 commit comments

Comments
 (0)