我正在尝试将星号绑定到我的java程序。我跟着这篇文章(http://www.jcgonzalez.com/asterisk-handle-calls-with-java-example)写了一封信。但是,当我调用888分机时,我有一个错误。它给出了以下错误:
Dec 12, 2014 7:32:00 PM org.asteriskjava.fastagi.DefaultAgiServer startup
INFO: Thread pool started.
Dec 12, 2014 7:32:00 PM org.asteriskjava.fastagi.DefaultAgiServer startup
INFO: Listening on *:4573.
Dec 12, 2014 7:32:05 PM org.asteriskjava.fastagi.DefaultAgiServer startup
INFO: Received connection from /127.0.0.1
Dec 12, 2014 7:32:05 PM org.asteriskjava.fastagi.ResourceBundleMappingStrategy loadResourceBundle
INFO: Resource bundle 'fastagi-mapping' not found.
Dec 12, 2014 7:32:05 PM org.asteriskjava.fastagi.AbstractMappingStrategy createAgiScriptInstance
SEVERE: Unable to create AgiScript instance of type hello.agi: Class not found, make sure the class exists and is available on the CLASSPATH
Dec 12, 2014 7:32:05 PM org.asteriskjava.fastagi.internal.AgiConnectionHandler run
SEVERE: No script configured for URL 'agi://localhost/hello.agi' (script 'hello.agi')我刚刚切换到UBUNTU,我不知道这句话是什么意思:确保Quickagi-mapping.properties在类路径中,或者将其放在与编译类相同的文件夹中。
请帮帮忙。
发布于 2014-12-15 05:10:53
实际上,您必须将hello.agi映射与实际的java类文件放在Quickagi-mapping.properties文件中,这样它才能找到您从星号调用的相应的AGI文件。
发布于 2014-12-12 21:09:15
你的错误与AGI没有任何关系。
您的错误说明您在路径中没有类(或输入错误)。
SEVERE: Unable to create AgiScript instance of type hello.agi: Class not found, make sure the class exists and is available on the CLASSPATH
Dec 12, 2014 7:32:05 PM org.asteriskjava.fastagi.internal.AgiConnectionHandler run
SEVERE: No script configured for URL 'agi://localhost/hello.agi' (script 'hello.agi')注意,使用的类将取决于在拨号计划中调用agi时使用的url。
https://stackoverflow.com/questions/27451055
复制相似问题