2012-09-29

Hi all,

Well,I'd like to try my own graphical user interface for Asterisk.

I'm a VoIP engineer working in a TSS department. I clearly understand what VoIP is. Just for my experience I would like to try Asterisk with some WEB interface. Make some config files configurable from a WEB interface and get some status and logs again from a WEB interface.

To my best knowledge GUI is an html code and the actions taken under this page are scripts. To be honest I'm not sure what javascript and php is. I started with learning HTML to create a page.

I decided to start from a single capture(just to understand how it should be and hot to proceed further). Have created two perl scripts, one to start LAN(network) capture and the second one to stop capture.
Scripts successfully run when I run them from command prompt(e.g. using command perl myscript.pl). It starts capture, stop capture. I have downloaded captured file to be sure it made capture.

Not let`s say I want to have a WEB page where I'd have a button "Start Capture" and "Stop Capture" respectively for cap_start.pl and cap_stop.pl scripts. How should I run that scripts clicking on the button?

My understanding is I'm running a browser which sends HTTP request to httpd receives response from server and shows it up on the browser. This requests and response are done through HTML code. Scripts are to make some actions(checkings, calculations and commands to shell). Script cannot be run from WEB server(httpd). I need an engine(e.g. perl module for perl script) to run that scripts. httpd calls perl telling the scripts path which perl should run. Perl runs that scripts and replies appropriately to the http, which in it`s turn to the clinet(browser). Tell me please if I'm wrong in my understanding.

Now I'm a bit confused, cause I tried to find ways to create a button on the html code, clicking on which html code will tell the httpd to call perl to execute my perl script. I couldn't find any way to do this. They mostly tell to use PHP or JavaScripts. To say the truth I don't know what PHP and JavaScript are. I guess they are something like perl scripts.

So now I'm hanged over several suggestions and and manuals. Could you please give me a way I can achieve this? Someones tell me not to use html at all. Like saying WEB page doesn't necessarily mean a HTML code.

Could someone please show me how to get the things working and clearer to me?
Any advice would be greatly appreciated. At lease please give me some basic undertanding of this. I'm ready to continue reading manuals/tutorials. Just point me where to start from, give me some directions please.

I'm looking for solution already third day with no any working solution

P.S. I'm running apache 2 server on a CentOs system.

Thanks in advance,
AshotAr.

Statistics : Posted by ashotar • on Sat Sep 29, 2012 2:20 pm • Replies 0 • Views 8

Show more