Linux command
fs_cli 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
fs_cli
Example
fs_cli -H [host] -P [port] -p [password]
Example
fs_cli -x "[command]"
Example
fs_cli -x "status"
Reload
fs_cli -x "reloadxml"
Example
fs_cli -x "module_exists [module_name]"
Example
fs_cli -x "show calls"
Retry
fs_cli -r
说明
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.
参数
- -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)
FAQ
What is the fs_cli command used for?
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.
How do I run a basic fs_cli example?
Run `fs_cli` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -H, --host _HOST_ do in fs_cli?
Connect to remote FreeSWITCH server at _HOST_