Have a nice day, Scott Berry E-mail: N7zib at northlc.com I am studying out of the book Asterisk: The Future of Telephony on Chapter 4, and right now for practicing using the built in Debian version of Asterisk for Ubuntu. I am however having some problem where I cannot do "asterisk -r" and hook up to the asterisk CLI. I have checked to see that "/var/run/asterisk/asterisk.ctl" is available which it is. I have also set up the zaptel.conf, zapata.conf and also the extensions.conf as specified in the book. The error I get is: "Unable to connect to asterisk remote (does /var/run/asterisk/asterisk.ctl exist?" Yes it certainly does. Any help would be appreciated. if need be i would be happy to send my extensions.conf, zaptel.conf, and zapata.conf to the lisOne other question I think I am correct on this but not sure does zaptel.conf and zapata.conf go in to "/etc?" Thanks for all the help.
You've checked that another asterisk is running (ps -ef|grep asterisk)? -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Scott Berry Sent: Wednesday, December 10, 2008 9:06 AM To: Asterisk Users Subject: [asterisk-users] a problem on Ubuntu with Asterisk Have a nice day, Scott Berry E-mail: N7zib at northlc.com I am studying out of the book Asterisk: The Future of Telephony on Chapter 4, and right now for practicing using the built in Debian version of Asterisk for Ubuntu. I am however having some problem where I cannot do "asterisk -r" and hook up to the asterisk CLI. I have checked to see that "/var/run/asterisk/asterisk.ctl" is available which it is. I have also set up the zaptel.conf, zapata.conf and also the extensions.conf as specified in the book. The error I get is: "Unable to connect to asterisk remote (does /var/run/asterisk/asterisk.ctl exist?" Yes it certainly does. Any help would be appreciated. if need be i would be happy to send my extensions.conf, zaptel.conf, and zapata.conf to the lisOne other question I think I am correct on this but not sure does zaptel.conf and zapata.conf go in to "/etc?" Thanks for all the help. _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Scott Berry wrote:> Have a nice day, > Scott Berry > E-mail: N7zib at northlc.com > > I am studying out of the book Asterisk: The Future of Telephony on > Chapter 4, and right now for practicing using the built in Debian > version of Asterisk for Ubuntu. I am however having some problem where > I cannot do "asterisk -r" and hook up to the asterisk CLI. I have > checked to see that "/var/run/asterisk/asterisk.ctl" is available which > it is. I have also set up the zaptel.conf, zapata.conf and also the > extensions.conf as specified in the book. The error I get is: > > "Unable to connect to asterisk remote > (does /var/run/asterisk/asterisk.ctl exist?" Yes it certainly does. > Any help would be appreciated. if need be i would be happy to send my > extensions.conf, zaptel.conf, and zapata.conf to the lisOne other > question I think I am correct on this but not sure does zaptel.conf and > zapata.conf go in to "/etc?" > > Thanks for all the help. > > > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >Permissions problems? sudo asterisk -r
On Wed, Dec 10, 2008 at 09:05:34AM -0600, Scott Berry wrote:> > Have a nice day, > Scott Berry > E-mail: N7zib at northlc.com > > I am studying out of the book Asterisk: The Future of Telephony on > Chapter 4, and right now for practicing using the built in Debian > version of Asterisk for Ubuntu.What version of Ubuntu? (and thus: what version of Asterisk) cat /etc/ubuntu_version # or something similar dpkg -l asterisk> I am however having some problem where > I cannot do "asterisk -r" and hook up to the asterisk CLI. I have > checked to see that "/var/run/asterisk/asterisk.ctl" is available which > it is. I have also set up the zaptel.conf, zapata.conf and also the > extensions.conf as specified in the book. The error I get is: > > "Unable to connect to asterisk remote > (does /var/run/asterisk/asterisk.ctl exist?" Yes it certainly does. > Any help would be appreciated. if need be i would be happy to send my > extensions.conf, zaptel.conf, and zapata.conf to the lisOne other > question I think I am correct on this but not sure does zaptel.conf and > zapata.conf go in to "/etc?"Is asterisk running? ps aux | grep asterisk If it isn't: what do you see in /var/log/asterisk/messages -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Have you do just asterisk before try to reconect to cli?? Try asterisk -vvvvvvvv to see if is crashing. -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Rodrigo Gonzalez Sent: mi?rcoles, 10 de diciembre de 2008 01:12 p.m. To: n7zib at northlc.com; Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] a problem on Ubuntu with Asterisk Scott Berry wrote:> Have a nice day, > Scott Berry > E-mail: N7zib at northlc.com > > I am studying out of the book Asterisk: The Future of Telephony on > Chapter 4, and right now for practicing using the built in Debian > version of Asterisk for Ubuntu. I am however having some problem where > I cannot do "asterisk -r" and hook up to the asterisk CLI. I have > checked to see that "/var/run/asterisk/asterisk.ctl" is available which > it is. I have also set up the zaptel.conf, zapata.conf and also the > extensions.conf as specified in the book. The error I get is: > > "Unable to connect to asterisk remote > (does /var/run/asterisk/asterisk.ctl exist?" Yes it certainly does. > Any help would be appreciated. if need be i would be happy to send my > extensions.conf, zaptel.conf, and zapata.conf to the lisOne other > question I think I am correct on this but not sure does zaptel.conf and > zapata.conf go in to "/etc?" > > Thanks for all the help. > > > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >Permissions problems? sudo asterisk -r _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users __________ Information from ESET Smart Security, version of virus signature database 3679 (20081209) __________ The message was checked by ESET Smart Security. http://www.eset.com __________ Information from ESET Smart Security, version of virus signature database 3679 (20081209) __________ The message was checked by ESET Smart Security. http://www.eset.com
On Wed, Dec 10, 2008 at 01:33:39PM -0200, Sebastian wrote:> Have you do just asterisk before try to reconect to cli?? > Try asterisk -vvvvvvvv to see if is crashing.This runs asterisk as root (instead of as the user asterisk). In the worst case it might write some files as root (e.g. the log files) that the user asterisk will not be able to overwrite. asterisk -U asterisk Or: /etc/init.d/asterisk debug -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Scott, Login as root user and start asterisk by typing asterisk and then give command asterisk -r Amit Mehta Cell: +91 9898340962 On Wed, Dec 10, 2008 at 8:35 PM, Scott Berry <n7zib at northlc.com> wrote:> > Have a nice day, > Scott Berry > E-mail: N7zib at northlc.com > > I am studying out of the book Asterisk: The Future of Telephony on > Chapter 4, and right now for practicing using the built in Debian > version of Asterisk for Ubuntu. I am however having some problem where > I cannot do "asterisk -r" and hook up to the asterisk CLI. I have > checked to see that "/var/run/asterisk/asterisk.ctl" is available which > it is. I have also set up the zaptel.conf, zapata.conf and also the > extensions.conf as specified in the book. The error I get is: > > "Unable to connect to asterisk remote > (does /var/run/asterisk/asterisk.ctl exist?" Yes it certainly does. > Any help would be appreciated. if need be i would be happy to send my > extensions.conf, zaptel.conf, and zapata.conf to the lisOne other > question I think I am correct on this but not sure does zaptel.conf and > zapata.conf go in to "/etc?" > > Thanks for all the help. > > > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >