Re: [Asterisk-java-users] Integrating asterisk-java in Apache Tomcat
Brought to you by:
srt
From: Yves A. <yv...@gm...> - 2013-04-11 09:02:02
|
hi, thats the wrong approach... the java-agi scripts are handled by the agi-server, not by an app server like tomcat... there is a tutorial on how to use (start / stop / mapping) the agi server on the page where your link points to. yves Am 11.04.2013 10:49, schrieb Oscar Alvarez: > Yes, > > But I need info to create the servlet. > > In dialplan, I put anything like this: > > exten => 1001,1,AGI(agi://ip_Tomcat/app1) > > > I like that app1 answer tha call and hangup. > > > import net.sf.asterisk.fastagi.AGIChannel; > import net.sf.asterisk.fastagi.AGIException; > import net.sf.asterisk.fastagi.AGIRequest; > import net.sf.asterisk.fastagi.AbstractAGIScript; > > public class HelloAGIScript extends AbstractAGIScript > { > public void service(AGIRequest request, AGIChannel channel) > throws AGIException > { > // Answer the channel... > answer(channel); > > > // ...and hangup. > hangup(channel); > } > } > What is the mode tu mapping this?? > I wold find a tutorial likethis <http://www.asterisk-java.org/0.2/tutorial.html> but running in a Tomcat. > Thxx > > > 2013/4/11 Yves A. <yv...@gm... <mailto:yv...@gm...>> > > hi, > > you just have to put the asterisk-java jar file in the library > path of your tomcat (tomcat/lib) or your web-app (WEB-INF/lib). > > yves > > Am 11.04.2013 09:29, schrieb Oscar Alvarez: >> Hi, >> >> Where can I find some info for this. I need deploy the >> asterisk-java in a Tomcat servlet. >> Do you know any tutorial? >> >> Thxxx >> >> -- >> Oscar Alvarez >> >> >> ------------------------------------------------------------------------------ >> Precog is a next-generation analytics platform capable of advanced >> analytics on semi-structured data. The platform includes APIs for building >> apps and a phenomenal toolset for data science. Developers can use >> our toolset for easy data analysis & visualization. Get a free account! >> http://www2.precog.com/precogplatform/slashdotnewsletter >> >> >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... <mailto:Ast...@li...> >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for > building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free > account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > <mailto:Ast...@li...> > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > -- > Oscar Alvarez > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |