Problem

Hi all,

i’ve followed the “Install Process for Ubuntu Server 7.04” guide but i’ve a problem.

It’s the first installation of pbxfree then when i try ."/install_amp" it say:

Checking for PEAR DB..OK Checking for PEAR Console::Getopt..OK Checking user..OK Checking if Asterisk is running..FAILED [FATAL] ./install_amp Asterisk must be running. If this is a first time install, you should start Asterisk by typing './start_asterisk start' For upgrading, you should run 'amportal start'

then i typing ./start_asterisk start.
This is the output:

STARTING ASTERISK Asterisk ended with exit status 1 Asterisk died with code 1. Automatically restarting Asterisk.

system is looping with this message.

Can you help me?
Thanks

I had the same problem when doing my install last weekend. I ended up having to recompile both asterisk 1.2 and zaptel 1.2 using the latest SVN branches. It looks like there is an error with some versions of the safe_asterisk script where it can’t find the pid for asterisk so it thinks that it hasn’t started. In any event, try this (from Ubuntu 6.06 install guide)…it worked for me:

cd /usr/src svn co http://svn.digium.com/svn/asterisk/branches/1.2 asterisk-1.2 svn co http://svn.digium.com/svn/zaptel/branches/1.2 zaptel-1.2 svn co http://svn.digium.com/svn/asterisk-addons/branches/1.2 asterisk-addons-1.2 svn co http://svn.digium.com/svn/asterisk/trunk/sounds asterisk-sounds

cd /usr/src/zaptel-1.2
sed -i ‘s!^#define ECHO_CAN_KB1!/* #define ECHO_CAN_KB1 */!’ zconfig.h
sed -i ‘s!/* #define ECHO_CAN_MG2 */!#define ECHO_CAN_MG2!’ zconfig.h
make install

cd /usr/src/asterisk-1.2 && make install

cd /usr/src/asterisk-addons-1.2
sed -i ‘s/_GNU_SOURCE/_GNU_SOURCE -DMYSQL_LOGUNIQUEID/’ Makefile
make install

Hope that helps!