Starting Asterisk problem

dprasad_css
Joined: Tue 05 of Jan, 2010

Re: Starting Asterisk problem

Posted:Tue 02 of Mar, 2010 (15:43 UTC)
Hello

Go to this location and type cd /etc/asterisk$ sudo asterisk (and then type)
root:/etc/asterisk$ sudo asterisk -r

see if it gives you this message

certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.1.16 currently running on root

It should work, if you get any error message please post the error message here...


Thanks,
CSS_ETS03
slezhuk
Joined: Tue 09 of Feb, 2010

Re: Starting Asterisk problem

Posted:Tue 09 of Feb, 2010 (20:42 UTC)
probably your asterisk binary is not within $PATH variable. Try 'whereis asterisk'. System will show you full path to binary. It's probably something like /usr/bin/asterisk, or maybe /usr/sbin/asterisk. Anyway- you should use 'sudo $fullpath_to_asterisk_binary -r', or write needed directory to $PATH environment variable, and use 'sudo asterisk -r'.
litsnsirn
Joined: Tue 09 of Feb, 2010

Starting Asterisk problem

Posted:Tue 09 of Feb, 2010 (01:11 UTC)
Hi, I am trying to install Asterisk 1.4 on Centos 4.8, basically following the steps in the O'Reilly book. If I go to /etc/rc.d/init.d/asterisk status, it returns "asterisk (pid12730) is running...", but I cannot execute "asterisk -r" anywhere. All that ever returns is a "bash: asterisk: command not found" Am I doing something wrong?