Re: [Asterisk-java-users] Integrating asterisk-java in Apache Tomcat
Brought to you by:
srt
From: Oscar A. <osc...@gm...> - 2013-04-11 08:49:24
|
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 like this <http://www.asterisk-java.org/0.2/tutorial.html> but running in a Tomcat. Thxx 2013/4/11 Yves A. <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 lis...@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... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- Oscar Alvarez |