asterisk-java-users Mailing List for Asterisk-Java Library (Page 118)
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: Martin S. <ma...@be...> - 2008-03-26 19:35:58
|
Hi Rodney, The dotted syntax works for me. The loading method is actually in the Abstract base class, AbstractMappingStrategy, and it uses java.lang.Class#forName, which accepts the dotted syntax. It does check to make sure your class implements the org.asteriskjava.fastagi.AgiScript interface, so if your script doesn't that will fail. The example for the resourcebundle strategy is -- in your properties file: hello.agi = com.example.fastagi.HelloAgiScript in your dialplan: exten => 123,1,AGI(agi://your.server.com/hello.agi) Your mileage may vary, or maybe something else is gone wrong, but have you alternatively tried org.asteriskjava.fastagi.ClassNameMappingStrategy? I tend to prefer it over the resource bundle one, as I often change these mappings and I don't want to bring down my application to redeploy it with a new mapping file (My EJB server will halt anything that lists the properties file as a dependency when I redo the properties file). The example for ClassNameMappingStrategy is: exten => 123,1,AGI(agi://your.server.com/com.example.agi.MyScript) If neither works, show us the output from Asterisk and your agi script's logging :) Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 ________________________________ From: ast...@li... [mailto:ast...@li...] On Behalf Of Rodney Seifert Sent: Wednesday, March 26, 2008 11:46 AM To: ast...@li... Subject: [Asterisk-java-users] Package Name in fastagi-mapping.properties Hello, I have a working example of asterisk-java with fastagi. Very good stuff! Thank you for all the efforts. My fastagi-mapping.properties looks like this: AsterTest.agi = AsterTest In this example my AsterTest.class has no package. My question is how do I reference a package name in the fastagi-mapping.properties? I would like my object to live in a package such as: dev.util.AsterTest I have tried the following variations in the fastagi-mapping.properties and all produce Class not found errors: AsterTest.agi = dev.util.AsterTest or AsterTest.agi = dev/util/AsterTest Is it possible to reference the script object in a package name? Thank you. Rodney |
From: Rodney S. <rse...@sr...> - 2008-03-26 15:49:48
|
Hello, I have a working example of asterisk-java with fastagi. Very good stuff! Thank you for all the efforts. My fastagi-mapping.properties looks like this: AsterTest.agi = AsterTest In this example my AsterTest.class has no package. My question is how do I reference a package name in the fastagi-mapping.properties? I would like my object to live in a package such as: dev.util.AsterTest I have tried the following variations in the fastagi-mapping.properties and all produce Class not found errors: AsterTest.agi = dev.util.AsterTest or AsterTest.agi = dev/util/AsterTest Is it possible to reference the script object in a package name? Thank you. Rodney |
From: Thomas K. <tho...@ac...> - 2008-03-26 10:04:15
|
Hello, I'd like to know if AsteriskQueue and AsteriskQueueMember will work with dynamic realtime? Thanks, Thomas -- Thomas Kenner |
From: Stefan R. <ste...@re...> - 2008-03-25 19:54:41
|
Stefan Reuter wrote: > Uhh sorry, no reason to feel sorry. It seems I've been dreaming of no reason to feel stupid of course :) =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: Stefan R. <ste...@re...> - 2008-03-25 19:48:55
|
Gaëtan Minet wrote: > I feel stupid, but I cannot find the code your'e refering to. Any > pointer ? Uhh sorry, no reason to feel sorry. It seems I've been dreaming of this... could you move your patch to live? Thanks for your feedback and sorry again, 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: Gaëtan M. <gm...@ea...> - 2008-03-25 19:42:46
|
Stefan, I feel stupid, but I cannot find the code your'e refering to. Any pointer ? Gaetan On 25/03/2008, at 20:20, Stefan Reuter wrote: > Hi Gaëtan, > > And it's already there :) > Try it and report back if you encounter any trouble with it. > > =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 > > ------------------------------------------------------------------------- > 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-25 19:20:19
|
Hi Gaëtan, And it's already there :) Try it and report back if you encounter any trouble with it. =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: Gaëtan M. <gm...@ea...> - 2008-03-25 19:11:46
|
Hi Stefan, Granted you're right, that convenient function would be more appropriate in the live api, this wasn't intended. Gaetan On 25/03/2008, at 19:53, Stefan Reuter wrote: > Hi, > > the live API (org.asteriskjava.live.AsteriskServer and co) already > does > that. My idea is that the live API provides all kinds of convenient > stuff on top of the Manager API but the Manager API itself doe not do > anything unexpected and only what is absolutly required. > When using the live API and you still require to access the low level > Manager API methods you can retrieve the ManagerConnection from the > DefaultAsteriskServer. > > Does that make sense? > > =Stefan > > Gaëtan Minet wrote: >> Hi Stefan >> >> What do you think of automatically starting a pingthread on the >> connection if the client sets the socket read timeout, so the client >> code needn't bother with a reference to a thread ? >> Here is a micro-patch; >> >> Kind regards >> Gaetan > > -- > 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 > > ------------------------------------------------------------------------- > 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-25 18:54:11
|
Hi, the live API (org.asteriskjava.live.AsteriskServer and co) already does that. My idea is that the live API provides all kinds of convenient stuff on top of the Manager API but the Manager API itself doe not do anything unexpected and only what is absolutly required. When using the live API and you still require to access the low level Manager API methods you can retrieve the ManagerConnection from the DefaultAsteriskServer. Does that make sense? =Stefan Gaëtan Minet wrote: > Hi Stefan > > What do you think of automatically starting a pingthread on the > connection if the client sets the socket read timeout, so the client > code needn't bother with a reference to a thread ? > Here is a micro-patch; > > Kind regards > Gaetan -- 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: Gaëtan M. <gm...@ea...> - 2008-03-25 15:27:07
|
Hi Stefan What do you think of automatically starting a pingthread on the connection if the client sets the socket read timeout, so the client code needn't bother with a reference to a thread ? Here is a micro-patch; Kind regards Gaetan |
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 > > |
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-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-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 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: 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: 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: Stefan R. <ste...@re...> - 2008-03-23 17:44:11
|
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 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: 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: Stefan R. <ste...@re...> - 2008-03-23 16:48:00
|
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: 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: 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: Stefan R. <ste...@re...> - 2008-03-11 03:18:28
|
If you really care about the last bit of performance you should probably write hand optimized assembly code :-) That said the current JVMs can even outperform average C++ code, so there is nothing to worry about. Just stick with the official Sun JDK and you will be fine. With Java now being licensed under GPL GCJ is really a thing of the past. =Stefan Yelson Vivas wrote: > Hi > i develop a small program that listen the pbx and works fine but I'm > worry about how is going to work with heavy load. > I've been reading about compilers and i want to ask > for asterisk java what is the best > Use regular javac, use some JIT or what about GCJ, which is going to > give me the best performance? > Any idea, will be more than welcome > Thank you very much for your answers > Regards > -- > Yelson E Vivas C > MPC > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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: Yelson V. <yv...@gm...> - 2008-03-10 15:42:56
|
Hi i develop a small program that listen the pbx and works fine but I'm worry about how is going to work with heavy load. I've been reading about compilers and i want to ask for asterisk java what is the best Use regular javac, use some JIT or what about GCJ, which is going to give me the best performance? Any idea, will be more than welcome Thank you very much for your answers Regards -- Yelson E Vivas C MPC |