Hi,
I need to pass a callerid from a fastagi program to a jsp page.How can i
pass this?I dont understand how to use spring framework to integrate tomcat
with fastagi.my code is very simple one and it follows.
code:
import java.io.IOException;
iimport org.asteriskjava.fastagi.AgiChannel;
import org.asteriskjava.fastagi.AgiException;
import org.asteriskjava.fastagi.AgiRequest;
import org.asteriskjava.fastagi.BaseAgiScript;
import org.asteriskjava.fastagi.DefaultAgiServer;
import org.asteriskjava.fastagi.AgiScript;
public class Callerid extends BaseAgiScript implements AgiScript
{
public void service(AgiRequest request, AgiChannel channel)
throws AgiException
{
String callerid=request.getCallerId();
System.out.println(callerid);
}
}
I am just getting a callerid from asterisk and printing it.I need this
callerid to be passed to a jsp page through a url or however it should be
passed.please anyone guide me to do this .please reply me too whether this
process needs spring framework?
--
Preetha.A
|