Problem in running Asterisk

Hi,

i have installed Asterisk on Ubuntu 8.04LTS Desktop version.

now i would like to run asterisk so, am giving the following command at

$ asterisk
getting the error "Unable to open pid file ‘/var/run/asterisk.pid’: Permission denied"
2) asterisk-r getting error
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)

pls anyone help me in solving the problem , i don’t know whether am doing any wrong in running asterisk.

chandu

Try run asterisk as root user.

Cheers.

Marco Bruni

helloMarco Bruni,

i have tried running asterisk as root user ,still am getting the same problem.

when i run the command # asterisk -r

am getting “Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)”

if i run # asterisk -vvvc
WARNING[6015]: pbx.c:2981 ast_register_application: Already have an application 'Pickup’
please help me in solving this issue.

thanks

Regards
Chandu

You are typing “sudo asterisk” first right?

hi,
am trying as a root use although am getting th same erroe,

Regards
chandu

As root try run

asterisk -vvvvvvvvvvvgc

to see if Asterisk starts or not, if not then check the last messages for the error.

Cheers.

Marco Bruni