Page tree
Skip to end of metadata
Go to start of metadata

About

A list of command line switches to start FreeSWITCH™ in different modes and configurations.The options available may differ, depending on the operating system. Use the following command to see what is available.

In addition to using the command line, options may also be set with the FREESWITCH_OPTS environment variable.

 

 Click here to expand Table of Contents

Run FreeSWITCH

Run in foreground

Run in background

Argument List

These are the optional arguments you can pass to freeswitch:

FreeSWITCH startup switches
UNIX-like only
Windows-only
File locations

If you set the file locations of any one of -conf, -log, or -db you must set all three.

File Paths

A handy method to determine where FreeSWITCH™ is currently looking for files (in linux):

Method for showing FS paths

 

Argument Cautions

Setting some arguments may affect behavior in unexpected ways. The following list contains known side-effects of setting various command line arguments.

  • nosql - Setting nosql completely disables the use of coreDB which means you will not have show channels, show calls, tab completion, or anything else that is stored in the coreDB.

See Also

 

base_dir=/usr

recordings_dir=/var/lib/freeswitch/recordings

sounds_dir=/usr/share/freeswitch/sounds

conf_dir=/etc/freeswitch

log_dir=/var/log/freeswitch

run_dir=/var/run/freeswitch

db_dir=/var/lib/freeswitch/db

mod_dir=/usr/lib/freeswitch/mod

htdocs_dir=/usr/share/freeswitch/htdocs

script_dir=/usr/share/freeswitch/scripts

temp_dir=/tmp

grammar_dir=/usr/share/freeswitch/grammar

fonts_dir=/usr/share/freeswitch/fonts

images_dir=/var/lib/freeswitch/images

certs_dir=/etc/freeswitch/tls

storage_dir=/var/lib/freeswitch/storage

cache_dir=/var/cache/freeswitch

data_dir=/usr/share/freeswitch

localstate_dir=/var/lib/freeswitch