Part 10: Recipes
The reference chapters document each piece of FreeSWITCH on its own. This part
shows how those pieces fit together into complete, working call flows. Each
recipe states the goal, gives the exact configuration and dialplan to paste in,
explains how it works, and links back to the chapters that document each part in
depth. Every example is built from features documented elsewhere in this manual
and verified against the bundled conf/vanilla/ configuration.
DID to IVR to Voicemail
Route a PSTN DID through the public context into an auto-attendant IVR menu, then fall through unanswered options to a user's voicemail.
Ring Group / Hunt Group
Ring several phones at once (ring group) or one after another on no-answer (hunt group) using the bridge application's comma and pipe dial-string operators, with per-leg timeouts and voicemail fallback.
Time-of-Day Routing
Route calls to the operator or IVR during open hours and to a closed greeting plus voicemail after hours and on holidays, using XML dialplan time conditions.
Box-to-Box Trunk
Link two FreeSWITCH servers with a SIP gateway or IP-authenticated trunk so users on box A can dial users on box B.
Conference with PIN
Callers dial an extension, are prompted for a PIN, and join a moderated conference room. Built on the conference application's own PIN and member-flag handling, with a dialplan play_and_get_digits variation.
Click-to-Call (originate)
Trigger an outbound call from fs_cli or the Event Socket that rings a user and, on answer, bridges them to another extension, an IVR, or a PSTN number using the originate API command.