Re: ***SPAM*** [Asterisk-java-users] Re: Re: Problem with fastagi-mapping.properties
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2005-11-02 20:28:17
|
Ok, lets try to hunt it down :) > Yes, fastapi-mapping.properties is in C:\ASTERISK-JAVA\ directory. If I > don't have this file in this directory, I get other error in the console > (the server doesn't find the mapping file), but that is not my real > problem. Thats what i find so strange. If there is no fastagi-mapping.properties you get an error and if you put a wrong class into the mapping file you get an error, too. So if there is no error it should be fine. > I have thought about the problem, and there are two differences between > your example and my problem. The first difference is that you are running > asterisk-java in the same machine that asterisk. I run AGIs from a different server most of the time... > The second one is that > you are running asterisk-java in a unix-linux machine, and I am running i= t > in a windows... Perhaps its a windows problem? I don't understand it > because java is multi-platform, or not? Yes that was my idea, too. So I just tried it on windows and it works fine, too. Here is what I did and what I got: C:\temp\asterisk-java>"\Program Files\Java\jdk1.5.0_03\bin\javac.exe" -cp asterisk-java-0.2-SNAPSHOT.jar HelloAGIScript.java C:\temp\asterisk-java>java -cp asterisk-java-0.2-SNAPSHOT.jar;. net.sf.asterisk.fastagi.DefaultAGIServer Nov 2, 2005 8:16:51 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Thread pool started. Nov 2, 2005 8:16:51 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Listening on *:4573. Nov 2, 2005 8:16:54 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Received connection. Nov 2, 2005 8:16:55 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Added mapping for 'hello.agi' to class class HelloAGIScript Nov 2, 2005 8:16:55 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Begin AGIScript HelloAGIScript on AGIServer-TaskThread-0 Nov 2, 2005 8:16:57 PM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: End AGIScript HelloAGIScript on AGIServer-TaskThread-0 You might have noticed the additional line "Added mapping for 'hello.agi' to class class HelloAGIScript" - I just added that to the latest Asterisk-Java snapshot to help debugging. You can find the jar file at http://null.reucon.net/~srt/asterisk-java-0.2-SNAPSHOT.jar You can find the files I used for testing on windows at http://null.reucon.= net/~srt/test.zip. =3DStefan |