Re: [Asterisk-java-users] Integrating asterisk-java in Apache Tomcat
Brought to you by:
srt
From: Yves A. <yv...@gm...> - 2013-04-16 07:35:11
|
if you want to "react" on a servlet request and fire some action on asterisk, you just have to open a manager connection (from your servlet) to your asterisk and execute the appropriate action... its as easy as 1-2-3 and really well documented... have you read the docs and tried the examples? "action" can be really anything you want... and actions can be performed synchronously and asynchronously yves Am 16.04.2013 08:45, schrieb Oscar Alvarez: > I need externalize some Asterisk actions, for exemple, I need that > asterisk load/unload a module when recives a instrucciton from a Tomcat. > > > 2013/4/11 Yves A. <yv...@gm... <mailto:yv...@gm...>> > > 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... <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 |