AGI failed
Closed this issue · 0 comments
Hi,
I got this result while trying to run the program:
-- Executing [999@B2B:2] EAGI("PJSIP/Cellcom_SIP_Trunk-000000b3", "./ast-gspeech/bin/run.sh") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/./ast-gspeech/bin/run.sh
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_request: ./ast-gspeech/bin/run.sh
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_channel: PJSIP/Cellcom_SIP_Trunk-000000b3
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_language: en
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_type: PJSIP
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_uniqueid: 1516829313.179
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_version: 13.14.0
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_callerid: 547779947
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_calleridname: 547779947
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_callingpres: 0
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_callingani2: 0
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_callington: 0
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_callingtns: 0
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_dnid: unknown
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_rdnis: 547779947
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_context: B2B
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_extension: 999
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_priority: 2
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_enhanced: 1.0
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_accountcode:
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> agi_threadid: 140254171821824
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >>
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Rx << SET VARIABLE "AJ_AGISTATUS" "FAILED"
<PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Tx >> 200 result=1
-- <PJSIP/Cellcom_SIP_Trunk-000000b3>AGI Script ./ast-gspeech/bin/run.sh completed, returning 0
how can I debug it and find the cause of the failure?
the /log/speech.log file contains:
01-24 23:46:29 ERROR EAgiConnectionHandler - Unexpected Exception while handling request
java.lang.NullPointerException
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:305)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at org.asteriskjava.fastagi.AbstractMappingStrategy.createAgiScriptInstance(AbstractMappingStrategy.java:117)
at org.asteriskjava.fastagi.ClassNameMappingStrategy.determineScript(ClassNameMappingStrategy.java:96)
at org.asteriskjava.fastagi.CompositeMappingStrategy.determineScript(CompositeMappingStrategy.java:114)
at com.astgspeech.core.CoreAgiConnectionHandler.run(CoreAgiConnectionHandler.java:82)
at com.astgspeech.core.DefaultEAgiServer.startup(DefaultEAgiServer.java:234)
at com.astgspeech.core.DefaultEAgiServer.main(DefaultEAgiServer.java:296)
Thanks,
Guy