[Asterisk-Users] Webui to show registered phones

Tzafrir Cohen tzafrir at cohens.org.il
Fri Oct 28 09:54:16 MST 2005


On Fri, Oct 28, 2005 at 09:39:59AM -0400, Adam Moffett wrote:
> 
> >Hi all, does anyone know if there is any app/webui that can show 
> >phones that are currently registered to *.  I guess this sort of 
> >funcionality counld be grabbed from the CLI with iax2 show peers and 
> >sip show peers, but having little programming knowledge wouldn't know 
> >where to start.
> >
> >I'm asking because we currently have several sip phones onsite and 
> >lots of remote iax2 users who would like to see availability without 
> >dialing.
> >
> >Bails 
> 
> 
> Below is a simple perl script that might do the trick.  save it to 
> [something].cgi and most any distribution's apache web server should be 
> able to run it.

That script requires running it as root. Why not use Asterisk::Manager
and connect to the manager interface? The script would also be much more
efficient.

If you find Asterisk::Manager from asterisk-perl
(http://asterisk/gnuinter.net ) to be broken, let me know and I'll send
you my up-to-date version. I'll publish it once I'll get some signs of
life from the author of asterisk-perl to know that that code is actually
legal to distribute.

> 
> If the web server isn't running on the same machine as asterisk then 
> it's a little more difficult.  

Manager interface?

-- 
Tzafrir Cohen         | tzafrir at jbr.cohens.org.il | VIM is
http://tzafrir.org.il |                           | a Mutt's  
tzafrir at cohens.org.il |                           |  best
ICQ# 16849755         |                           | friend



More information about the asterisk-users mailing list