Mandatory functions
Each FreeSWITCH module must at least declare three functions, LOAD
, RUNTIME
, and SHUTDOWN
:
The LOAD
and SHUTDOWN
functions must be implemented, and are called at startup and when unloading the module. In LOAD
you create and initialize the module's data structures, get values from the configuration file, and get your module ready for work. In SHUTDOWN
you do any housekeeping needed to happily forget about your module, and in particular you release any resources you may have locked or allocated during module initialization and lifespan.
RUNTIME
function implementation is not mandatory. For example, you must declare it, but you can ...
Get Mastering FreeSWITCH now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.