Claim your Biolink Click Here
0 like 0 dislike
16.5k views

After I have installed asterisk I have tried to connect with it using asterisk -vvvvr. But it gave me an following error message. 

[root@localhost asterisk-11.3.0]# asterisk -r

Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
in Computers & Internet by (460 points) | 16.5k views

4 Answers

1 like 0 dislike
Best answer
If you have SELINUX enabled, it will prevent this file being created. You need to turn it off.
 
vi /etc/selinux/config
set SELINUX=disabled
and
reboot
by (1.6k points)
selected by
0 like 0 dislike
There can be many common reasons why this occurs:
 
Asterisk is not running.
You are trying to run asterisk -r as 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: asterisk -r
by (1.1k points)
0 like 0 dislike
You have to make a change in the asterisk.conf file located at /etc/asterisk
 
astrundir => /var/run/asterisk
Reboot your system and check
 
 
OR
 
First check if the file /var/run/asterisk/asterisk.ctl exists if it doesn't, then the asterisk server is not running. So start it like
 
/usr/sbin/asterisk -gvvc
 
and then asterisk -r to drop to the command line prompt worked for me.
by (820 points)
0 like 0 dislike

I have solved the problem by running the below command

asterisk -&

by (1.6k points)

Related questions

1 like 0 dislike
3 answers
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Mar 30, 2014 in Computers & Internet by Yogi (460 points) | 425 views
0 like 0 dislike
0 answers
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,310 questions
1,471 answers
569 comments
4,809 users