Try to run it with this command :
You’ll enter into the Asterisk CLI and if something goes wrong you’ll see it. After that you can quit the CLI by entering the
exit command. Then you can reconnect to the CLI by typing
asterisk -r. All this commands assumed you’re the root user. If you are not root prefix them by
sudo, by example
sudo asterisk -vvvvvvc.
There are two common reasons why this occurs:
- Asterisk is not running.
- You are trying to run
asterisk -ras a non-root user.
If Asterisk isn’t running, try to start it:
asterisk -vvvc. If you are logged in as a non-root user, then log in as the root user, or just:
sudo asterisk -r.
If you have SELINUX enabled, it will prevent this file being created. You need to turn it off.