asterisk-java-users Mailing List for Asterisk-Java Library (Page 107)
Brought to you by:
srt
You can subscribe to this list here.
2005 |
Jan
|
Feb
(8) |
Mar
(33) |
Apr
(36) |
May
(19) |
Jun
(21) |
Jul
(53) |
Aug
(30) |
Sep
(36) |
Oct
(34) |
Nov
(43) |
Dec
(72) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(123) |
Feb
(75) |
Mar
(86) |
Apr
(46) |
May
(41) |
Jun
(29) |
Jul
(76) |
Aug
(38) |
Sep
(39) |
Oct
(68) |
Nov
(16) |
Dec
(17) |
2007 |
Jan
(34) |
Feb
(18) |
Mar
(39) |
Apr
(30) |
May
(20) |
Jun
(10) |
Jul
(59) |
Aug
(54) |
Sep
(60) |
Oct
(22) |
Nov
(14) |
Dec
(10) |
2008 |
Jan
(34) |
Feb
(67) |
Mar
(65) |
Apr
(67) |
May
(60) |
Jun
(51) |
Jul
(88) |
Aug
(75) |
Sep
(47) |
Oct
(143) |
Nov
(54) |
Dec
(42) |
2009 |
Jan
(46) |
Feb
(80) |
Mar
(162) |
Apr
(159) |
May
(200) |
Jun
(34) |
Jul
(46) |
Aug
(59) |
Sep
(5) |
Oct
(35) |
Nov
(73) |
Dec
(30) |
2010 |
Jan
(23) |
Feb
(50) |
Mar
(8) |
Apr
(24) |
May
(19) |
Jun
(49) |
Jul
(56) |
Aug
(35) |
Sep
(26) |
Oct
(79) |
Nov
(39) |
Dec
(34) |
2011 |
Jan
(27) |
Feb
(22) |
Mar
(28) |
Apr
(12) |
May
(16) |
Jun
(19) |
Jul
(1) |
Aug
(64) |
Sep
(19) |
Oct
(11) |
Nov
(17) |
Dec
(12) |
2012 |
Jan
(6) |
Feb
(8) |
Mar
(15) |
Apr
(43) |
May
(41) |
Jun
(14) |
Jul
(32) |
Aug
(3) |
Sep
(4) |
Oct
(7) |
Nov
(11) |
Dec
(11) |
2013 |
Jan
(35) |
Feb
(11) |
Mar
(23) |
Apr
(25) |
May
(37) |
Jun
(47) |
Jul
(25) |
Aug
(21) |
Sep
|
Oct
(1) |
Nov
(9) |
Dec
|
2014 |
Jan
(26) |
Feb
(2) |
Mar
(18) |
Apr
(41) |
May
(7) |
Jun
(7) |
Jul
(24) |
Aug
(5) |
Sep
(6) |
Oct
(8) |
Nov
(9) |
Dec
(7) |
2015 |
Jan
(7) |
Feb
(15) |
Mar
(8) |
Apr
(12) |
May
(7) |
Jun
|
Jul
|
Aug
(5) |
Sep
(1) |
Oct
(3) |
Nov
(30) |
Dec
(3) |
2016 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
|
May
(9) |
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(8) |
Dec
(4) |
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Stefan R. <ste...@re...> - 2008-07-24 21:29:57
|
Jorge Libreros wrote: > 12 -rwxr-xr-x 1 root root 8657 2008-07-20 17:30 Procesador.class* > 20 -rwxr-xr-x 1 root root 17016 2008-07-20 17:30 Procesador.java* > 12 -rwxrwxr-- 1 root root 9171 2008-07-20 17:30 alarmprocess.jar* > 4 -rw-r--r-- 1 root root 25 2008-07-20 18:26 fastagi-mapping.properties Does it work if you use agi://localhost/Procesador ? =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: J. L. T. <ti...@ad...> - 2008-07-24 20:35:40
|
Hello Mario, thx for replying (and for your name i believe you come from the spanish world like me :), so sorry for my bad english ) My OS is: CentOS 5 ... more info is in the other mail that I sent. I don't have much experience with the agi (I know that it exist) but I'm trying to read and try whatever I can. In my company we are trying to do a "contact center", handle telephone communications, manage agents, habilities/capabilities and transfer communications between different areas and things like that, what I should do is investigate how to manage the asterisk trough a Java program. we have downloaded asterisk (1.6) installed it and configured it (it's supposed to be working) I have some peers here that can configure it (directly in the *) but nothing "visual", the classical "black screen".. what I need to do is, i.e. receive a call execute a DB query and then transfer that call, hang up a communication, things like that... If you have some tips or examples or interesting info, please I'm here... thx again... Saludos, JL 2008/7/24 Jorge Libreros <hyn...@ya...>: Hi José. > > > Don't be afraid we're all here to help, first we would need some help from > you telling us which OS are you using (Linux (which distro), Solaris, etc)- > that would be your first task - Next, we would need know what exactly plan > to do just to know that asterisk-java is the best choice to do it. (of > course java is one of the best things to do certain task). Then personally I > want to know if you do realize what's the main point to use agi's.(Also if > you are familiarized with it). > > So .. just have to start writing and we would help you. > > Mario. > > > --- On Thu, 7/24/08, José Luis Trindade <ti...@ad...> wrote: > > > From: José Luis Trindade <ti...@ad...> > > Subject: [Asterisk-java-users] Where to start? > > To: ast...@li... > > Date: Thursday, July 24, 2008, 1:29 PM > > Hello everybody!, > > > > I'm a newbie on Asterisk, I have some knowledge on Java > > but 0 in > > telephony... and here am I... alone in the dark!.. :) > > > > Please, can someone send me examples or some code to start > > up my tests?... I > > know that there are some tutorials in the wiki but I can > > not make them > > work... :S My asterisk it's supposed to be working, I > > can access to it > > directly through the AMI, but not from Java.. :S > > > > Thanks in advance for your time & patience... > > > > Saludos, > > José Luis > > > > PS: experts are stupids and ignorants at the beginning > > (just like me asking > > this questions) ... :) > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move > > Developer's challenge > > Build the coolest Linux based applications with Moblin SDK > > & win great prizes > > Grand prize is a trip for two to an Open Source event > > anywhere in the world > > > http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: J. L. T. <ti...@ad...> - 2008-07-24 19:52:57
|
Hi Tomás, Thx for replying!.. Here are the details of what I'm doing: Asterisk version: 1.6 Asterisk-Java version: 0.3-2 (I also have downloaded the 0.2) I'm trying the: HelloLiveEvents ( http://asterisk-java.org/latest/tutorial.html) from the tutorial section in the wiki and this is the result (Console): 24/07/2008 04:50:47 PM org.asteriskjava.util.internal.JavaLoggingLog info INFO: Connecting to 192.168.0.254:5038 24/07/2008 04:50:47 PM org.asteriskjava.util.internal.JavaLoggingLog info INFO: Connected via Asterisk Call Manager/1.1 24/07/2008 04:50:47 PM org.asteriskjava.util.internal.JavaLoggingLog warn ADVERTENCIA: Unsupported protocol version 'Asterisk Call Manager/1.1'. Use at your own risk. 24/07/2008 04:50:48 PM org.asteriskjava.util.internal.JavaLoggingLog info INFO: Successfully logged in 24/07/2008 04:50:48 PM org.asteriskjava.util.internal.JavaLoggingLog info INFO: Determined Asterisk version: Asterisk 1.0 24/07/2008 04:50:48 PM org.asteriskjava.util.internal.JavaLoggingLog error GRAVE: Unable to set property 'bridgeduniqueid' to '1216928486.144' on org.asteriskjava.manager.event.StatusEvent: no setter 24/07/2008 04:50:48 PM org.asteriskjava.util.internal.JavaLoggingLog error GRAVE: Unable to set property 'bridgedchannel' to 'Zap/1-1' on org.asteriskjava.manager.event.StatusEvent: no setter 24/07/2008 04:50:48 PM org.asteriskjava.util.internal.JavaLoggingLog error GRAVE: Unable to set property 'channelstate' to '6' on org.asteriskjava.manager.event.StatusEvent: no setter 24/07/2008 04:50:48 PM org.asteriskjava.util.internal.JavaLoggingLog error GRAVE: Unable to set property 'channelstatedesc' to 'Up' on org.asteriskjava.manager.event.StatusEvent: no setter 24/07/2008 04:50:48 PM org.asteriskjava.util.internal.JavaLoggingLog error GRAVE: Unable to set property 'bridgeduniqueid' to '1216928488.145' on org.asteriskjava.manager.event.StatusEvent: no setter 24/07/2008 04:50:48 PM org.asteriskjava.util.internal.JavaLoggingLog error GRAVE: Unable to set property 'bridgedchannel' to 'Zap/2-1' on org.asteriskjava.manager.event.StatusEvent: no setter 24/07/2008 04:50:48 PM org.asteriskjava.util.internal.JavaLoggingLog error GRAVE: Unable to set property 'items' to '2' on org.asteriskjava.manager.event.StatusCompleteEvent: no setter 24/07/2008 04:50:48 PM org.asteriskjava.util.internal.JavaLoggingLog info INFO: Adding new channel Zap/2-1 24/07/2008 04:50:48 PM org.asteriskjava.util.internal.JavaLoggingLog info INFO: Adding new channel Zap/1-1 24/07/2008 04:50:48 PM org.asteriskjava.util.internal.JavaLoggingLog info INFO: Initializing done AsteriskChannel[id='1216928488.145',name='Zap/2-1',callerId='<1500>',state='UP',account='null',dateOfCreation=Thu Jul 24 16:50:48 ART 2008,dialedChannel=null,dialingChannel=null,linkedChannel=null] AsteriskChannel[id='1216928486.144',name='Zap/1-1',callerId='<1502>',state='null',account='null',dateOfCreation=Thu Jul 24 16:41:26 ART 2008,dialedChannel=null,dialingChannel=null,linkedChannel=null] I can login to * but I have no idea of how to go on, I mean, I would need to execute basic commands, like get the status of Peers or login an agent, hangup a communication.... or basic actions, but I can't find examples... Thanks for your time buddy! Saludos, José Luis 2008/7/24 Tomás Laureano Peralta Tormey < tom...@gm...>: > On Thu, Jul 24, 2008 at 3:29 PM, José Luis Trindade <ti...@ad...> > wrote: > >> Hello everybody!, >> >> I'm a newbie on Asterisk, I have some knowledge on Java but 0 in >> telephony... and here am I... alone in the dark!.. :) >> > > Don't be afraid. At some point, we all were begginers with Asterisk and > Java in the pase. > > >> >> Please, can someone send me examples or some code to start up my tests?... >> I know that there are some tutorials in the wiki but I can not make them >> work... :S My asterisk it's supposed to be working, I can access to it >> directly through the AMI, but not from Java.. :S >> > > A good starting point would be describing what versions of Asterisk and > Asterisk-Java you are using, what error your application is logging and any > other debug information that could help us to find out where is located the > error. Also, a piece of the code with the problem could be really useful. > > Best regards, Tomás. > > >> >> Thanks in advance for your time & patience... >> >> Saludos, >> José Luis >> >> PS: experts are stupids and ignorants at the beginning (just like me >> asking this questions) ... :) >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: Jorge L. <hyn...@ya...> - 2008-07-24 19:40:29
|
Hi José. Don't be afraid we're all here to help, first we would need some help from you telling us which OS are you using (Linux (which distro), Solaris, etc)- that would be your first task - Next, we would need know what exactly plan to do just to know that asterisk-java is the best choice to do it. (of course java is one of the best things to do certain task). Then personally I want to know if you do realize what's the main point to use agi's.(Also if you are familiarized with it). So .. just have to start writing and we would help you. Mario. --- On Thu, 7/24/08, José Luis Trindade <ti...@ad...> wrote: > From: José Luis Trindade <ti...@ad...> > Subject: [Asterisk-java-users] Where to start? > To: ast...@li... > Date: Thursday, July 24, 2008, 1:29 PM > Hello everybody!, > > I'm a newbie on Asterisk, I have some knowledge on Java > but 0 in > telephony... and here am I... alone in the dark!.. :) > > Please, can someone send me examples or some code to start > up my tests?... I > know that there are some tutorials in the wiki but I can > not make them > work... :S My asterisk it's supposed to be working, I > can access to it > directly through the AMI, but not from Java.. :S > > Thanks in advance for your time & patience... > > Saludos, > José Luis > > PS: experts are stupids and ignorants at the beginning > (just like me asking > this questions) ... :) > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge > Build the coolest Linux based applications with Moblin SDK > & win great prizes > Grand prize is a trip for two to an Open Source event > anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: T. L. P. T. <tom...@gm...> - 2008-07-24 18:37:51
|
On Thu, Jul 24, 2008 at 3:29 PM, José Luis Trindade <ti...@ad...> wrote: > Hello everybody!, > > I'm a newbie on Asterisk, I have some knowledge on Java but 0 in > telephony... and here am I... alone in the dark!.. :) > Don't be afraid. At some point, we all were begginers with Asterisk and Java in the pase. > > Please, can someone send me examples or some code to start up my tests?... > I know that there are some tutorials in the wiki but I can not make them > work... :S My asterisk it's supposed to be working, I can access to it > directly through the AMI, but not from Java.. :S > A good starting point would be describing what versions of Asterisk and Asterisk-Java you are using, what error your application is logging and any other debug information that could help us to find out where is located the error. Also, a piece of the code with the problem could be really useful. Best regards, Tomás. > > Thanks in advance for your time & patience... > > Saludos, > José Luis > > PS: experts are stupids and ignorants at the beginning (just like me asking > this questions) ... :) > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: J. L. T. <ti...@ad...> - 2008-07-24 18:28:56
|
Hello everybody!, I'm a newbie on Asterisk, I have some knowledge on Java but 0 in telephony... and here am I... alone in the dark!.. :) Please, can someone send me examples or some code to start up my tests?... I know that there are some tutorials in the wiki but I can not make them work... :S My asterisk it's supposed to be working, I can access to it directly through the AMI, but not from Java.. :S Thanks in advance for your time & patience... Saludos, José Luis PS: experts are stupids and ignorants at the beginning (just like me asking this questions) ... :) |
From: Ahsan M. <ama...@i2...> - 2008-07-24 08:05:34
|
Hello Martin, Thanks for the response. So, how can I recover from disconnection seamlessly. Any idea will be highly appriciated. I am not using vanilla Asterisk and I also varified that I can manually reconnect. However, the reason can be the load on kemp device I am using. As my asterisk server is behind it. Regards, Ahsan Mahboob -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of Martin Smith Sent: Thursday, July 24, 2008 10:37 AM To: ast...@li... Subject: Re: [Asterisk-java-users] [asterisk-java 0.3.1] - BrokenPipeException with manager actions Hi Ahsan, I'm out of town right now at OSCON, but my initial reading of your problem sounds like you've been simply disconnected and can't reconnect to the server. Is there any reason that might be the case? Can you verify that you can still manually connect? Are you using vanilla Asterisk? Thanks! Martin -----Original Message----- From: ast...@li... on behalf of Ahsan Mahboob Sent: Wed 7/23/2008 8:02 AM To: ast...@li... Subject: Re: [Asterisk-java-users] [asterisk-java 0.3.1] - Broken PipeException with manager actions In addition to the Broken Pipe problem.. First I receive the Timeout Exception (stack trace is as follows). Then my application continues to receive the Broken Pipe exception on every originated manager action afterwards. org.asteriskjava.manager.TimeoutException: Timeout waiting for response to Agents at org.asteriskjava.manager.internal.ManagerConnectionImpl.sendAction(ManagerCo nnectionImpl.java:809) at org.asteriskjava.manager.DefaultManagerConnection.sendAction(DefaultManagerC onnection.java:289) at com.i2c.asterisk.engine.AsteriskProviderImpl.sendManagerActionWithResponse(A steriskProviderImpl.java:159) at com.i2c.asterisk.service.agentstatus.AgentStatusObserverService.run(AgentSta tusObserverService.java:71) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Regards, Ahsan Mahboob _____ To: ast...@li... Subject: [Asterisk-java-users] asterisk-java 0.3.1 - Broken Pipe Exceptionwith manager actions Hello, I am facing the following exception while originating manager actions and after this exception my manager connection got stuck. java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336) at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404) at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:408) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213) at java.io.BufferedWriter.flush(BufferedWriter.java:236) at org.asteriskjava.util.internal.SocketConnectionFacadeImpl.flush(SocketConnec tionFacadeImpl.java:101) at org.asteriskjava.manager.internal.ManagerWriterImpl.sendAction(ManagerWriter Impl.java:79) at org.asteriskjava.manager.internal.ManagerConnectionImpl.sendAction(ManagerCo nnectionImpl.java:860) at org.asteriskjava.manager.internal.ManagerConnectionImpl.sendAction(ManagerCo nnectionImpl.java:783) at org.asteriskjava.manager.DefaultManagerConnection.sendAction(DefaultManagerC onnection.java:289) Any help in this regard will be highly appreciated. Asterisk-Java version 0.3.1 used. Regards, Ahsan Mahboob |
From: Martin S. <ma...@be...> - 2008-07-24 04:44:45
|
It sounds like we may need some reading material on CLASSPATH issues so that more users can handle this issue. It might even be advisable to make the default mapping strategy something like a simple class that just stores a simple Map of String -> Class. If you're having issues (like this one, but not only this one) we'd welcome any contributions to the FAQ to help resolve them. Opinions on changing the default mapping strategy? FAQ contributions? Thanks folks, Martin -----Original Message----- From: ast...@li... on behalf of Mario Lenis Sent: Wed 7/23/2008 10:39 AM To: ast...@li... Subject: Re: [Asterisk-java-users] I cannot start to using asterisk-java. Hi Alejandro. Right now I'm at the same point where you were, I had test most of the things related in this post .. but non of them had work for me, can you give a hand with this since you could resolve it. Suggested problem: INFO org.asteriskjava.fastagi.ResourceBundleMappingStrategy - Resource bundle 'fastagi-mapping' not found. My CLASSPATH output is .:/root/JAVAKerberus mm Rest of information what you may need is at the post in another message. Thanks in advance. Mario. Alejandro Fernandez-7 wrote: > > Dear pal mail list: > > I'm trying to develop an IVR using asterisk-java, but I can't start using > it. > > First, I'm trying to implement your examples and this is driving me nut. > > I use jdk 1.6 under Linux. I compile HelloAgiScript without problems. > > In my extensions.conf: > > > exten => 100,n,Agi(agi://127.0.0.1:4573/HelloAgiScript) > I put directly the name of the class istead hello.agi > > > Under /home/qualium1 I have: > > asterisk-java.jar > commons-net-1.4.1.jar > fastagi-mapping.properties > HelloAgiScript.class > HelloAgiScript.java > log4j-1.2.14.jar > log4j.properties > start_server.sh > > > My CLASSPATH: > > > /home2/qualium1/HelloAgiScript.class:/home2/qualium1/fastagi- > mapping.properties:/home2/qualium1/HelloAgiScript.class:/home2/qualium1/perfil.properties:/usr/local/jdk1.6.0_05/jre/lib/ext/fastagi-mapping.properties::/usr/local/jdk1.6.0_05/jre/lib/ext:/usr/local/jdk1.6.0_05/lib:/usr/local/jdk1.6.0_05/jre/lib > > > I run the server as: > java -cp asterisk-java.jar:. org.asteriskjava.fastagi.DefaultAgiServer > > And it reply: > > 0 2008-03-23 12:08:47,222 [main] INFO > org.asteriskjava.fastagi.DefaultAgiServer - Thread pool started. > 60 2008-03-23 12:08:47,282 [main] INFO > org.asteriskjava.fastagi.DefaultAgiServer - Listening on *:4573. > > > When I call to extension 100 on the console I can see: > > > 71781 2008-03-23 12:09:59,003 [main] INFO > org.asteriskjava.fastagi.DefaultAgiServer - Received connection from > /127.0.0.1 > 71860 2008-03-23 12:09:59,082 [Asterisk-Java DaemonPool-1-thread-1] INFO > org.asteriskjava.fastagi.ResourceBundleMappingStrategy - Resource bundle > 'fastagi-mapping' not found. > 71861 2008-03-23 12:09:59,083 [Asterisk-Java DaemonPool-1-thread-1] ERROR > org.asteriskjava.fastagi.AbstractMappingStrategy - Unable to create > AgiScript instance of type HelloAgiScript: Class not found, make sure the > class exists and is available on the CLASSPATH > 71862 2008-03-23 12:09:59,084 [Asterisk-Java DaemonPool-1-thread-1] ERROR > org.asteriskjava.fastagi.internal.AgiConnectionHandler - No script > configured for URL 'agi://127.0.0.1:4573/HelloAgiScript' (script > 'HelloAgiScript') > > I read lots of mail from mailing list, but I cannot figure it up what's > wrong. > > Can you put some ligth? > > TIA > > -- > Lic. Alejandro Fernández Herrero > Product Manager > www.all-control.com.ar > > ------------------------------------------------------------------------- > 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 > > -- View this message in context: http://www.nabble.com/I-cannot-start-to-using-asterisk-java.-tp16236941p18612184.html Sent from the Asterisk-Java Users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Martin S. <ma...@be...> - 2008-07-24 04:38:40
|
Hi Ahsan, I'm out of town right now at OSCON, but my initial reading of your problem sounds like you've been simply disconnected and can't reconnect to the server. Is there any reason that might be the case? Can you verify that you can still manually connect? Are you using vanilla Asterisk? Thanks! Martin -----Original Message----- From: ast...@li... on behalf of Ahsan Mahboob Sent: Wed 7/23/2008 8:02 AM To: ast...@li... Subject: Re: [Asterisk-java-users] [asterisk-java 0.3.1] - Broken PipeException with manager actions In addition to the Broken Pipe problem.. First I receive the Timeout Exception (stack trace is as follows). Then my application continues to receive the Broken Pipe exception on every originated manager action afterwards. org.asteriskjava.manager.TimeoutException: Timeout waiting for response to Agents at org.asteriskjava.manager.internal.ManagerConnectionImpl.sendAction(ManagerCo nnectionImpl.java:809) at org.asteriskjava.manager.DefaultManagerConnection.sendAction(DefaultManagerC onnection.java:289) at com.i2c.asterisk.engine.AsteriskProviderImpl.sendManagerActionWithResponse(A steriskProviderImpl.java:159) at com.i2c.asterisk.service.agentstatus.AgentStatusObserverService.run(AgentSta tusObserverService.java:71) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Regards, Ahsan Mahboob _____ To: ast...@li... Subject: [Asterisk-java-users] asterisk-java 0.3.1 - Broken Pipe Exceptionwith manager actions Hello, I am facing the following exception while originating manager actions and after this exception my manager connection got stuck. java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336) at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404) at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:408) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213) at java.io.BufferedWriter.flush(BufferedWriter.java:236) at org.asteriskjava.util.internal.SocketConnectionFacadeImpl.flush(SocketConnec tionFacadeImpl.java:101) at org.asteriskjava.manager.internal.ManagerWriterImpl.sendAction(ManagerWriter Impl.java:79) at org.asteriskjava.manager.internal.ManagerConnectionImpl.sendAction(ManagerCo nnectionImpl.java:860) at org.asteriskjava.manager.internal.ManagerConnectionImpl.sendAction(ManagerCo nnectionImpl.java:783) at org.asteriskjava.manager.DefaultManagerConnection.sendAction(DefaultManagerC onnection.java:289) Any help in this regard will be highly appreciated. Asterisk-Java version 0.3.1 used. Regards, Ahsan Mahboob |
From: tic t. <hot...@ho...> - 2008-07-23 16:34:00
|
Hello, I'm just starting to play with asterisk-java and have the following questions. Thanks for any help ! - I did not find any way to perform the asterisk Playback equivalent (e.g. play an audio file with no possible barge-in or rewind). I can use the ExecCommand, just wondering if I missed it somewhere. - I would like to be able to send a list of audio files when collecting digits, asterisk syntax is for instance Read(file1&file2&...); using the GetDataCommand with this synyax it fails on asterisk side trying to find the audio file with '&' in its name. is there any way to do so today with *-java? - I did not find any way but to use ExecCommand to perform Dial/MeetMe/MeetMeAdmin commands, did I miss them? - Dial and MeetMe are blocking calls for asterisk (at least with default options); it's also blocking in fastagi calls, and it's always directly tight to the asterisk call (e.g. if I kill or end the fastagi thread call then the asterisk channel dies as nothing else but the agi call is in my calling dialplan) for instance today if I join a channel in a conference on agi side, I have to fork the MeetMe and keep the AGI calling thread waiting (so that agi channel stays up), and so that I can keep on doing stuff on my end. It would be nice if there already was in asterisk-java a communication bus event pattern, where all AGI inbound calls from asterisk are sent asynchronously to the bus, then application handles events in the new allocated thread, and app can send an event back to the bus to say for instance I'm done with this channel (e.g. app would have all asterisk wrapped blocking calls not blocking and asterisk-java would handle the fastagi wait on the channel). Today an agi request is the same as an agi channel, if request dies, channel dies. I looked at the live API and manager API calls, I guess using the manager API is the only way to go if you want to be able to process async events from asterisk (like hangup and dial status), would be nice if it was already patterned in a solid way in asterisk-java instead of the 3 different set of APIs. For instance today making a simple dial exec command from the AGI channel blocks the call and the thread until the call is hungup, not sure if this is of any use to anybody that requires agi (unless they're dialing out from their dialplan, but then why use asterisk-java, php would be just fine for simple agi stuffs). my ultimate idea is to have a agi only dialplan and control all the callflow from the fastagi server (offloading all SIP-only/RTP traffic to asterisk box), but then threading on fastagi needs to be clean - any plans to offer EAGI server? I would like to be able to use GetDataCommand/RecordFileCommand to interface to external audio file servers (for instance HTTP GET/PUT requests that stream file directories on external boxes, instead of having everything on asterisk box); I guess writting a new asterisk C app would be better but since EAGI already exists, why not integrate? |
From: Michael Y. <mic...@i9...> - 2008-07-23 16:07:22
|
Hello, Has there or will there be any attempt to make asterisk-java compatible with FreeSwitch? Best Regards, Mike Yara |
From: Mario L. <hyn...@ya...> - 2008-07-23 14:39:21
|
Hi Alejandro. Right now I'm at the same point where you were, I had test most of the things related in this post .. but non of them had work for me, can you give a hand with this since you could resolve it. Suggested problem: INFO org.asteriskjava.fastagi.ResourceBundleMappingStrategy - Resource bundle 'fastagi-mapping' not found. My CLASSPATH output is .:/root/JAVAKerberus mm Rest of information what you may need is at the post in another message. Thanks in advance. Mario. Alejandro Fernandez-7 wrote: > > Dear pal mail list: > > I'm trying to develop an IVR using asterisk-java, but I can't start using > it. > > First, I'm trying to implement your examples and this is driving me nut. > > I use jdk 1.6 under Linux. I compile HelloAgiScript without problems. > > In my extensions.conf: > > > exten => 100,n,Agi(agi://127.0.0.1:4573/HelloAgiScript) > I put directly the name of the class istead hello.agi > > > Under /home/qualium1 I have: > > asterisk-java.jar > commons-net-1.4.1.jar > fastagi-mapping.properties > HelloAgiScript.class > HelloAgiScript.java > log4j-1.2.14.jar > log4j.properties > start_server.sh > > > My CLASSPATH: > > > /home2/qualium1/HelloAgiScript.class:/home2/qualium1/fastagi- > mapping.properties:/home2/qualium1/HelloAgiScript.class:/home2/qualium1/perfil.properties:/usr/local/jdk1.6.0_05/jre/lib/ext/fastagi-mapping.properties::/usr/local/jdk1.6.0_05/jre/lib/ext:/usr/local/jdk1.6.0_05/lib:/usr/local/jdk1.6.0_05/jre/lib > > > I run the server as: > java -cp asterisk-java.jar:. org.asteriskjava.fastagi.DefaultAgiServer > > And it reply: > > 0 2008-03-23 12:08:47,222 [main] INFO > org.asteriskjava.fastagi.DefaultAgiServer - Thread pool started. > 60 2008-03-23 12:08:47,282 [main] INFO > org.asteriskjava.fastagi.DefaultAgiServer - Listening on *:4573. > > > When I call to extension 100 on the console I can see: > > > 71781 2008-03-23 12:09:59,003 [main] INFO > org.asteriskjava.fastagi.DefaultAgiServer - Received connection from > /127.0.0.1 > 71860 2008-03-23 12:09:59,082 [Asterisk-Java DaemonPool-1-thread-1] INFO > org.asteriskjava.fastagi.ResourceBundleMappingStrategy - Resource bundle > 'fastagi-mapping' not found. > 71861 2008-03-23 12:09:59,083 [Asterisk-Java DaemonPool-1-thread-1] ERROR > org.asteriskjava.fastagi.AbstractMappingStrategy - Unable to create > AgiScript instance of type HelloAgiScript: Class not found, make sure the > class exists and is available on the CLASSPATH > 71862 2008-03-23 12:09:59,084 [Asterisk-Java DaemonPool-1-thread-1] ERROR > org.asteriskjava.fastagi.internal.AgiConnectionHandler - No script > configured for URL 'agi://127.0.0.1:4573/HelloAgiScript' (script > 'HelloAgiScript') > > I read lots of mail from mailing list, but I cannot figure it up what's > wrong. > > Can you put some ligth? > > TIA > > -- > Lic. Alejandro Fernández Herrero > Product Manager > www.all-control.com.ar > > ------------------------------------------------------------------------- > 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 > > -- View this message in context: http://www.nabble.com/I-cannot-start-to-using-asterisk-java.-tp16236941p18612184.html Sent from the Asterisk-Java Users mailing list archive at Nabble.com. |
From: Ahsan M. <ama...@i2...> - 2008-07-23 12:05:35
|
In addition to the Broken Pipe problem.. First I receive the Timeout Exception (stack trace is as follows). Then my application continues to receive the Broken Pipe exception on every originated manager action afterwards. org.asteriskjava.manager.TimeoutException: Timeout waiting for response to Agents at org.asteriskjava.manager.internal.ManagerConnectionImpl.sendAction(ManagerCo nnectionImpl.java:809) at org.asteriskjava.manager.DefaultManagerConnection.sendAction(DefaultManagerC onnection.java:289) at com.i2c.asterisk.engine.AsteriskProviderImpl.sendManagerActionWithResponse(A steriskProviderImpl.java:159) at com.i2c.asterisk.service.agentstatus.AgentStatusObserverService.run(AgentSta tusObserverService.java:71) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Regards, Ahsan Mahboob _____ To: ast...@li... Subject: [Asterisk-java-users] asterisk-java 0.3.1 - Broken Pipe Exceptionwith manager actions Hello, I am facing the following exception while originating manager actions and after this exception my manager connection got stuck. java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336) at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404) at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:408) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213) at java.io.BufferedWriter.flush(BufferedWriter.java:236) at org.asteriskjava.util.internal.SocketConnectionFacadeImpl.flush(SocketConnec tionFacadeImpl.java:101) at org.asteriskjava.manager.internal.ManagerWriterImpl.sendAction(ManagerWriter Impl.java:79) at org.asteriskjava.manager.internal.ManagerConnectionImpl.sendAction(ManagerCo nnectionImpl.java:860) at org.asteriskjava.manager.internal.ManagerConnectionImpl.sendAction(ManagerCo nnectionImpl.java:783) at org.asteriskjava.manager.DefaultManagerConnection.sendAction(DefaultManagerC onnection.java:289) Any help in this regard will be highly appreciated. Asterisk-Java version 0.3.1 used. Regards, Ahsan Mahboob |
From: Ahsan M. <ama...@i2...> - 2008-07-23 11:34:23
|
Hello, I am facing the following exception while originating manager actions and after this exception my manager connection got stuck. java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336) at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404) at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:408) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213) at java.io.BufferedWriter.flush(BufferedWriter.java:236) at org.asteriskjava.util.internal.SocketConnectionFacadeImpl.flush(SocketConnec tionFacadeImpl.java:101) at org.asteriskjava.manager.internal.ManagerWriterImpl.sendAction(ManagerWriter Impl.java:79) at org.asteriskjava.manager.internal.ManagerConnectionImpl.sendAction(ManagerCo nnectionImpl.java:860) at org.asteriskjava.manager.internal.ManagerConnectionImpl.sendAction(ManagerCo nnectionImpl.java:783) at org.asteriskjava.manager.DefaultManagerConnection.sendAction(DefaultManagerC onnection.java:289) Any help in this regard will be highly appreciated. Asterisk-Java version 0.3.1 used. Regards, Ahsan Mahboob |
From: preetha A. <pre...@gm...> - 2008-07-23 10:23:28
|
Hi, I am trying to hangup the meetme function using fastagi.Is there any method like hangup() for meetme in fastagi? Thanks and regards, -- Preetha.A |
From: Julien T. <om...@gm...> - 2008-07-22 21:03:02
|
Jorge Libreros wrote: > Hi Martin. > > This the output for permissions. > > 12 -rwxr-xr-x 1 root root 8657 2008-07-20 17:30 Procesador.class* > 20 -rwxr-xr-x 1 root root 17016 2008-07-20 17:30 Procesador.java* > 12 -rwxrwxr-- 1 root root 9171 2008-07-20 17:30 alarmprocess.jar* > 4 -rw-r--r-- 1 root root 25 2008-07-20 18:26 fastagi-mapping.properties > > I'm following the http://asterisk-java.org/development/tutorial.html where it says that inside the extensions.conf should be the call to the agi as follows: > > exten => 1300,1,Agi(agi://localhost/hello.agi) > > I was thingking about "Also, your log output suggests that the mapping > file isn't on the classpath still" when I read the CLASSPATH variable I received > > :. > So I tried to include into the classpath the route /root/JAVAKerberus but didn't work either. The actual output of the CLASSPATH variable is > > echo $CLASSPATH > :.:/root/JAVAKerberus/ > > > mmmm. You mentioned that there's another methods for mapping, can you help me whith that?. > > Thanks.. I'm not desperate yet since I know for sure that mapping issue can be solved.:D > Hi mario, Could you please post the code in Procesador.java and post the output of a "ls -all" on the full path to your asterisk-java.jar ? Julien |
From: Jorge L. <hyn...@ya...> - 2008-07-22 13:59:18
|
Hi Martin. This the output for permissions. 12 -rwxr-xr-x 1 root root 8657 2008-07-20 17:30 Procesador.class* 20 -rwxr-xr-x 1 root root 17016 2008-07-20 17:30 Procesador.java* 12 -rwxrwxr-- 1 root root 9171 2008-07-20 17:30 alarmprocess.jar* 4 -rw-r--r-- 1 root root 25 2008-07-20 18:26 fastagi-mapping.properties I'm following the http://asterisk-java.org/development/tutorial.html where it says that inside the extensions.conf should be the call to the agi as follows: exten => 1300,1,Agi(agi://localhost/hello.agi) I was thingking about "Also, your log output suggests that the mapping file isn't on the classpath still" when I read the CLASSPATH variable I received :. So I tried to include into the classpath the route /root/JAVAKerberus but didn't work either. The actual output of the CLASSPATH variable is echo $CLASSPATH :.:/root/JAVAKerberus/ mmmm. You mentioned that there's another methods for mapping, can you help me whith that?. Thanks.. I'm not desperate yet since I know for sure that mapping issue can be solved.:D Mario. --- On Mon, 7/21/08, Martin Smith <ma...@be...> wrote: > From: Martin Smith <ma...@be...> > Subject: Re: [Asterisk-java-users] I cannot start to using asterisk-java. > To: ast...@li... > Date: Monday, July 21, 2008, 8:53 PM > Hi Mario, > > Your dialplan surprised me... I expected to see > FastAGI(agi://.../) instead of AGI. Other than that, > double-check that you don't have any package names mixed > in -- I'm away from home so I can't verify with the > source, but try removing all of the package declarations if > you have any (try the example/sample source and file > verbatim). Also, your log output suggests that the mapping > file isn't on the classpath still, so perhaps check the > permissions on reading the file. Everything else looks > goods, so if you get desperate, try some of the other > mapping strategies too, if you don't necessarily need a > mapping file -- if you still don't have a solution, > write us again and I'll check when I'm back in town. > > Cheers, > > Martin > > > -----Original Message----- > From: ast...@li... on > behalf of Mario Lenis > Sent: Sun 7/20/2008 11:09 PM > To: ast...@li... > Subject: Re: [Asterisk-java-users] I cannot start to using > asterisk-java. > > > Hi, every one. > > I'm having an annoying trouble with asterisk java, I > haven't be able to test > the framework since is not working for me... here's the > case: > > The Asterisk Box's response when I run it is: > > Jul 20, 2008 8:25:44 PM > org.asteriskjava.fastagi.DefaultAgiServer startup > INFO: Thread pool started. > Jul 20, 2008 8:25:44 PM > org.asteriskjava.fastagi.DefaultAgiServer startup > INFO: Listening on *:4573. > > When I make a call to the extension with the agi line, the > server response > as follows: > > Jul 20, 2008 8:25:47 PM > org.asteriskjava.fastagi.DefaultAgiServer startup > INFO: Received connection from /127.0.0.1 > Jul 20, 2008 8:25:47 PM > org.asteriskjava.fastagi.ResourceBundleMappingStrategy > loadResourceBundle > INFO: Resource bundle 'fastagi-mapping' not found. > Jul 20, 2008 8:25:47 PM > org.asteriskjava.fastagi.AbstractMappingStrategy > createAgiScriptInstance > SEVERE: Unable to create AgiScript instance of type > kerberus: Class not > found, make sure the class exists and is available on the > CLASSPATH > Jul 20, 2008 8:25:47 PM > org.asteriskjava.fastagi.internal.AgiConnectionHandler run > SEVERE: No script configured for URL > 'agi://localhost/kerberus' (script > 'kerberus') > > I realize that the problem is the > fastagi-mapping.properties since is the > first strange thing: > > Jul 20, 2008 8:25:47 PM > org.asteriskjava.fastagi.ResourceBundleMappingStrategy > loadResourceBundle > INFO: Resource bundle 'fastagi-mapping' not found. > > I had checked many times the struture and the tutorial but > still doesn't > work. this is the structure. > > JAVAKerberus > +---- Procesador.class > +---- Procesador.java > +---- alarmprocess.jar > +---- fastagi-mapping.properties > > So I execute the jar file like this: > > root@nibelheim:/home/JAVAKerberus# java -cp > alarmprocess.jar:. > org.asteriskjava.fastagi.DefaultAgiServer > > The fastagi-mapping.properties contains a single line: > kerberus.agi = Procesador > > and the extension.conf in the asterisk box contains > > exten => 624,1,Agi(agi://localhost/kerberus.agi) > > > I hope all of you can give a light since I haven't be > able to solve this. > > Thanks in advance. > > Mario > Mechatronic Eng. > -- > View this message in context: > http://www.nabble.com/I-cannot-start-to-using-asterisk-java.-tp16236941p18561429.html > Sent from the Asterisk-Java Users mailing list archive at > Nabble.com. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge > Build the coolest Linux based applications with Moblin SDK > & win great prizes > Grand prize is a trip for two to an Open Source event > anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge > Build the coolest Linux based applications with Moblin SDK > & win great prizes > Grand prize is a trip for two to an Open Source event > anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Martin S. <ma...@be...> - 2008-07-22 01:53:00
|
Hi Mario, Your dialplan surprised me... I expected to see FastAGI(agi://.../) instead of AGI. Other than that, double-check that you don't have any package names mixed in -- I'm away from home so I can't verify with the source, but try removing all of the package declarations if you have any (try the example/sample source and file verbatim). Also, your log output suggests that the mapping file isn't on the classpath still, so perhaps check the permissions on reading the file. Everything else looks goods, so if you get desperate, try some of the other mapping strategies too, if you don't necessarily need a mapping file -- if you still don't have a solution, write us again and I'll check when I'm back in town. Cheers, Martin -----Original Message----- From: ast...@li... on behalf of Mario Lenis Sent: Sun 7/20/2008 11:09 PM To: ast...@li... Subject: Re: [Asterisk-java-users] I cannot start to using asterisk-java. Hi, every one. I'm having an annoying trouble with asterisk java, I haven't be able to test the framework since is not working for me... here's the case: The Asterisk Box's response when I run it is: Jul 20, 2008 8:25:44 PM org.asteriskjava.fastagi.DefaultAgiServer startup INFO: Thread pool started. Jul 20, 2008 8:25:44 PM org.asteriskjava.fastagi.DefaultAgiServer startup INFO: Listening on *:4573. When I make a call to the extension with the agi line, the server response as follows: Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.DefaultAgiServer startup INFO: Received connection from /127.0.0.1 Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.ResourceBundleMappingStrategy loadResourceBundle INFO: Resource bundle 'fastagi-mapping' not found. Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.AbstractMappingStrategy createAgiScriptInstance SEVERE: Unable to create AgiScript instance of type kerberus: Class not found, make sure the class exists and is available on the CLASSPATH Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.internal.AgiConnectionHandler run SEVERE: No script configured for URL 'agi://localhost/kerberus' (script 'kerberus') I realize that the problem is the fastagi-mapping.properties since is the first strange thing: Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.ResourceBundleMappingStrategy loadResourceBundle INFO: Resource bundle 'fastagi-mapping' not found. I had checked many times the struture and the tutorial but still doesn't work. this is the structure. JAVAKerberus +---- Procesador.class +---- Procesador.java +---- alarmprocess.jar +---- fastagi-mapping.properties So I execute the jar file like this: root@nibelheim:/home/JAVAKerberus# java -cp alarmprocess.jar:. org.asteriskjava.fastagi.DefaultAgiServer The fastagi-mapping.properties contains a single line: kerberus.agi = Procesador and the extension.conf in the asterisk box contains exten => 624,1,Agi(agi://localhost/kerberus.agi) I hope all of you can give a light since I haven't be able to solve this. Thanks in advance. Mario Mechatronic Eng. -- View this message in context: http://www.nabble.com/I-cannot-start-to-using-asterisk-java.-tp16236941p18561429.html Sent from the Asterisk-Java Users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Martin S. <ma...@be...> - 2008-07-22 01:42:59
|
Hi Vincent, The code you pasted looks like it doesn't use the mapping file strategy. There's more than one way for Asterisk-Java to figure out how to dispatch requests. The example you're referring to uses "agiServer.setMappingStrategy(new ClassNameMappingStrategy(false));". That means your URL should actually consist of the class name, as described at http://asterisk-java.org/apidocs/org/asteriskjava/fastagi/ClassNameMappingStrategy.html. You need to correct your FastAGI(...) url *or* change the mapping-strategy to the ResourceBundleMappingStrategy. Cheers, Martin -----Original Message----- From: ast...@li... on behalf of Vincent LAUGIER Sent: Sun 7/20/2008 3:35 PM To: ast...@li... Subject: [Asterisk-java-users] jboss CLASSPATH (again) Hello, this post is related to the one posted by Svante Paldan and replied by Martin Smith I have just subscribed to the mailing list so I cannot reply to previous message. sorry about that. I would be very interested if by somehow Svante has found a solution to the problem. I am exactly at the same point and I have tried all the different packaging I could think of. I am using eclipse to package things as EAR or EJB3-JAR as needed. My first attempt was to package everything in a ear project (one jar for asterisk-java, one ejb3-jar for the server, one ejb3-jar for the script, the fastagi-mapping.properties everywhere in the ear...to be sure) : asterisk-java-1.0.0-m1.jar theServer.jar (AgiMgtMBean.class, AgiMgt.class, AgiMgt$AgiServerThread.class) theScript.jar (HelloAgiScript.class) The second attempt was to package the server classes and the script class in the same java package in the same ejb3-jar. And put the asterisk-java-1.0.0-m1.jar in the lib directory of the server. Again I also put fastagi-mapping.properties everywhere (everywhere in the ejb3-jar and also in the conf directory). In both cases result is the same : at deployment I get an encouraging : 20:37:44,105 INFO [DefaultAgiServer] Listening on *:4573. but when I actually make the call on asterisk I get : 20:37:57,057 INFO [DefaultAgiServer] Received connection from /127.0.0.1 20:37:57,084 ERROR [ClassNameMappingStrategy] Unable to create AgiScript instance of type hello.agi: Class not found, make sure the class exists and is available on the CLASSPATH 20:37:57,084 ERROR [AgiConnectionHandler] No script configured for URL 'agi://localhost/hello.agi' (script 'hello.agi') I have the feeling that fastagi-mapping.properties is not really taken into account because the script class is in the same package as the 3 server classes and this should prevent any classpath problem. I have made a brillant copy-paste from http://asterisk-java.org/development/faq.html : THE SERVER CLASS : package fr.helmet.asterisk.test; import java.io.IOException; import org.apache.log4j.Logger; import org.asteriskjava.fastagi.AgiServer; import org.asteriskjava.fastagi.ClassNameMappingStrategy; import org.asteriskjava.fastagi.DefaultAgiServer; import org.jboss.annotation.ejb.Depends; import org.jboss.annotation.ejb.Management; import org.jboss.annotation.ejb.Service; //@Depends({"JNDI name of anything your Agi scripts depend on"}) @Management(AgiMgtMBean.class) @Service public class AgiMgt implements AgiMgtMBean { private static final Logger log = Logger.getLogger(AgiMgt.class); private AgiServerThread agiServerThread = null; class AgiServerThread extends Thread implements Runnable { private AgiServer agiServer; public AgiServerThread(AgiServer agiServer) { this.agiServer = agiServer; } public void run() { try { agiServer.startup(); log.info("Asterisk Gatway Interface server MBean has been started"); } catch (IOException e) // NOPMD { // nothing we can do about that and exceptions have already been // logged by startup(). log.trace("Exception from startUp(), probably already logged", e); } } public AgiServer getAgiServer() { return agiServer; } } public void start() throws Exception { try { // get agi server & start it DefaultAgiServer agiServer = new DefaultAgiServer(); agiServer.setMappingStrategy(new ClassNameMappingStrategy(false)); agiServerThread = new AgiServerThread(agiServer); agiServerThread.start(); } catch (Exception ex) { log.error("Startup failed in MBean AgiMBean -- attempting to continue", ex); } } /** * Note that on JBoss 4.0.5, this method is accidentally called twice by JBoss. It is a known bug; reports can be found at: * <p> * http://jira.jboss.org/jira/browse/EJBTHREE-711<br/> * http://jira.jboss.org/jira/browse/EJBTHREE-766<br/> * http://jira.jboss.org/jira/browse/EJBTHREE-781<br/> */ public void stop() throws Exception { if (agiServerThread != null && agiServerThread.getAgiServer() != null) { agiServerThread.getAgiServer().shutdown(); } } } THE SERVER INTERFACE package fr.helmet.asterisk.test; public interface AgiMgtMBean { public void start() throws Exception; public void stop() throws Exception; } THE AGI SCRIPT : package fr.helmet.asterisk.test; //import java.util.logging.Logger; import org.apache.log4j.BasicConfigurator; import org.apache.log4j.Logger; import org.asteriskjava.fastagi.AgiChannel; import org.asteriskjava.fastagi.AgiException; import org.asteriskjava.fastagi.AgiRequest; import org.asteriskjava.fastagi.BaseAgiScript; import org.asteriskjava.util.internal.Log4JLogger; public class HelloAgiScript extends BaseAgiScript { private static final Logger logger = Logger.getLogger(HelloAgiScript.class); public void service(AgiRequest request, AgiChannel channel) throws AgiException { // Answer the channel... answer(); logger.info("pause"); waitForDigit(20000); logger.info("resume"); // ...say hello... streamFile("welcome"); // ...and hangup. hangup(); } } Thank you for your help regards vincent |
From: Jorge L. <hyn...@ya...> - 2008-07-21 12:50:26
|
Hi Tomàs. This is the output. 12 -rwxr-xr-x 1 root root 8657 2008-07-20 17:30 Procesador.class* 20 -rwxr-xr-x 1 root root 17016 2008-07-20 17:30 Procesador.java* 12 -rwxrwxr-- 1 root root 9171 2008-07-20 17:30 alarmprocess.jar* 4 -rw-r--r-- 1 root root 25 2008-07-20 18:26 fastagi-mapping.properties Thanks. Mario --- On Sun, 7/20/08, Tomás Laureano Peralta Tormey <tom...@gm...> wrote: > From: Tomás Laureano Peralta Tormey <tom...@gm...> > Subject: Re: [Asterisk-java-users] fastagi-mapping.properties issue > To: ast...@li... > Date: Sunday, July 20, 2008, 11:43 PM > Mario: > Everything seems to be OK with your application and its > environment. Could > you please post the output of "ls -lsa > /home/JAVAKerberus/"? That would be a > great help. > > Best regards, Tomás. |
From: Jeff L. <ll...@gm...> - 2008-07-21 09:51:59
|
Thanks Gaetan, that's exactly what I'm looking for. On Fri, Jul 18, 2008 at 11:56 PM, Gaëtan Minet <gm...@ea...> wrote: > Hi Jeff > It depends on how you started the music on hold. I think the simpler > solution is to start it asynchronously and have the thread sleep/wait. > > If you're using AGI, maybe you're looking for something like the > StartMusicOnHold([class]) and StopMusicOnHold() dialplan applications ? > With astaerisk-java, you can exec them through AgiChannel or use the > builtin agi command in AgiChannel: > > public void playMusicOnHold(String musicOnHoldClass) throws AgiException > { > sendCommand(new SetMusicOnCommand(musicOnHoldClass)); > } > > public void stopMusicOnHold() throws AgiException > { > sendCommand(new SetMusicOffCommand()); > } > > > In your case: > > 1. StartMusicOnHold() > 2. while ( ! isDone() && ! timeout ) { sleep 1 second } > 3. StopMusicOnHold() > > or better use wait() and signal the agi thread when done. > > > Kind regards > > Gaetan > > > > On 18/07/2008, at 12:21, Jeff Li wrote: > > Hi *, > > I need to stop the being played wait-by music as soon as an external task > is finished. I was wondering that if there is some apps like Monitor() > ,which I can signal it on before checking the status of the task and then > signal it off when the status is available. > > Or anyone has some sophisticated solution to help? > > Thanks, > -- > Jeff > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- Regards, Jeff |
From: Thameem A. <tha...@ya...> - 2008-07-21 06:27:08
|
You are missing the port number when you call your agi server from asterisk. -Thameem ----- Original Message ---- From: Tomás Laureano Peralta Tormey <tom...@gm...> To: ast...@li... Sent: Sunday, July 20, 2008 9:43:03 PM Subject: Re: [Asterisk-java-users] fastagi-mapping.properties issue Mario: Everything seems to be OK with your application and its environment. Could you please post the output of "ls -lsa /home/JAVAKerberus/"? That would be a great help. Best regards, Tomás. On Sun, Jul 20, 2008 at 10:37 PM, Jorge Libreros <hyn...@ya...> wrote: Hi. I'm having problems with the fastagi-mapping.properties file. The Box response when I run it is: Jul 20, 2008 8:25:44 PM org.asteriskjava.fastagi.DefaultAgiServer startup INFO: Thread pool started. Jul 20, 2008 8:25:44 PM org.asteriskjava.fastagi.DefaultAgiServer startup INFO: Listening on *:4573. When I make a call to the extension with the agi line, the server response as follows: Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.DefaultAgiServer startup INFO: Received connection from /127.0.0.1 Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.ResourceBundleMappingStrategy loadResourceBundle INFO: Resource bundle 'fastagi-mapping' not found. Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.AbstractMappingStrategy createAgiScriptInstance SEVERE: Unable to create AgiScript instance of type kerberus: Class not found, make sure the class exists and is available on the CLASSPATH Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.internal.AgiConnectionHandler run SEVERE: No script configured for URL 'agi://localhost/kerberus' (script 'kerberus') I realize that the problem is the fastagi-mapping.properties since is the first strange thing: Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.ResourceBundleMappingStrategy loadResourceBundle INFO: Resource bundle 'fastagi-mapping' not found. I had checked many times the struture and the tutorial but still doesn't work. this is the structure. JAVAKerberus | |---- Procesador.class |---- Procesador.java |---- alarmprocess.jar \ --- fastagi-mapping.properties So I execute the jar file like this: root@nibelheim:/home/JAVAKerberus# java -cp alarmprocess.jar:. org.asteriskjava.fastagi.DefaultAgiServer The fastagi-mapping.properties contains a single line: kerberus.agi = Procesador and the extension.conf in the asterisk box contains exten => 624,1,Agi(agi://localhost/kerberus.agi) I hope all of you can give a light since I haven't be able to solve this. Thnaks in advance. Mario ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: T. L. P. T. <tom...@gm...> - 2008-07-21 04:42:54
|
Mario: Everything seems to be OK with your application and its environment. Could you please post the output of "ls -lsa /home/JAVAKerberus/"? That would be a great help. Best regards, Tomás. On Sun, Jul 20, 2008 at 10:37 PM, Jorge Libreros <hyn...@ya...> wrote: > Hi. > > I'm having problems with the fastagi-mapping.properties file. The Box > response when I run it is: > > Jul 20, 2008 8:25:44 PM org.asteriskjava.fastagi.DefaultAgiServer startup > INFO: Thread pool started. > Jul 20, 2008 8:25:44 PM org.asteriskjava.fastagi.DefaultAgiServer startup > INFO: Listening on *:4573. > > When I make a call to the extension with the agi line, the server response > as follows: > > Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.DefaultAgiServer startup > INFO: Received connection from /127.0.0.1 > Jul 20, 2008 8:25:47 PM > org.asteriskjava.fastagi.ResourceBundleMappingStrategy loadResourceBundle > INFO: Resource bundle 'fastagi-mapping' not found. > Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.AbstractMappingStrategy > createAgiScriptInstance > SEVERE: Unable to create AgiScript instance of type kerberus: Class not > found, make sure the class exists and is available on the CLASSPATH > Jul 20, 2008 8:25:47 PM > org.asteriskjava.fastagi.internal.AgiConnectionHandler run > SEVERE: No script configured for URL 'agi://localhost/kerberus' (script > 'kerberus') > > I realize that the problem is the fastagi-mapping.properties since is the > first strange thing: > > Jul 20, 2008 8:25:47 PM > org.asteriskjava.fastagi.ResourceBundleMappingStrategy loadResourceBundle > INFO: Resource bundle 'fastagi-mapping' not found. > > I had checked many times the struture and the tutorial but still doesn't > work. this is the structure. > > JAVAKerberus > | > |---- Procesador.class > |---- Procesador.java > |---- alarmprocess.jar > \ --- fastagi-mapping.properties > > So I execute the jar file like this: > > root@nibelheim:/home/JAVAKerberus# java -cp alarmprocess.jar:. > org.asteriskjava.fastagi.DefaultAgiServer > > The fastagi-mapping.properties contains a single line: > kerberus.agi = Procesador > > and the extension.conf in the asterisk box contains > > exten => 624,1,Agi(agi://localhost/kerberus.agi) > > > I hope all of you can give a light since I haven't be able to solve this. > > Thnaks in advance. > Mario > > > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Mario L. <hyn...@ya...> - 2008-07-21 03:09:21
|
Hi, every one. I'm having an annoying trouble with asterisk java, I haven't be able to test the framework since is not working for me... here's the case: The Asterisk Box's response when I run it is: Jul 20, 2008 8:25:44 PM org.asteriskjava.fastagi.DefaultAgiServer startup INFO: Thread pool started. Jul 20, 2008 8:25:44 PM org.asteriskjava.fastagi.DefaultAgiServer startup INFO: Listening on *:4573. When I make a call to the extension with the agi line, the server response as follows: Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.DefaultAgiServer startup INFO: Received connection from /127.0.0.1 Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.ResourceBundleMappingStrategy loadResourceBundle INFO: Resource bundle 'fastagi-mapping' not found. Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.AbstractMappingStrategy createAgiScriptInstance SEVERE: Unable to create AgiScript instance of type kerberus: Class not found, make sure the class exists and is available on the CLASSPATH Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.internal.AgiConnectionHandler run SEVERE: No script configured for URL 'agi://localhost/kerberus' (script 'kerberus') I realize that the problem is the fastagi-mapping.properties since is the first strange thing: Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.ResourceBundleMappingStrategy loadResourceBundle INFO: Resource bundle 'fastagi-mapping' not found. I had checked many times the struture and the tutorial but still doesn't work. this is the structure. JAVAKerberus +---- Procesador.class +---- Procesador.java +---- alarmprocess.jar +---- fastagi-mapping.properties So I execute the jar file like this: root@nibelheim:/home/JAVAKerberus# java -cp alarmprocess.jar:. org.asteriskjava.fastagi.DefaultAgiServer The fastagi-mapping.properties contains a single line: kerberus.agi = Procesador and the extension.conf in the asterisk box contains exten => 624,1,Agi(agi://localhost/kerberus.agi) I hope all of you can give a light since I haven't be able to solve this. Thanks in advance. Mario Mechatronic Eng. -- View this message in context: http://www.nabble.com/I-cannot-start-to-using-asterisk-java.-tp16236941p18561429.html Sent from the Asterisk-Java Users mailing list archive at Nabble.com. |
From: Jorge L. <hyn...@ya...> - 2008-07-21 01:37:09
|
Hi. I'm having problems with the fastagi-mapping.properties file. The Box response when I run it is: Jul 20, 2008 8:25:44 PM org.asteriskjava.fastagi.DefaultAgiServer startup INFO: Thread pool started. Jul 20, 2008 8:25:44 PM org.asteriskjava.fastagi.DefaultAgiServer startup INFO: Listening on *:4573. When I make a call to the extension with the agi line, the server response as follows: Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.DefaultAgiServer startup INFO: Received connection from /127.0.0.1 Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.ResourceBundleMappingStrategy loadResourceBundle INFO: Resource bundle 'fastagi-mapping' not found. Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.AbstractMappingStrategy createAgiScriptInstance SEVERE: Unable to create AgiScript instance of type kerberus: Class not found, make sure the class exists and is available on the CLASSPATH Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.internal.AgiConnectionHandler run SEVERE: No script configured for URL 'agi://localhost/kerberus' (script 'kerberus') I realize that the problem is the fastagi-mapping.properties since is the first strange thing: Jul 20, 2008 8:25:47 PM org.asteriskjava.fastagi.ResourceBundleMappingStrategy loadResourceBundle INFO: Resource bundle 'fastagi-mapping' not found. I had checked many times the struture and the tutorial but still doesn't work. this is the structure. JAVAKerberus | |---- Procesador.class |---- Procesador.java |---- alarmprocess.jar \ --- fastagi-mapping.properties So I execute the jar file like this: root@nibelheim:/home/JAVAKerberus# java -cp alarmprocess.jar:. org.asteriskjava.fastagi.DefaultAgiServer The fastagi-mapping.properties contains a single line: kerberus.agi = Procesador and the extension.conf in the asterisk box contains exten => 624,1,Agi(agi://localhost/kerberus.agi) I hope all of you can give a light since I haven't be able to solve this. Thnaks in advance. Mario |