Thread: [Asterisk-java-devel] Have anyone implemetned a windows service with asterisk-java?
Brought to you by:
srt
From: Saugort D. G. T. <dg...@an...> - 2010-05-31 13:17:42
|
Hi, Have anyone implemetned a windows service with asterisk-java? I mean deploy asterisk-java in a windows machine and declare a windows controlable service from SCM. I am tried to use Java Wrapper Service (http://wrapper.tanukisoftware.org/doc/english/integrate-listener.html) but without successs. Thanks in advance |
From: Yves A. <yv...@gm...> - 2010-05-31 14:20:18
|
Hi, I don´t see, why this should not work, although there might be 100 reasons... Could you pls. explain what your objective is, what you tried and what the result was ? (no success is a bit too little info). (please include any version info) yves Saugort Dario Garcia Tovar schrieb: > Hi, > > Have anyone implemetned a windows service with asterisk-java? I mean > deploy asterisk-java in a windows machine and declare a windows > controlable service from SCM. > > I am tried to use Java Wrapper Service > (http://wrapper.tanukisoftware.org/doc/english/integrate-listener.html) > but without successs. > > Thanks in advance > > ------------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > > |
From: Saugort D. G. T. <dg...@an...> - 2010-05-31 18:43:34
|
Thanks for your answer, Basically, It is for a proyect. The final user requires that if the box fail, on restart, all services start again, automatically, and be controlled by Widnows SCM. I found Java Wrapper Service (http://wrapper.tanukisoftware.org/doc/english/integrate-listener.html) and used to create a new class to work get asterisk-java working as service. I am succeed making the service. however when a call arrives the script is not displayed. asterisk-java just said that can not find fastagi-mapping file or that demo.php is not found. So, I dont want to reinvent the wheel. If someone has work with asterisk-java in windows and make it work as a windows service, I would like to know how to do it. Yves Arikoglu wrote: > Hi, > > I don´t see, why this should not work, although there might be 100 > reasons... > Could you pls. explain what your objective is, what you tried and what > the result was ? (no success is a bit too little info). > (please include any version info) > > yves > > Saugort Dario Garcia Tovar schrieb: > >> Hi, >> >> Have anyone implemetned a windows service with asterisk-java? I mean >> deploy asterisk-java in a windows machine and declare a windows >> controlable service from SCM. >> >> I am tried to use Java Wrapper Service >> (http://wrapper.tanukisoftware.org/doc/english/integrate-listener.html) >> but without successs. >> >> Thanks in advance >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Asterisk-java-devel mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel >> >> >> > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.819 / Virus Database: 271.1.1/2908 - Release Date: 05/31/10 01:55:00 > > |
From: Yves A. <yv...@gm...> - 2010-06-01 09:18:36
|
Hi, as far as I understand your answer, your service is up and the problem lies somewhere else. But... unfortunately you supply no information at all. What do you mean by "script is not displayed"?? Between the lines I assume, you want to execute an agi when a call comes in... did you follow the instructions on how to build agi-scripts with java? did you set up a fastagi-mapping file and placed it in the right folder? how does your dialplan and your java class look like (sources...). You don´t need to set up "asterisk-java working as a service", its just a helper library. Instead, you should implement a service for starting / stopping and watching your agi-server... What is "demo.php" ?? btw.: The Java-Agi-Server is very stable. In my production I use it for my own conference-servers and IVRs with thousands of calls (with recording, dtmf-input and so on) per week and so far it never failed! yves Saugort Dario Garcia Tovar schrieb: > Thanks for your answer, > > Basically, It is for a proyect. The final user requires that if the > box fail, on restart, all services start again, automatically, and be > controlled by Widnows SCM. > > I found Java Wrapper Service > (http://wrapper.tanukisoftware.org/doc/english/integrate-listener.html) > and used to create a new class to work get asterisk-java working as > service. I am succeed making the service. however when a call arrives > the script is not displayed. asterisk-java just said that can not find > fastagi-mapping file or that demo.php is not found. > > So, I dont want to reinvent the wheel. If someone has work with > asterisk-java in windows and make it work as a windows service, I > would like to know how to do it. > > Yves Arikoglu wrote: >> Hi, >> >> I don´t see, why this should not work, although there might be 100 >> reasons... >> Could you pls. explain what your objective is, what you tried and what >> the result was ? (no success is a bit too little info). >> (please include any version info) >> >> yves >> >> Saugort Dario Garcia Tovar schrieb: >> >>> Hi, >>> >>> Have anyone implemetned a windows service with asterisk-java? I mean >>> deploy asterisk-java in a windows machine and declare a windows >>> controlable service from SCM. >>> >>> I am tried to use Java Wrapper Service >>> (http://wrapper.tanukisoftware.org/doc/english/integrate-listener.html) >>> but without successs. >>> >>> Thanks in advance >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Asterisk-java-devel mailing list >>> Ast...@li... >>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel >>> >>> >>> >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Asterisk-java-devel mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel >> ------------------------------------------------------------------------ >> >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com >> Version: 9.0.819 / Virus Database: 271.1.1/2908 - Release Date: 05/31/10 01:55:00 >> >> > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > |
From: Saugort D. G. T. <dg...@an...> - 2010-06-01 13:43:51
|
Hi Yves, If I run asterisk-java as it is provides following the instructions, everithing works fine. With script I mean an agi script, and demo.php is the example provided to use scripting (the other examples are js and grovy). That means asterisk-java if a call an agi script fastagi-mapping is found where asterisk-java expected, and if I call to demo.php, asterisk-java run fine, in boht cases I can hear the voice prompts and make input, transfer the call, etc. My problem appear when I tried to use Java Service Wrapper to create a windows service to start/stop asterisk-java FastAGI server. When the server start and receive the first call a message appear telling that can not fine "fastagi-mapping", if I call to an agi script. If I call to demo.php a message in log just said that the demo.php can not be found. The files are located in the same place I am not looking help to try to resolve my issue with Java Service Wrapper. I am looking if someone else as succeed in get asterisk-java FastAGI server working as a service in windows and how they do it. Because, if it possible I dont want reinvent the wheel. Regards, Yves Arikoglu wrote: > Hi, > > as far as I understand your answer, your service is up and the problem > lies somewhere else. > But... unfortunately you supply no information at all. > What do you mean by "script is not displayed"?? Between the lines I > assume, you want to execute > an agi when a call comes in... did you follow the instructions on how > to build agi-scripts with java? > did you set up a fastagi-mapping file and placed it in the right > folder? how does your dialplan and > your java class look like (sources...). You don´t need to set up > "asterisk-java working as a service", its > just a helper library. Instead, you should implement a service for > starting / stopping and watching your agi-server... > What is "demo.php" ?? > btw.: > The Java-Agi-Server is very stable. In my production I use it for my > own conference-servers and IVRs > with thousands of calls (with recording, dtmf-input and so on) per > week and so far it never failed! > > yves > > > Saugort Dario Garcia Tovar schrieb: >> Thanks for your answer, >> >> Basically, It is for a proyect. The final user requires that if the >> box fail, on restart, all services start again, automatically, and be >> controlled by Widnows SCM. >> >> I found Java Wrapper Service >> (http://wrapper.tanukisoftware.org/doc/english/integrate-listener.html) >> and used to create a new class to work get asterisk-java working as >> service. I am succeed making the service. however when a call arrives >> the script is not displayed. asterisk-java just said that can not >> find fastagi-mapping file or that demo.php is not found. >> >> So, I dont want to reinvent the wheel. If someone has work with >> asterisk-java in windows and make it work as a windows service, I >> would like to know how to do it. >> >> Yves Arikoglu wrote: >>> Hi, >>> >>> I don´t see, why this should not work, although there might be 100 >>> reasons... >>> Could you pls. explain what your objective is, what you tried and what >>> the result was ? (no success is a bit too little info). >>> (please include any version info) >>> >>> yves >>> >>> Saugort Dario Garcia Tovar schrieb: >>> >>>> Hi, >>>> >>>> Have anyone implemetned a windows service with asterisk-java? I mean >>>> deploy asterisk-java in a windows machine and declare a windows >>>> controlable service from SCM. >>>> >>>> I am tried to use Java Wrapper Service >>>> (http://wrapper.tanukisoftware.org/doc/english/integrate-listener.html) >>>> but without successs. >>>> >>>> Thanks in advance >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> Asterisk-java-devel mailing list >>>> Ast...@li... >>>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel >>>> >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Asterisk-java-devel mailing list >>> Ast...@li... >>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel >>> ------------------------------------------------------------------------ >>> >>> >>> No virus found in this incoming message. >>> Checked by AVG - www.avg.com >>> Version: 9.0.819 / Virus Database: 271.1.1/2908 - Release Date: 05/31/10 01:55:00 >>> >>> >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Asterisk-java-devel mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel >> > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.819 / Virus Database: 271.1.1/2909 - Release Date: 05/31/10 13:55:00 > > |