mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 11:11:05 +00:00
audiosocket: added support for DTMF frames
Updated the AudioSocket protocol to allow sending DTMF frames.
AST_FRAME_DTMF frames are now forwarded to the server, in addition to
AST_FRAME_AUDIO frames. A new payload type AST_AUDIOSOCKET_KIND_DTMF
with value 0x03 was added to the protocol. The payload is a 1-byte
ascii representing the DTMF digit (0-9,*,#...).
UserNote: The AudioSocket protocol now forwards DTMF frames with
payload type 0x03. The payload is a 1-byte ascii representing the DTMF
digit (0-9,*,#...).
(cherry picked from commit c44e7e85ec
)
This commit is contained in:
committed by
Asterisk Development Team
parent
423d2bad16
commit
d032df902b
@@ -44,6 +44,9 @@ enum ast_audiosocket_msg_kind {
|
||||
/*! \brief Message contains the connection's UUID, direction: Received only. */
|
||||
AST_AUDIOSOCKET_KIND_UUID = 0x01,
|
||||
|
||||
/*! \brief Message contains a DTMF digit, direction: Received only. */
|
||||
AST_AUDIOSOCKET_KIND_DTMF = 0x03,
|
||||
|
||||
/*! \brief Messages contains audio data, direction: Sent and received. */
|
||||
AST_AUDIOSOCKET_KIND_AUDIO = 0x10,
|
||||
|
||||
|
Reference in New Issue
Block a user