Skip to content

Commit 2e4e053

Browse files
committed
Add unstructured note on FreeSWITCH modules
1 parent dae9f59 commit 2e4e053

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FreeSWITCH modules typically define three key functions:
2+
3+
Load Function (SWITCH_MODULE_LOAD_FUNCTION):
4+
5+
Initializes the module and registers its features (e.g., applications, APIs).
6+
Example: mod_erlang_event_load.
7+
Runtime Function (SWITCH_MODULE_RUNTIME_FUNCTION):
8+
9+
Contains the main loop or background tasks for the module.
10+
Example: mod_erlang_event_runtime.
11+
Shutdown Function (SWITCH_MODULE_SHUTDOWN_FUNCTION):
12+
13+
Cleans up resources when the module is unloaded.
14+
Example: mod_erlang_event_shutdown.

0 commit comments

Comments
 (0)