[Asterisk-java-users] How to run Javascript example
Brought to you by:
srt
From: Hernan P. <her...@mi...> - 2012-08-31 18:29:13
|
Hi, First, thank you for making this library available. I am trying to run the javascript examples without success. Here are the steps I followed: 1. I placed the following files inside a directory: asterisk-java.jar demo.js ExampleCallIn.class ExampleCallIn.java fastagi-mapping.properties groovy-all-1.6.2.jar javamail-141.jar jruby-complete-1.2.0.jar mysql-connector-java-5.1.7-bin.jar quercus-3.2.1.jar resin-util-3.2.1.jar servlet-api-2.5.jar 2. I started the fastagi server: $ java -cp asterisk-java.jar org.asteriskjava.fastagi.DefaultAgiServer Aug 31, 2012 12:50:25 PM org.asteriskjava.fastagi.DefaultAgiServer startup INFO: Listening on *:4573. 3. I created extension 200 on Asterisk: exten => 200,1,Answer() same => n,Agi(agi://localhost/demo.js) same => n,Hangup() 4. I call the extension and get the following error: SEVERE: No script configured for URL 'agi://192.168.0.199/demo.js' (script 'demo.js') Do I need to create a custom AgiServer that loads the javascrip? Or is this already included and I need to give java some different paths to find the required classes/libraries? I am certainly missing something basic here. Could you please help me spot the problem? Thanks a lot. Hernan Palombo |