mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 18:55:19 +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 ea657ec7c7)
			
			
This commit is contained in:
		
				
					committed by
					
						 Asterisk Development Team
						Asterisk Development Team
					
				
			
			
				
	
			
			
			
						parent
						
							b2b1977ad1
						
					
				
				
					commit
					870f59e28d
				
			| @@ -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