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. |