Re: [Asterisk-java-users] To run a standalone java program in a browser
Brought to you by:
srt
From: Patrick B. <bre...@go...> - 2008-02-28 11:05:56
|
Hi Preetha, so you can use the package manager from your linux distribution to install a tomcat on your machine. If you are using e.g. debian, use: $> apt-get install tomcat I don't now if there is a way to run asp.net in a tomcat container, but you can use tomcat only for originate. So create a Webapp in your preffered Java IDE (Eclipse), put the asterisk java lib into the lib-Dir for tomcat webapps. Create a Servlet with a .doGet() Method, so you can extract the extension parameter from URL with ... request.getAttribute("extension"); ... and you can use your Asterisk-Java code. The URL is http://localhost:8080/Servlet?extension=183 Hope this helps, let me know if you have problems or other questions. Regards, Patrick preetha Ayyappan schrieb: > Hi, > > I am using Asteriskjava's managerAPI program(HelloManager.java) to > originate a call to an extension.But as it is a stanalone > application,I can able to run the program in console only.Then the > call gets originated to the extension i have specified.But my > requirement is ,If i click a number in a web based application which > is developed in asp.net <http://asp.net>,that number should be passed > to the HelloManager.java program and that number should be > originated.I cannot do this since HelloManager.java is standalone.How > could i run the java program in a browser? please let me know in > brief where should i download tomcat in my linux and how to run this? > > Thanks. > Preetha.A > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > -- Patrick Breucking <bre...@GO...> (System Engineer) * GONICUS GmbH * NL Arnsberg * Moehnestrasse 11-17 * D-59755 Arnsberg * Tel.: +49 (0) 29 32 / 9 16 - 0 * Fax: +49 (0) 29 32 / 9 16 - 278 * http://www.GONICUS.de *Sitz der Gesellschaft: Moehnestrasse 11-17 * D-59755 Arnsberg *Geschaeftsfuehrer: Rainer Luelsdorf, Alfred Schroeder *Vorsitzender des Beirats: Juergen Michels *Amtsgericht Arnsberg * HRB 1968 |