Instalasi Manual Active Calls pada FusionPBX

 Biasanya active calls tidak langsung running karena pada saat proses instalasi tidak terinstall 

Berikut cara mengaktifkannya :

Langkah 1: Buat File Service Systemd

Buat file websockets.service di direktori /etc/systemd/system/:
nano /etc/systemd/system/websockets.service
Masukkan konfigurasi berikut
[Unit]
Description=Websocket Router Service

[Service]
PermissionsStartOnly=true
ExecStartPre=mkdir -p /var/run/fusionpbx
ExecStartPre=/usr/bin/chown www-data:www-data /var/run/fusionpbx
ExecStart=/usr/bin/php /var/www/fusionpbx/core/websockets/resources/service/websockets.php --no-fork
User=www-data
Group=www-data
Restart=always
RestartSec=5
StartLimitInterval=0

[Install]
WantedBy=multi-user.target



Langkah 2: Buat Juga Service Active Calls (Opsional)

nano /etc/systemd/system/active_calls.service
[Unit]
Description=Active Calls Websocket Service

[Service]
PermissionsStartOnly=true
ExecStartPre=mkdir -p /var/run/fusionpbx
ExecStartPre=/usr/bin/chown www-data:www-data /var/run/fusionpbx
ExecStart=/usr/bin/php /var/www/fusionpbx/app/active_calls/resources/service/active_calls.php --no-fork
User=www-data
Group=www-data
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target

Langkah 3: Aktifkan dan Start Service

# Reload systemd agar membaca file service baru
systemctl daemon-reload

# Enable service (auto-start saat boot)
systemctl enable websockets.service
systemctl enable active_calls.service

# Start service
systemctl start websockets.service
systemctl start active_calls.service

# Cek status
systemctl status websockets.service
systemctl status active_calls.service

 Langkah Verifikasi

# Cek folder /var/run/fusionpbx
ls -la /var/run/fusionpbx
# Seharusnya owner www-data:www-data

# Cek apakah service aktif
ps aux | grep websockets

Jika berhasil tampil seperti ini ya 

Active Calls FusionPBX


Thank you, semoga bermanfaat




Komentar