[Asterisk-Users] HELP NEEDED! - Asterisk GUI

Hecken, Guido guido.hecken at gwsnettech.de
Thu Feb 24 03:41:41 MST 2005


> Do I have to cd into my asterisk source directory (that is,
> /usr/local/etc/asterisk) or otherwise? 
Yes, cd in your asterisk source dir, from where you installed it.

>Secondly, is the statement no.2 a line a need to change in a given file?
You have to change/verify some settings in phpconfig_init.php . 
Look for fakeuser=admin.
Set $reset_cmd = "./asterisk.reload";
Be shure, the script has write access in /etc/asterisk
Have something in your sudoers file (/etc/sudoers) like
apache ALL=(ALL)        NOPASSWD: ALL
to allow apache execute system commands like asterisk -r -x 'restart now'

Another important file is the manager.conf in /etc/asterisk
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0

[admin]
secret = secret
permit = 192.168.0.0/255.255.255.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user

With these settings enabled, it should work.
Be aware, this is not a secure solution since allowing apache to execute
system-commands, and using the asterisk-web-dir (/var/www/html/asterisk)
without any further security actions like .htaccess file should only be used
in trusted  environments like intranets.
We can live with these restrictions. In the meanwhile we 're testing and
evaluating the complete asterisk configuration from within mysql.

Hope, I could help you a bit...

Guido Hecken


> Sorry for all the questions but am rather lost here. I would be grateful
> if you elaborated a bit more.
> 
> Thanks in advance.
> 
> Rgds,
> Julius.
> 
> > Simple cd into your asterisk-src
> > export CVSROOT=:pserver:anoncvs at cvs.digium.com:/usr/cvsroot
> > cvs login ; password is anoncvs
> > cvs checkout phpconfig
> > Copy all php-scripts and the image folder into your webroot
> > (/var/www/html/asterisk)
> > Read/edit the config-files to fit your requirements.
> > Type in your browser http://yourserverip/phpconfig.php
> >
> > Here is a demo:
> > http://rads.netcom.utah.edu/phpconfig/phpconfig.php
> >
> > Good luck
> >
> > Guido Hecken
> >
> >
> >> -----Ursprüngliche Nachricht-----
> >> Von: Julius Kidubuka [mailto:juki at one2net.co.ug]
> >> Gesendet: Donnerstag, 24. Februar 2005 06:59
> >> An: guido.hecken at gwsnettech.de
> >> Cc: asterisk-users at lists.digium.com
> >> Betreff: RE: [Asterisk-Users] HELP NEEDED! - Asterisk GUI
> >>
> >> Thanks for your contribution Guido!
> >>
> >> Do you have a URL I can visit to help me install and configure
> >> phpconfig.php? Otherwise, I'll take a look at phpmyedit and see how ot
> >> works for me.
> >>
> >> Rgds,
> >> Julius.
> >>
> >> > Perhaps you want to use phpconfig.php "Created by p0lar, Dave Packham
> >> &
> >> > Rob
> >> > Birkinshaw". We use it within our production servers without any
> > problems,
> >> > and it does nearly everything, to configure and restart/reload
> >> asterisk.
> >> > Astman didn't run stable on our servers and after spending some hours
> >> > googling and looking arround for these problems, we switched to the
> >> PHP
> >> > solution.
> >> > BTW, another cool application is phpmyedit
> > (http://phpmyedit.org/home.php)
> >> > to have a closer look at your CDR data.
> >> >
> >> > Guido Hecken
> >> >
> >> >> -----Ursprüngliche Nachricht-----
> >> >> Von: Tzafrir Cohen [mailto:tzafrir at cohens.org.il]
> >> >> Gesendet: Donnerstag, 24. Februar 2005 01:54
> >> >> An: asterisk-users at lists.digium.com
> >> >> Betreff: Re: [Asterisk-Users] HELP NEEDED! - Asterisk GUI
> >> >>
> >> >> On Mon, Feb 21, 2005 at 08:19:58AM +0300, Julius Kidubuka wrote:
> >> >> > Hello,
> >> >> >
> >> >> > I am trying to setup an Asterisk GUI with the help of
astman(please
> >> > visit
> >> >> > http://astman.sourceforge.net/am-user-guide.html).
> >> >> >
> >> >> > I have installed astman and currently assessing my GUI using;
> >> >> > http://ipaddress-of-asteriskbox/cgi-perl/am-main.pl
> >> >> >
> >> >> > I am trying to get the menu options in my GUI to work but to no
> > avail.
> >> >> > Currently my parameters are set to;
> >> >> >
> >> >> > Asterisk Install Directory:
> >> >> /usr/ports/net/asterisk/work/asterisk-1.0.3/
> >> >> > Asterisk Config Directory: /usr/local/etc/asterisk
> >> >> > Profile Editor Working Directory: /usr/local/etc/asterisk
> >> >> >
> >> >> > Any ideas on how I can go about this?
> >> >>
> >> >> Did you encounter any problems? What is it exactly that you fail to
> >> do?
> >> >>
> >> >> Anyway, is there any ongoing work on astman? No updates in the site
> >> >> since July.
> >> >>
> >> >> --
> >> >> Tzafrir Cohen         | New signature for new address and  |  VIM is
> >> >> http://tzafrir.org.il | new homepage                       | a
Mutt's
> >> >> tzafrir at cohens.org.il |                                    |  best
> >> >> ICQ# 16849755         | Space reserved for other protocols | friend
> >> >> _______________________________________________
> >> >> Asterisk-Users mailing list
> >> >> Asterisk-Users at lists.digium.com
> >> >> http://lists.digium.com/mailman/listinfo/asterisk-users
> >> >> To UNSUBSCRIBE or update options visit:
> >> >>    http://lists.digium.com/mailman/listinfo/asterisk-users
> >> > _______________________________________________
> >> > Asterisk-Users mailing list
> >> > Asterisk-Users at lists.digium.com
> >> > http://lists.digium.com/mailman/listinfo/asterisk-users
> >> > To UNSUBSCRIBE or update options visit:
> >> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> >> >
> >>
> >
> >
> 




More information about the asterisk-users mailing list