Event-based modules
There are three different modules for handling events. They are as follows:
mod_event_socket
mod_event_multicast
mod_erlang_event
mod_event_socket
is by far the most used of the event handler modules, so we will be discussing it in detail. The other two modules are designed for more specific use cases and we will discuss them briefly.
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...