Asterisk and DeStar on Ubuntu Hardy
Friday, June 13th, 2008Fortunately Ubuntu has packages for Asterisk and Destar located in the Universe repository, so running the following command will grab and install them for you.
sudo apt-get install asterisk destar python2.4
Hardy ships with Python 2.5 but DeStar throws errors unless it’s running on Python 2.4. Therefore you need to tell destar to use Python 2.4 instead.
edit /usr/share/destar/python/destar.py
so that the top line reads:
#!/usr/bin/python2.4
Asterisk needs to be configured to allow DeStar to manage it. To do this, create a file called destar.conf in /etc/asterisk/manager.d/ Change the secret to a password of your choosing.
[destarman]
secret=123342342
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read=,system,call,log,verbose,command,agent,user
write=,system,call,log,verbose,command,agent,user
Try DeStar now by going to http://servername:8080 The default username is admin and the password ad26. (don’t forget the dot at the end). You should change it.
In the DeStar web GUI go to Configuration > Options > Management API Access and ensure that the secret there is the same as the secret in your destarman.conf file.
You should now have Asterisk installed and DeStar configured to manage it!


