A simple connection logging solution for AllStar Link 3 (ASL3) nodes running on Debian/Ubuntu. Logs node connections and disconnections with timestamps to a dedicated log file.
- Logs when a remote node connects to your node
- Logs when a remote node disconnects from your node
- Timestamps every event with time and date
- Falls back to system logger if the log file is unavailable
- Lightweight — just two small bash scripts
- ASL3 (AllStar Link 3) installed and running
- Asterisk running as the
asteriskuser - Bash
Run the following command as root or with sudo on your ASL3 node:
curl -fsSL -H "Cache-Control: no-cache" https://raw.githubusercontent.com/N6LKA/ASL3-Connection-Log/main/install.sh | sudo bashThis will:
- Create the
/etc/asterisk/scripts/directory - Copy
conlog.shanddislog.shto that directory - Set execute permissions on both scripts
- Create the log file at
/var/log/asterisk/connectlog - Set ownership of the log file to
asterisk:asterisk
After installation, edit your /etc/asterisk/rpt.conf and add the following lines to your node stanza:
connpgm = /etc/asterisk/scripts/conlog.sh
discpgm = /etc/asterisk/scripts/dislog.shAfter editing rpt.conf, restart Asterisk:
sudo systemctl restart asterisk/var/log/asterisk/connectlog
Example log entries:
12345 connected to 67890 on 14:32:01 - 03-11-2026
12345 disconnected from 67890 on 15:10:44 - 03-11-2026
tail -f /var/log/asterisk/connectlog| File | Description |
|---|---|
conlog.sh |
Logs node connections |
dislog.sh |
Logs node disconnections |
install.sh |
Installation script |
If this project has been useful to you, please consider supporting its development!
GNU General Public License v3.0 (GPLv3) — Copyright 2026 Larry K. Aycock (N6LKA)
See LICENSE for details.
