Claude 402ff76f3f CRITICAL FIX: Asterisk Startup Failure - Easy Asterisk v1.37.2
ROOT CAUSE:
Script was disabling Stasis module along with optional modules (ARI, HTTP, etc.).
Stasis is REQUIRED in Asterisk 20.x - it's the core message bus system.

ERROR MESSAGE:
"Stasis initialization failed. ASTERISK EXITING!"

SYMPTOMS:
- Asterisk exits with code 1 immediately after start
- No certificate or PJSIP errors
- Happens on fresh installs with Server Only option

THE BUG:
In repair_core_configs() line 1479:
```bash
for conf in stasis ari http manager geolocation; do
    echo -e "[general]\nenabled = no" > "/etc/asterisk/${conf}.conf"
done
```
This created /etc/asterisk/stasis.conf with "enabled = no"
Asterisk 20.x cannot run without Stasis.

THE FIX:
1. Removed 'stasis' from the disable loop
2. Created proper stasis.conf with [general] section only
3. Only disable optional modules: ari, http, manager, geolocation

USER FIX (if already installed):
```bash
sudo rm /etc/asterisk/stasis.conf
sudo systemctl restart asterisk
```

IMPACT:
- Fixes all Asterisk startup failures from v1.37/v1.37.1
- No changes to existing working installations
- Critical for new server installations

Version: 1.37.1 → 1.37.2 (hotfix)

Resolves user-reported issue: Asterisk failing to start during installation
2025-12-04 15:29:48 +00:00
2025-11-28 18:28:24 -05:00
S
Description
Mirror of outis1one/easy-asterisk from GitHub
GPL-3.0
408 KiB
Languages
Shell 98.9%
Dockerfile 1.1%