change asterisk.conf: mkdir /var/run/asterisk chown it to your asterisk user. change astrundir => /var/run to astrundir => /var/run/asterisk
My guess would be that you are running asterisk as a non-root user and that this user can not write to /var/run . if so, the ctl and PID files are not created. -- -- Steven http://www.glimasoutheast.org "Tom Castleman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi there, > > I have installed asterisk and freepbx on a Debian Sarge system. > I followed the INSTALL doc and all is well apart from the starting and > stopping of asterisk. > > I have linked /usr/sbin/amportal into rc2.d and all is well on initial > startup, however when issuing an 'amportal stop' command as > root I get "Unable to connect to remote asterisk (does /var/run/asterisk.ctl > exist?)" when it attempts to stop asterisk. Then I > run amportal start and it says it is already running (obviously if it never > stopped). Also when attempting to access the asterisk > console as root, 'asterisk -rvvvvv' for example, I get the same message. I su > to the asterisk user and get the same message. > > On a probably unrelated note, if I attempt to start asterisk via > '/etc/init.d/asterisk start' (how I had it setup before > installing freepbx) it starts then stops, exiting error code 1 or something, > then starts and stops and starts etc etc. > > I think maybe I must need to slightly refined permissions on starting and > stopping asterisk and locations of things. > > If any one could offer any advice/help it would be most appreciated. > > Kind regards, > > Tom Castleman. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
