Asterisk GUI RPM

So I was building RPM packages for the Asterisk GUI when it was the 1.0 branch. I haven't done work on the package in quite a while and I finally got around to building some new RPM packages for Fedora.

These Asterisk GUI RPMs are from the current SVN 2.0 branch and the SVN revision number is in the package name (e.g. RPM asterisk-gui-0.4986-3.fc11.noarch.rpm is SVN version 4986).

I try to do basic testing with the RPMs after they are built and they WorkForMe(tm) before I post them. YMMV.

The Asterisk RPM packages that are available in the Fedora repositories have some permissions issues, and directory inconsistencies with the Asterisk GUI (not any fault of the Fedora package or packager by the way) so you have to change some permissions to get my RPM working.

I've submitted a Red Hat Bugzilla (https://bugzilla.redhat.com/show_bug.cgi?id=527789) with a patch to the SRPM spec file to make my RPM JustWork if the Fedora Asterisk RPM is built from the patched SPEC.

So if you want to use my Asterisk GUI RPM on Fedora 11, here's what you need to do:


Download the Asterisk GUI RPM - asterisk-gui-0.4986-3.fc11.noarch.rpm
yum install asterisk
rpm -Uvh asterisk-gui-0.4986-3.fc11.noarch.rpm
chown -R asterisk:asterisk /etc/asterisk /usr/share/asterisk /var/lib/asterisk
Configure per the Configuration section in /usr/share/doc/asterisk-gui*/README
Login to your GUI at http://yourip:8088/static/config/index.html
Follow the directions in the GUI

I initially had problems when installing the GUI from source. I would try to login and just received an error that the GUI didn't have permissions so I gave permissions to the files and directories to the user running the asterisk process (asterisk in my case). Then I started getting a login loop where I logged in the the browser would loop on the same spot. I changed some more permissions and then the loop went away, but the the GUI just hung.

These problems appear to be a result of both permissions on files, and assumptions the GUI code makes as to where all it's files are located. If you have looping or hanging problems, check to make sure that the asterisk process user has write permissions to /etc/asterisk and all the files therein, /usr/share/asterisk (if it exists), and /var/lib/asterisk. Also, if your GUI code is not installed in /var/lib/asterisk and you're not using my RPM, make sure you have symbolic links for scripts, static-http, and gui_backups in /var/lib/asterisk to point to the location of your GUI files.

My RPM resolves this problem by patching the GUI source files (mostly the JavaScript) to expect the files to be in /usr/share/asterisk instead of /var/lib/asterisk.

If you'd like to build the Asterisk GUI RPM yourself I've provided the SRPM here:

asterisk-gui-0.4986-3.fc11.src.rpm

We also sign all of our packages so that you know that they are unaltered. You can grab our RPM GPG key here

RPM-GPG-KEY-itnc

Good luck and enjoy.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.