FreeSWITCH Configuration

FreeSWITCH is the PBX engine. Its configuration is managed by ICTCore and stored in /etc/freeswitch.

Key Ports

Port Protocol Purpose
5060 UDP/TCP SIP signaling
7443 WSS WebRTC SIP (agent dashboard)
8021 TCP ESL (Event Socket — localhost only)
16384–32768 UDP RTP media streams

ESL (Event Socket Layer)

ICTCore connects to FreeSWITCH via ESL for real-time call control. Default credentials (set in ictcore.conf):

[freeswitch]
host     = 127.0.0.1
port     = 8021
password = ClueCon

Test ESL access:

fs_cli -H 127.0.0.1 -P 8021 -p ClueCon

Useful fs_cli Commands

fs_cli -x "show registrations"    # List registered SIP devices
fs_cli -x "show calls"            # Active calls
fs_cli -x "show gateways"         # Gateway registration status
fs_cli -x "reloadxml"             # Reload dialplan XML
fs_cli -x "reload mod_sofia"      # Reload SIP stack
fs_cli -x "sofia status"          # SIP profile status

Log Files

tail -f /var/log/freeswitch/freeswitch.log

Set log level in fs_cli:

/log 7    # debug
/log 4    # warning (production default)

Media Storage

Path Content
/var/lib/freeswitch/recordings/ Call recordings
/var/lib/freeswitch/storage/voicemail/ Voicemail messages