Asterisk and DeStar on Ubuntu Hardy
Fortunately 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!
This entry was posted on Friday, June 13th, 2008 at 6:34 pm and is filed under Tags: ubuntu. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Post to del.icio.us
Post to Slashdot
Digg this
June 14th, 2008 at 1:15 am
hi,
i trying to install asterisk and destar in ubuntu hardy, just like yours. but, i stuck on some errors,
when i try to run destar, the output look like this
DeStar 0.2.2, Copyright (C) 2005 by Holger Schurig and contributors.
DeStar comes with ABSOLUTELY NO WARRANTY. This is free software,
you are welcome to redistribute it under certain conditions;
see the included files GPL-2.txt and COPYRIGHT.txt
Serving application ‘page_main’ on port 8080
warning: Computing default hostname
info: Medusa (V1.11) started at Fri Jun 13 23:46:42 2008
Hostname: ns1.aisnet.indoserver.org
Port:8080
Note: you need the cdr_sqlite3_custom module to have CDR and Stats functionalities
Note: you don’t seem to have access to /var/log/asterisk/master.db yet created by cdr_sqlite3_custom. See INSTALL.txt for details.
what should i do to fix this,
thanks in advance,
regards,
Reza