The esl library.

Utility library for communicating with a FreeSWTICH event socket.

Constants

libraryName → String

'ESL'

Functions

channelMapParse(String buffer) → List<Map>

Converts a string buffer received from FreeSWITCH into a list of maps. The string buffer is expected to be line-seperated, have the first line as headers and every field seperated by a ','.

Classes

Channel

Wrapper class for a channel. Provides easy access to various channel information stored in a packet.

ChannelList

Channel list. Can be used to keep track of channels in the FreeSWITCH PBX by using the update method as event handler for CHANNEL_STATE and others, depending on the level of detail in the channel information you wish.

Connection

FreeSWTICH event socket connection.

ContentType

Event

EventFormat

"Enum" of event formats.

Packet

PacketTransformer

Transformer for converting raw bytes into Packet objects. Handles the low-level parsing of network traffic, or any other byte stream for that matter, stores them in a buffer and encapsulates them in Packet objects which the Connection then re-casts and injects into the appropriate steam - for instance event stream.

Peer

PeerList

An iterable collection of Peer object. Can be created from a string buffer or built up manually.

Reply

Request

A request is a specialization of a Packet that is pushed from FreeSWITCH whenever it needs the connecting party to act upon a request. The first request a connection meets, is the 'auth' request.

Response

Class representing a reponse received from the FreeSWTICH event socket.