Thread: [Asterisk-java-users] I cannot start to using asterisk-java.
Brought to you by:
srt
From: Alejandro F. <all...@gm...> - 2008-03-23 15:15:56
|
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 |
From: T. L. P. T. <tom...@gm...> - 2008-03-23 16:29:23
|
Hello Alejandro: As far I can see, you are trying to call an AGI script called HelloAgiScript from Asterisk and this AGI should be mapped to the class with the same name in the fastagi-mapping.properties file. But, if you take a look to the examples, the convention is to call a remote script with the extension .agi, and then map this script to a class. I think that the problem could be related with the contents of the file fastagi-mapping.properties. Can you please paste us the content of this file? I hope this help. Best regards, Tomás. On Sun, Mar 23, 2008 at 12:15 PM, Alejandro Fernandez <all...@gm...> 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 > > |
From: Stefan R. <ste...@re...> - 2008-03-23 16:48:00
Attachments:
signature.asc
|
Alejandro Fernandez wrote: > 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 your classpath must not contain the classes and properties files, only jar files and directories. example: export CLASSPATH=/home2/qualium1 or java -cp /home2/qualium1 ... =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: 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: 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: 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: 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: Stefan R. <ste...@re...> - 2008-07-24 21:29:57
Attachments:
signature.asc
|
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: Jorge L. <hyn...@ya...> - 2008-07-25 13:34:04
|
Mr. Stefan No, it doesn't work either. This is the output. Jul 24, 2008 7:59:26 PM org.asteriskjava.fastagi.DefaultAgiServer startup INFO: Received connection from /127.0.0.1 Jul 24, 2008 7:59:26 PM org.asteriskjava.fastagi.ResourceBundleMappingStrategy loadResourceBundle INFO: Resource bundle 'fastagi-mapping' not found. Jul 24, 2008 7:59:26 PM org.asteriskjava.fastagi.AbstractMappingStrategy createAgiScriptInstance SEVERE: Unable to create AgiScript instance of type Procesador: Class not found, make sure the class exists and is available on the CLASSPATH Jul 24, 2008 7:59:26 PM org.asteriskjava.fastagi.internal.AgiConnectionHandler run SEVERE: No script configured for URL 'agi://localhost/Procesador' (script 'Procesador') |
From: Stefan R. <ste...@gm...> - 2008-07-26 23:54:01
|
Well that means your classpath does not include the current directory or you are not starting Asterisk-Java from the directory that contains your AGI script class. On Fri, Jul 25, 2008 at 3:34 PM, Jorge Libreros <hyn...@ya...> wrote: > Mr. Stefan > > No, it doesn't work either. > > This is the output. > > Jul 24, 2008 7:59:26 PM org.asteriskjava.fastagi.DefaultAgiServer startup > INFO: Received connection from /127.0.0.1 > Jul 24, 2008 7:59:26 PM > org.asteriskjava.fastagi.ResourceBundleMappingStrategy loadResourceBundle > INFO: Resource bundle 'fastagi-mapping' not found. > Jul 24, 2008 7:59:26 PM org.asteriskjava.fastagi.AbstractMappingStrategy > createAgiScriptInstance > SEVERE: Unable to create AgiScript instance of type Procesador: Class > not found, make sure the class exists and is available on the CLASSPATH > Jul 24, 2008 7:59:26 PM > org.asteriskjava.fastagi.internal.AgiConnectionHandler run > SEVERE: No script configured for URL > 'agi://localhost/Procesador' > (script 'Procesador') > > ------------------------------------------------------------------------- > 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: Stefan R. <ste...@gm...> - 2008-07-27 00:33:11
|
> Hum, then I'll place the Processor.class at the same directory where is > the asterisk-java.jar library. Where did you place the asterisk-java jar file? what does echo $CLASSPATH show? |
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: 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 |