Event-based modules
There are a number of modules that can handle events. By far the most commonly used module is mod_event_socket
. We will focus most of our attention on this module and then briefly touch on a few of the others.
mod_event_socket
mod_event_socket
is the most common module in FreeSWITCH for sending and receiving events via third-party programs. This module provides a TCP socket which you can connect to from external software programs. Once authenticated, you can send and receive plain-text event information that is easy to understand and parse. It allows for bi-directional communication for both consuming events from and sending events to FreeSWITCH.
Utilizing event sockets is generally easy. First, you connect from an external program to a preconfigured socket which is configured for mod_event_socket
. You authenticate to the system, then you begin sending event messages to FreeSWITCH. You can also initiate a request to receive events, at which point mod_event_socket
will attach...