Skip to content

Freeswitch

alochym01 edited this page May 3, 2018 · 7 revisions

Freeswitch

  • version 1.6.20

Install Freeswitch

  1. install freeswitch repo
  1. Install freeswitch and packages dependancy
  • yum install -y freeswitch-config-vanilla freeswitch-lua freeswitch-codec-opus freeswitch-sounds-music-8000 freeswitch-sounds-en-us-callie-8000

Freeswitch Configuration

  1. Startup
  • systemctl start freeswitch.service
  1. Start up at boot time
  • systemctl enable freeswitch.service
  1. Shutdown firewalld and disable firewalld
  • systemctl stop firewalld
  • systemctl disable freeswitch.service
  1. Mod_lua
<configuration name="lua.conf" description="LUA Configuration">
  <settings>
    <param name="xml-handler-script" value="directory.lua"/>
    <param name="xml-handler-bindings" value="directory"/>
  </settings>
</configuration>
  1. mod_hash
  • using vars.xml <X-PRE-PROCESS cmd="set" data="max_calls=1"/>
  1. mod_callcenter
  2. Mod_event_socket
  3. switch.conf.xml
<configuration name="switch.conf" description="Core Configuration">
  <cli-keybindings>
    <key name="1" value="help"/>
    <key name="2" value="status"/>
    <key name="3" value="show channels"/>
    <key name="4" value="show calls"/>
    <key name="5" value="sofia status"/>
    <key name="6" value="reloadxml"/>
    <key name="7" value="console loglevel 0"/>
    <key name="8" value="console loglevel 7"/>
    <key name="9" value="sofia status profile internal"/>
    <key name="10" value="sofia profile internal siptrace on"/>
    <key name="11" value="sofia profile internal siptrace off"/>
    <key name="12" value="version"/>
  </cli-keybindings> 
  
  <settings>
    <param name="colorize-console" value="true"/>
    <param name="dialplan-timestamps" value="false"/>
    <param name="max-db-handles" value="50"/>
    <param name="db-handle-timeout" value="10"/>
    <param name="max-sessions" value="1000"/>
    <param name="sessions-per-second" value="30"/>
    <param name="loglevel" value="debug"/>
    <param name="mailer-app" value="sendmail"/>
    <param name="mailer-app-args" value="-t"/>
    <param name="dump-cores" value="yes"/>
    <param name="rtp-enable-zrtp" value="false"/>
  </settings>
</configuration>

Clone this wiki locally