[Asterisk-java-users] Problem with fastagi-mapping.properties
Brought to you by:
srt
From: <jcc...@is...> - 2005-11-02 09:20:34
|
Hello. First of all, please forgive my bad english. I'm a new user of asterisk-java. I decided to use fastagi because I = think it fits perfect in my project. I followed the tutorial, but I had an error. C:\ASTERISK-JAVA>java -classpath asterisk-java-0.2-rc2.jar;. = net.sf.asterisk.fa tagi.DefaultAGIServer 02-nov-2005 9:45:18 net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Thread pool started. 02-nov-2005 9:45:19 net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Listening on *:4573. 02-nov-2005 9:45:20 net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Received connection. 02-nov-2005 9:45:21 net.sf.asterisk.util.impl.JavaLoggingLog error GRAVE: No script configured for agi://192.168.0.202/hello.agi I think this means the connection between my machine and asterisk's = machine works well, but not the script... Asterisk runs in a linux = machine, and asterisk-java DefaultAGIServer runs in a Windows one. The = fastagi-mapping.properties is located in the directory where I started = running the AGIserver. The content of this file is: hello.agi =3D HelloAGIScript Finally, the content of the HelloAGIScript.java file is: import net.sf.asterisk.fastagi.AGIChannel; import net.sf.asterisk.fastagi.AGIException; import net.sf.asterisk.fastagi.AGIRequest; import net.sf.asterisk.fastagi.BaseAGIScript; public class HelloAGIScript extends BaseAGIScript { public void service(AGIRequest request, AGIChannel channel) throws AGIException { // Answer the channel... answer(); =20 // ...say hello... streamFile("welcome"); =20 // ...and hangup. hangup(); } } Somebody can help me?=20 Thanks |