在不同模式和配置下启动 FreeSWITCH™ 的命令行参数列表。可用参数可能会有所不同,具体取决于操作系统。使用以下命令查看可用的内容。
/usr/local/freeswitch/bin/freeswitch -help
运行 FreeSWITCH
在前台运行
$ freeswitch
在后台运行
$ freeswich -nc
参数列表
这些是您可以传递给 freeswitch 的可选参数:
启动参数
-waste -- allow memory waste 允许内存浪费
-no-auto-stack -- don't adjust thread stack size 不要调整线程堆栈大小
-core -- dump cores 核心转储
-help -- print this message 打印此帮助
-version -- print the version and exit 版本信息
-rp -- enable high(realtime) priority settings 启用高(实时)优先级设置
-lp -- enable low priority settings 启用低优先级设置
-np -- enable normal priority settings (system default) 启用正常优先级设置(系统默认)
-vg -- run under valgrind 在valgate调试模式下运行
-nosql -- disable internal SQL scoreboard 禁用内部SQL记分板
nosql - 设置 nosql 将完全禁用 coreDB 的使用,这意味着您将没有show channels、show calls、选项卡完成或存储在 coreDB 中的任何其他内容。
-heavy-timer -- Heavy Timer, possibly more accurate but at a cost 重定时器,可能更准确,但要付出代价
-nonat -- disable auto NAT detection 禁用自动NAT检测
-nonatmap -- disable auto NAT port mapping 禁用自动NAT端口映射
-nocal -- disable clock calibration 禁用时钟校准
-nort -- disable clock clock_realtime 禁用实时时钟
-stop -- stop freeswitch 停止freeswitch
-nc -- no console and run in background 没有控制台,在后台运行
-ncwait -- no console and run in background, but wait until the system is ready before exiting (implies -nc)
没有控制台,在后台运行,但等待系统准备就绪后就退出(类似-nc)
-c -- output to a console and stay in the foreground (default behavior)
输出到控制台并保持在前台(默认行为)
仅类UNIX可用
-nf -- no forking 禁止分叉
-u [user] -- specify user to switch to 指定要切换到的用户
-g [group] -- specify group to switch to 指定要切换到的组
-ncwait -- do not output to a console and background but wait until the system is ready before exiting (implies -nc)
没有控制台,在后台运行,但等待系统准备就绪后就退出(类似-nc)
仅Windows可用
-service [name] -- start freeswitch as a service, cannot be used if loaded as a console app
作为服务启动freeswitch,如果作为控制台应用加载,则无法使用
-install [name] -- install freeswitch as a service, with optional service name
将freeswitch安装为指定名称的服务
-uninstall -- remove freeswitch as a service 卸载freeswitch服务
-monotonic-clock -- use monotonic clock as timer source 使用单调时钟作为定时器源
文件位置
-base [basedir] -- alternate prefix directory
-conf [confdir] -- alternate directory for FreeSWITCH configuration files
-log [logdir] -- alternate directory for logfiles
-run [rundir] -- alternate directory for runtime files
-db [dbdir] -- alternate directory for the internal database
-mod [moddir] -- alternate directory for modules
-htdocs [htdocsdir] -- alternate directory for htdocs
-scripts [scriptsdir] -- alternate directory for scripts
-temp [directory] -- alternate directory for temporary files
-grammar [directory] -- alternate directory for grammar files
-recordings [directory] -- alternate directory for recordings
-storage [directory] -- alternate directory for voicemail storage
-sounds [directory] -- alternate directory for sound files
如果设置 -conf、-log 或 -db 三个路径要么同时设置,要么都不设置。
显示 FS 当前运行时路径变量值的方法
bash> fs_cli -x 'global_getvar'| grep _dir
- 分类: FreeSWITCH FreeSWITCH学习 呼叫中心
- 标签: FreeSWITCH 呼叫中心