mod_commands

Usage CLI See below. API/Event Interfaces mod_event_socket mod_erlang_event mod_xml_rpc Scripting Interfaces mod_perl mod_v8 mod_python mod_lua From the Dialplan An API command can be called from the dialplan. Example:Invoke API Command From DialplanOther examples:Other Dialplan API Command ExamplesAPI commands with multiple arguments usually have the arguments separated by a space:Multiple Arguments ...

2019-12-10 11:32:38 · 35 分钟 · Eddie Wang

XML Switch Configuration

The FreeSWITCH core configuration is contained in autoload_configs/switch.conf.xml Default key bindings Function keys can be mapped to API commands using the following configuration:The default keybindings are;F1 = helpF2 = statusF3 = show channelsF4 = show callsF5 = sofia statusF6 = reloadxmlF7 = console loglevel 0F8 = console loglevel 7F9 = sofia status profile internalF10 = sofia profile internal siptrace onF11 = sofia profile internal siptrace offF12 = versionBeware that the option loglevel is actually setting the minimum hard_log_Level in the application. What this means is if you set this to something other than DEBUG no matter what log level you set the console to one you start up you will not be able to get any log messages below the level you set. Also be careful of mis-typing a log level, if the log level is not correct it will default to a hard_log_level of 0. This means that virtually no log messages will show up anywhere. ...

2019-12-10 11:30:38 · 2 分钟 · Eddie Wang

Sofia SIP Stack

Sofia is a SIP stack used by FreeSWITCH. When you see “sofia” anywhere in your configuration, think “This is SIP stuff.” It takes a while to master it all, so please be patient with yourself. SIP is a crazy protocol and it will make you crazy too if you aren’t careful. Read on for information on setting up SIP/Sofia in your FreeSWITCH configuration. mod_sofia exposes the Sofia API and sets up the FreeSWITCH SIP endpoint. ...

2019-12-10 11:27:17 · 13 分钟 · Eddie Wang

编译FS

make clean - Cleans the build environment make current - Cleans build environment, performs an git update, then does a make install make core_install (or make install_core) - Recompiles and installs just the core files. Handy if you are working on a core file and want to recompile without doing the whole shebang. make mod_XXXX-install - Recompiles and installs just a single module. Here are some examples: make mod_openzap-install make mod_sofia-install make mod_lcr-install make samples - This will not replace your configuration. This will instead make the default extensions and dialplan to run the basic configuration of FreeSWITCH.

2019-12-10 11:25:04 · 1 分钟 · Eddie Wang

fs 命令行

运行fs 前台运行 freeswitch 后台运行 freeswich -nc 参数列表 These are the optional arguments you can pass to freeswitch: FreeSWITCH startup switches -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 -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 -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) -c -- output to a console and stay in the foreground (default behavior) ...

2019-12-10 11:19:39 · 3 分钟 · Eddie Wang

fs reload命令

Item Reload Command Notes XML Dialplan reloadxml Run each time you edit XML dial file(s) ACLs reloadacl Edit acl.conf.xml first Voicemail reload mod_voicemail Edit voicemail.conf.xml first Conference reload mod_conference Edit conference.conf.xml first Add Sofia Gateway sofia profile rescan Less intrusive - no calls dropped Remove Sofia Gateway sofia profile killgw <gateway_name> Less intrusive - no calls dropped Restart Sofia Gateway sofia profile killgw <gateway_name>sofia profile rescan Less intrusive - no calls dropped Add/remove Sofia Gateway sofia profile restart More intrusive - all profile calls dropped Local Stream see Mod_local_stream Edit localstream.conf.xml first Update a lua file nothing necessary file is loaded from disk each time it is run Update LCR SQL table nothing necessary SQL query is run for each new call Update LCR options reload mod_lcr Edit lcr.conf.xml first Update CID Lookup Options reload mod_cidlookup Edit cidlookup.conf.xml first Update JSON CDR Options reload mod_json_cdr Edit json_cdr.conf.xml first Update XML CDR Options reload mod_xml_cdr Edit xml_cdr.conf.xml first Update XML CURL Server Response nothing, unless using cache

2019-12-10 11:17:55 · 1 分钟 · Eddie Wang

通道变量与SIP 消息头

自定义SIP消息头如何从通道变量中获取? if you pass a header variable called type from the proxy server, it will get displayed as variable_sip_h_type in FreeSWITCH™. To access that variable, you should strip off the variable_, and just do ${sip_h_type}

2019-07-15 23:06:57 · 1 分钟 · Eddie Wang

fs日志级别

fs日志级别 0 "CONSOLE", 1 "ALERT", 2 "CRIT", 3 "ERR", 4 "WARNING", 5 "NOTICE", 6 "INFO", 7 "DEBUG" 日志级别设置的越高,显示的日志越多 在autoload_configs/switch.conf.xml 设置了一些快捷键,可以在fs_cli中使用 F7将日志级别设置为0,显示的日志最少 F8将日志级别设置为7, 显示日志最多 同时也可以使用 console loglevel指令自定义设置级别 console loglevel 1 console loglevel notice 参考 https://freeswitch.org/confluence/display/FREESWITCH/Troubleshooting+Debugging

2019-07-11 17:13:29 · 1 分钟 · Eddie Wang