Topic : asterisk dead but subsys locked
Introduction:
This article is about the issue "asterisk dead but subsys locked" while restarting the asterisk and while checking the status.
Steps to solve this.
1. check the asterisk log for error based on that resolve the issue type asterisk -vvvgc to see what causing this issue ,for eg, if you see unable to load module, then u need to disable the module form /etc/asterisk/modules.conf
noload => chan_xxx.so "note xxx the module name"
2. If there is no error due the modules in logs then proceed the below steps
a. disable the selinux (vi /etc/selinux/config)
SELINUX=disabled
b. Disable the firewall in linux
*** run the below commands in linux console
c. useradd asterisk
d. passwd asterisk
e. groupadd asterisk