This script file will allow your AllStarLink version 3 node to play an audio file from a deisgnated folder randomly at any designated interval. I chose to have mine play at the bot
This script file will allow your AllStarLink version 3 node to play an audio file from a deisgnated folder randomly at any designated interval. I chose to have mine play at the bottom of every hour. I
Summary Counts
0
Critical Security
0
High Security
1
Medium Security
0
Low Security
0
Critical Bugs
0
High Bugs
1
Medium Bugs
0
Low Bugs
Quick Reference
ID
Severity
Category
File
Lines
Finding
RANDOM-001
Medium
Security
random_asl3.sh
30
Unquoted node and file path in asterisk -rx
RANDOM-002
Medium
Bug
random_asl3.sh
18-20
Empty directory causes RANDOM_INDEX modulo zero
Medium Issues
[RANDOM-001] Unquoted node and file path in asterisk -rx
random_asl3.sh : 30
sudo asterisk -rx with unquoted node and path.
Impact: Unexpected filenames could break CLI parsing.
[RANDOM-002] Empty directory causes RANDOM_INDEX modulo zero
random_asl3.sh : 18-20
FILES=($1/*) with empty dir yields length 0.
Impact: Script crashes when directory has no audio files.