My asterisk was running, I restarted the server, I get the following error, there is the asterisk.ctl file on the related path.
root@Mehmet:/usr/src/asterisk/asterisk-13.32.0# asterisk -cvvvvvvvvvr
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
Did you check if Asterisk service is running or not?
Try without c in options if asterisk is already running
asterisk -vvvvvvvvvr
It was working before, until I turned it on and off, -cvvvvvvvvvr again I got the same error.
What’s the output of ps aux | grep asterisk? The option -c you use with your command is to run Asterisk in the foreground. In order to connect to the running Asterisk process, you should be using option -r.