Skip to content

AudioSocket()

Synopsis

Transmit and receive PCM audio between a channel and a TCP socket server.

Since

18.0.0

Description

Connects to the given TCP server, then transmits channel audio as 16-bit, 8KHz mono PCM over that socket (other codecs available via the channel driver interface). In turn, PCM audio is received from the socket and sent to the channel. Only audio frames and DTMF frames will be transmitted.

Protocol is specified at https://docs.asterisk.org/Configuration/Channel-Drivers/AudioSocket/

This application does not automatically answer and should generally be preceeded by an application such as Answer() or Progress().

Syntax

AudioSocket(uuid,service)
Arguments
  • uuid - UUID is the universally-unique identifier of the call for the audio socket service. This ID must conform to the string form of a standard UUID.

  • service - Service is the name or IP address and port number of the audio socket service to which this call should be connected. This should be in the form host:port, such as myserver:9019. IPv6 addresses can be specified in square brackets, like [::1]:9019

Generated Version

This documentation was generated from Asterisk branch 22 using version GIT