Update of /cvsroot/asterisk-java/asterisk-java/xdocs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26520/xdocs
Modified Files:
tutorial.xml
Log Message:
Updated to include BaseAGIScript
Index: tutorial.xml
===================================================================
RCS file: /cvsroot/asterisk-java/asterisk-java/xdocs/tutorial.xml,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -p -r1.13 -r1.14
--- tutorial.xml 2 Jul 2005 09:42:44 -0000 1.13
+++ tutorial.xml 6 Aug 2005 20:37:49 -0000 1.14
@@ -73,6 +73,12 @@ public class HelloAGIScript extends Abst
}
}
]]></source>
+ <p>If you are using Asterisk-Java 0.2 (or a snapshot thereof)
+ you should extend
+ <a href="http://asterisk-java.sourceforge.net/apidocs/net/sf/asterisk/fastagi/BaseAGIScript.html">BaseAGIScript</a>
+ instead of AbstractAGIScript. That way you don't have to
+ pass the channel to all the methods as this is done
+ automatically.</p>
<p>Put this Java source file into a directory of your choice,
add the <code>asterisk-java.jar</code> and compile it:</p>
<source><![CDATA[
|