Skip to main content

Manager Interface and Asterisk not starting

Posted by allnetworkteam on Tue, 03/23/2010

I've installed Asterisk 1.6.0.26 and ThirdLane Manager 6.0.1.78 onto CentOS 5.4. When i start up ThirdLane Manager i get a message "Could not connect to manager interface" and lose functionatily. The work around I found was to SSH into the server and run the command:

[root@server ~]# asterisk -c

At the end of the display it will show:

Asterisk Ready
*CLI>

Full functionality will return to ThirdLane.
The problem is if I close this SSH session the message "Could not connect to manager interface" will reappear and I will be back to square one.

Is there any way to have Asterisk always running in the background.


Submitted by mattdarnell on Tue, 03/23/2010 Permalink

Did you run 'make config'?

Once you do that you should be able to '/etc/init.d/asterisk start'

chkconfig dahdi on
chkconfig asterisk on
Those commands will start them when the system boots up.

-Matt

Submitted by allnetworkteam on Wed, 03/24/2010 Permalink

Thank you Matt
Unfortunately I can't go that far. I realized after your post that dahdi was never installed. When I go through the installation process I get the following

[root@server dahdi-linux-complete-2.2.1+2.2.1]# make
make -C linux all
make[1]: Entering directory `/root/dahdi-linux-complete-2.2.1+2.2.1/linux'
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory `/root/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/firmware'
make[2]: Leaving directory `/root/dahdi-linux-complete-2.2.1+2.2.1/linux/drivers/dahdi/firmware'
You do not appear to have the sources for the 2.6.18-164.el5PAE kernel installed.
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/root/dahdi-linux-complete-2.2.1+2.2.1/linux'
make: *** [all] Error 2

I've spent all day attempting to locate the source code for a 2.6.18-164.el5PAE kernel without much success.

Any suggestions as to where I can look?

Submitted by eeman on Wed, 03/24/2010 Permalink

let me guess, you installed the iso.... well yea.. the iso is missing LOTS of packages you need to compile and install

for starters...

yum groupinstall 'development-tools'

then you need to

yum install kernel-PAE-devel kernel-headers

you probably arent running the same kernel that you are about to grab the source for...

so

yum update

THEN REBOOT before compiling

Submitted by allnetworkteam on Thu, 03/25/2010 Permalink

Thank you Matt and Erik
This was a fresh install of everything. I installed CentOS, asterisk, webmin etc seperatly via yums and rpm.

It was a combination of the missing packages and the starting up of DAHDI.

Everything is working great now after following your instructions.

Thank you