fs_cli
FreeSWITCH command-line interface
TLDR
Connect to the local FreeSWITCH instance with an interactive session
SYNOPSIS
fs_cli [options]
DESCRIPTION
fs_cli is the FreeSWITCH command-line interface client that connects to a running FreeSWITCH server via the Event Socket Layer (ESL). It provides interactive access to FreeSWITCH's API for managing calls, configurations, and system status.
The tool can operate in interactive mode for real-time control or execute single commands via the -x option for scripting and automation. It connects to the ESL port (default 8021) using configured credentials.
Common operations include checking call status, reloading configurations, managing channels, and monitoring system health.
PARAMETERS
-H, --host HOST
Connect to remote FreeSWITCH server at HOST-P, --port PORT
Connect to Event Socket on PORT (default: 8021)-p, --password PASSWORD
Event Socket password (default: ClueCon)-x, --execute COMMAND
Execute command and exit-r, --retry
Retry connection on failure-l, --loglevel LEVEL
Set log level (0-7)-q, --quiet
Disable logging to console-d, --debug LEVEL
Debug level (0-7)
CONFIGURATION
/etc/freeswitch/autoload_configs/event_socket.conf.xml
Event Socket Layer configuration controlling the listen address, port, and authentication password for ESL connections.
CAVEATS
Requires the Event Socket module to be loaded and properly configured in FreeSWITCH. Default password "ClueCon" should be changed in production. Network access to ESL port must be properly secured.
HISTORY
fs_cli is part of the FreeSWITCH project, an open-source communications platform started in 2006 by Anthony Minessale II. It was created as a modern, scalable alternative to Asterisk for building telephony applications.
SEE ALSO
asterisk(8), freeswitch(1)
