zoukankan      html  css  js  c++  java
  • FreeSwitch 启动和停止

    FreeSWITCH的安装目录在/usr/local这个目录。

    •  创建软连接

    为了启动方便,创建软连接

    ln -sf /usr/local/freeswitch/bin/freeswitch /usr/bin

    ln -sf /usr/local/freeswitch/bin/fs_cli /usr/bin

    • 启动命令:

    [root@asr conf]# freeswitch -h

    -nf -- no forking    
    -reincarnate -- restart the switch on an uncontrolled exit
    -reincarnate-reexec -- run execv on a restart (helpful for upgrades)
    -u [user] -- specify user to switch to
    -g [group] -- specify group to switch to
    -core -- dump cores
    -help -- this message
    -version -- print the version and exit
    -rp -- enable high(realtime) priority settings
    -lp -- enable low priority settings
    -np -- enable normal priority settings
    -vg -- run under valgrind
    -nosql -- disable internal sql scoreboard
    -heavy-timer -- Heavy Timer, possibly more accurate but at a cost
    -nonat -- disable auto nat detection
    -nonatmap -- disable auto nat port mapping
    -nocal -- disable clock calibration
    -nort -- disable clock clock_realtime
    -stop -- stop freeswitch                                             #停止freeswitch
    -nc -- do not output to a console and background    #后台启动
    -ncwait -- do not output to a console and background but wait until the system is ready before exiting (implies -nc)
    -c -- output to a console and stay in the foreground

    Options to control locations of files:
    -base [basedir] -- alternate prefix directory
    -cfgname [filename] -- alternate filename for FreeSWITCH main configuration file
    -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
    -certs [directory] -- alternate directory for certificates
    -recordings [directory] -- alternate directory for recordings
    -storage [directory] -- alternate directory for voicemail storage
    -cache [directory] -- alternate directory for cache files
    -sounds [directory] -- alternate directory for sound files

    • 启动freeswitch
    1. 前台启动

    freeswitch

             2. 后台启动

                 freeswitch -nc

             3. 客户端链接

                 服务端如果启动成功,客户端链接到fs服务器中。

                 fs_cli -r   

  • 相关阅读:
    为什么人们普遍选择城市而非农村
    风物长宜放眼量-创业潮比雾霾消散的要快
    一眼看请考研的目的-本质上的第二次高考
    京都城门考
    翻译的很好的一篇android mediaplayer
    Android MediaProvider数据库模式
    android 多媒体数据库详解
    android usb挂载分析---vold处理内核消息
    android usb挂载分析
    android usb挂载分析---MountService启动
  • 原文地址:https://www.cnblogs.com/damizhou/p/14127505.html
Copyright © 2011-2022 走看看