Thread: Re: [Asterisk-java-users] I cannot start to using asterisk-java.
Brought to you by:
srt
From: Alejandro F. <all...@gm...> - 2008-03-23 17:09:54
|
Dear Tomás Thanks for your promptly response. I put the name of the class directly thinking this overpass the properties files. But If I put : exten => 100,n,Agi(agi://127.0.0.1:4573/helo.agi) Start the AgiServer: java -cp asterisk-java.jar:. org.asteriskjava.fastagi.DefaultAgiServer It says: 0 2008-03-23 14:03:11,430 [main] INFO org.asteriskjava.fastagi.DefaultAgiServer - Thread pool started. 66 2008-03-23 14:03:11,496 [main] INFO org.asteriskjava.fastagi.DefaultAgiServer - Listening on *:4573. When I call to extension 100: 34617 2008-03-23 14:03:46,047 [main] INFO org.asteriskjava.fastagi.DefaultAgiServer - Received connection from /127.0.0.1 34667 2008-03-23 14:03:46,097 [Asterisk-Java DaemonPool-1-thread-1] INFO org.asteriskjava.fastagi.ResourceBundleMappingStrategy - Resource bundle 'fastagi-mapping' not found. 34669 2008-03-23 14:03:46,099 [Asterisk-Java DaemonPool-1-thread-1] ERROR org.asteriskjava.fastagi.AbstractMappingStrategy - Unable to create AgiScript instance of type helo.agi: Class not found, make sure the class exists and is available on the CLASSPATH 34670 2008-03-23 14:03:46,100 [Asterisk-Java DaemonPool-1-thread-1] ERROR org.asteriskjava.fastagi.internal.AgiConnectionHandler - No script configured for URL 'agi://127.0.0.1:4573/helo.agi' (script 'helo.agi') The file fastagi-mapping.properties: hello.agi = HelloAgiScript It's clear fastagi-mapping not found, I don't know why. It's in the same directory I mean /home/qualium1. Tomás I was working whith this all Eastern long. Your support is very appreciated. TIA -- Lic. Alejandro Fernández Herrero Product Manager www.all-control.com.ar >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. |
From: Alejandro F. <all...@gm...> - 2008-03-23 17:29:16
|
Dear Stefan I fixed CLASSPATH, but still the same error. I put class and properties thinking this could to fix the problem. It says: 10315 2008-03-23 14:17:47,066 [Asterisk-Java DaemonPool-1-thread-1] INFO org.asteriskjava.fastagi.ResourceBundleMappingStrategy - Resource bundle 'fastagi-mapping' not found. 10316 2008-03-23 14:17:47,067 [Asterisk-Java DaemonPool-1-thread-1] ERROR org.asteriskjava.fastagi.AbstractMappingStrategy - Unable to create AgiScript instance of type helo.agi: Class not found, make sure the class exists and is available on the CLASSPATH 10317 2008-03-23 14:17:47,068 [Asterisk-Java DaemonPool-1-thread-1] ERROR org.asteriskjava.fastagi.internal.AgiConnectionHandler - No script configured for URL 'agi://127.0.0.1:4573/helo.agi' (script 'helo.agi') Obviously, all the problem it is doesn't find the fastagi-mapping.properties . TIA -- Lic. Alejandro Fernández Herrero Product Manager www.all-control.com.ar |
From: Stefan R. <ste...@re...> - 2008-03-23 17:44:11
Attachments:
signature.asc
|
so you are in /home/qualium1, that contains asterisk-java.jar, fastagi-mapping.properties and HelloAgiScript.class and there you run java -cp asterisk-java.jar:. org.asteriskjava.fastagi.DefaultAgiServer which results in the error you posted when calling the extension? I just cant believe that :) Show me the output of ls -al /home/qualium1/asterisk-java.jar ls -al /home/qualium1/fastagi-mapping.properties ls -al /home/qualium1/HelloAgiScript.class then do unset CLASSPATH cd /home/qualium1/ java -cp asterisk-java.jar:. org.asteriskjava.fastagi.DefaultAgiServer =Stefan Alejandro Fernandez wrote: > Dear Stefan > > I fixed CLASSPATH, but still the same error. I put class and properties > thinking this could to fix the problem. > It says: > 10315 2008-03-23 14:17:47,066 [Asterisk-Java DaemonPool-1-thread-1] > INFO org.asteriskjava.fastagi.ResourceBundleMappingStrategy - Resource > bundle 'fastagi-mapping' not found. > 10316 2008-03-23 14:17:47,067 [Asterisk-Java DaemonPool-1-thread-1] > ERROR org.asteriskjava.fastagi.AbstractMappingStrategy - Unable to > create AgiScript instance of type helo.agi: Class not found, make sure > the class exists and is available on the CLASSPATH > 10317 2008-03-23 14:17:47,068 [Asterisk-Java DaemonPool-1-thread-1] > ERROR org.asteriskjava.fastagi.internal.AgiConnectionHandler - No > script configured for URL 'agi://127.0.0.1:4573/helo.agi' (script > 'helo.agi') > > > Obviously, all the problem it is doesn't find the > fastagi-mapping.properties. > > TIA > > -- > Lic. Alejandro Fernández Herrero > Product Manager > www.all-control.com.ar <http://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 -- 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: Alejandro F. <all...@gm...> - 2008-03-23 18:17:46
|
-rw-r--r-- 1 root root 314224 mar 22 12:26 /home/qualium1/asterisk-java.jar -rw-r--r-- 1 root root 543 mar 22 23:30 /home/qualium1/HelloAgiScript.class -rw-r--r-- 1 root root 27 mar 22 10:59 /home/qualium1/fastagi- mapping.properties After to do: unset CLASSPATH cd /home/qualium1/ java -cp asterisk-java.jar:. org.asteriskjava.fastagi.DefaultAgiServer It reply: log4j:WARN No appenders could be found for logger ( org.asteriskjava.fastagi.DefaultAgiServer). log4j:WARN Please initialize the log4j system properly. If I issue netstat -tanp, really the tcp server is running: tcp 0 0 :::4573 :::* LISTEN 29053/java Calling to extension 100 from AgiServer it doesn't say nothing. >From CLI monitor it says: -- Executing [100@internal_calls:3] AGI("SIP/104-08b93610", "agi://127.0.0.1:4573/helo.agi") in new stack agi://127.0.0.1:4573/helo.agi: No script configured for URL 'agi://127.0.0.1:4573/helo.agi' (script 'helo.agi') I'm working in a development station if you want I can create you an account for you with root privileges. TIA -- Lic. Alejandro Fernández Herrero Product Manager www.all-control.com.ar |
From: T. L. P. T. <tom...@gm...> - 2008-03-23 19:32:47
|
Alejandro: I still think that the error could be located in the fastagi-mapping.properties file. For example, you reconfigured your extensions file to call the script "helo.agi", but I still don't know if that script is correctly mapped with a valid class file. If you can paste the contents of the file, I think that we can resolve this issue without requesting access to your development box. Best regards, Tomás. On Sun, Mar 23, 2008 at 3:17 PM, Alejandro Fernandez <all...@gm...> wrote: > > > > -rw-r--r-- 1 root root 314224 mar 22 12:26 /home/qualium1/asterisk-java.jar > -rw-r--r-- 1 root root 543 mar 22 23:30 /home/qualium1/HelloAgiScript.class > -rw-r--r-- 1 root root 27 mar 22 10:59 > /home/qualium1/fastagi-mapping.properties > > After to do: > > > unset CLASSPATH > cd /home/qualium1/ > java -cp asterisk-java.jar:. org.asteriskjava.fastagi.DefaultAgiServer > > It reply: > log4j:WARN No appenders could be found for logger > (org.asteriskjava.fastagi.DefaultAgiServer). > log4j:WARN Please initialize the log4j system properly. > > If I issue netstat -tanp, really the tcp server is running: > tcp 0 0 :::4573 :::* > LISTEN 29053/java > > Calling to extension 100 from AgiServer it doesn't say nothing. > >From CLI monitor it says: > > -- Executing [100@internal_calls:3] AGI("SIP/104-08b93610", > "agi://127.0.0.1:4573/helo.agi") in new stack > agi://127.0.0.1:4573/helo.agi: No script configured for URL > 'agi://127.0.0.1:4573/helo.agi' (script 'helo.agi') > > > I'm working in a development station if you want I can create you an account > for you with root privileges. > > > > 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: T. L. P. T. <tom...@gm...> - 2008-03-23 19:35:46
|
Alejandro: I review your messages and I read that you paste the content of the fastagi-mapping.properties in your second response. My mistake. Anyway, your extensions file is calling the script "helo.agi" and your FastAgi server has a mapping for "hello.agi", not "helo.agi". Maybe this could be the problem. Best regards, Tomás. On Sun, Mar 23, 2008 at 4:32 PM, Tomás Laureano Peralta Tormey <tom...@gm...> wrote: > Alejandro: > I still think that the error could be located in the > fastagi-mapping.properties file. For example, you reconfigured your > extensions file to call the script "helo.agi", but I still don't know > if that script is correctly mapped with a valid class file. > If you can paste the contents of the file, I think that we can > resolve this issue without requesting access to your development box. > > Best regards, Tomás. > > > > On Sun, Mar 23, 2008 at 3:17 PM, Alejandro Fernandez > <all...@gm...> wrote: > > > > > > > > -rw-r--r-- 1 root root 314224 mar 22 12:26 /home/qualium1/asterisk-java.jar > > -rw-r--r-- 1 root root 543 mar 22 23:30 /home/qualium1/HelloAgiScript.class > > -rw-r--r-- 1 root root 27 mar 22 10:59 > > /home/qualium1/fastagi-mapping.properties > > > > After to do: > > > > > > unset CLASSPATH > > cd /home/qualium1/ > > java -cp asterisk-java.jar:. org.asteriskjava.fastagi.DefaultAgiServer > > > > It reply: > > log4j:WARN No appenders could be found for logger > > (org.asteriskjava.fastagi.DefaultAgiServer). > > log4j:WARN Please initialize the log4j system properly. > > > > If I issue netstat -tanp, really the tcp server is running: > > tcp 0 0 :::4573 :::* > > LISTEN 29053/java > > > > Calling to extension 100 from AgiServer it doesn't say nothing. > > >From CLI monitor it says: > > > > -- Executing [100@internal_calls:3] AGI("SIP/104-08b93610", > > "agi://127.0.0.1:4573/helo.agi") in new stack > > agi://127.0.0.1:4573/helo.agi: No script configured for URL > > 'agi://127.0.0.1:4573/helo.agi' (script 'helo.agi') > > > > > > I'm working in a development station if you want I can create you an account > > for you with root privileges. > > > > > > > > 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: Alejandro F. <all...@gm...> - 2008-03-23 20:12:05
|
Tomás Eureka. The problem was an l in helo.agi. After put it all works like a charm. Thanks for your time and Stefan. Now something out topic. Where are you from Tomás I am from Argentina. How to response from the mailing list instead of my mailer. Again my very thanksfull for both. Happy Eastern. -- Lic. Alejandro Fernández Herrero Product Manager www.all-control.com.ar |
From: T. L. P. T. <tom...@gm...> - 2008-03-23 21:09:38
|
Alejandro: Good news! I'm glad to hear that everything is working for you now. About myself, I'm also from Argentina. I has been working with Asterisk for almost 3 years (always relying my scripting needs to PHP) but I'm making my first steps with Asterisk Java. We used Asterisk Java in one of my projects and I believe that it's a wonderful framework. My congratulations to Stefan and all the Asterisk-Java development team. About the second question ("How to response from the mailing list instead of my mailer"), I'm not sure about what exactly do you mean. Can you repeat the question? ;-) Best regards, Tomás. P.S.: Feel free to contact me off the list if you prefer to talk in Spanish. On Sun, Mar 23, 2008 at 5:12 PM, Alejandro Fernandez <all...@gm...> wrote: > Tomás > > Eureka. The problem was an l in helo.agi. After put it all works like a > charm. > Thanks for your time and Stefan. > > Now something out topic. Where are you from Tomás I am from Argentina. > How to response from the mailing list instead of my mailer. > > Again my very thanksfull for both. > > Happy Eastern. > > -- > > 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: Alejandro F. <all...@gm...> - 2008-03-24 00:48:41
|
Dear Tomás Of course, I want contact you off the list. I sent you a mail, but your mail account isn't working. Could you send an email to my address (afe...@qu...). Regards. Alejandro >Alejandro: >Good news! I'm glad to hear that everything is working for you now. >About myself, I'm also from Argentina. I has been working with >Asterisk for almost 3 years (always relying my scripting needs to PHP) >but I'm making my first steps with Asterisk Java. We used Asterisk >Java in one of my projects and I believe that it's a wonderful >framework. My congratulations to Stefan >and all the Asterisk-Java development team. >About the second question ("How to response from the mailing list >instead of my mailer"), I'm not sure about what exactly do you mean. >Can you repeat the question? ;-) >Best regards, Tomás. >P.S.: Feel free to contact me off the list if you prefer to talk in Spanish. -- Lic. Alejandro Fernández Herrero Product Manager www.all-control.com.ar |
From: T. L. P. T. <tom...@gm...> - 2008-03-24 01:01:09
|
Alejandro: I guess that maybe you are using the SourceForge mailer. For some strange reason, my mail is reported as tom...@gm.... For the archive, my account is: tomas.laureano.peralta.tormey <here comes the lovely at> gmail.com. Best regards, Tomás. On Sun, Mar 23, 2008 at 9:48 PM, Alejandro Fernandez <all...@gm...> wrote: > Dear Tomás > > Of course, I want contact you off the list. I sent you a mail, but your mail > account isn't working. > Could you send an email to my address (afe...@qu...). > Regards. > Alejandro > > >Alejandro: > >Good news! I'm glad to hear that everything is working for you now. > >About myself, I'm also from Argentina. I has been working with > > >Asterisk for almost 3 years (always relying my scripting needs to PHP) > >but I'm making my first steps with Asterisk Java. We used Asterisk > >Java in one of my projects and I believe that it's a wonderful > >framework. My congratulations to Stefan > >and all the Asterisk-Java development team. > >About the second question ("How to response from the mailing list > >instead of my mailer"), I'm not sure about what exactly do you mean. > >Can you repeat the question? ;-) > > >Best regards, Tomás. > > >P.S.: Feel free to contact me off the list if you prefer to talk in > Spanish. > > -- > > 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 > > |