net.sf.asterisk.fastagi
Interface AGIScript

All Known Implementing Classes:
AbstractAGIScript, BaseAGIScript

public interface AGIScript

AGIScripts are used by the AsteriskServer to handle AGIRequests received from the Asterisk server.
To implement functionality using this framework you have to implement this interface.
Note: The implementation of AGIScript must be threadsafe as only one instance is used by AsteriskServer to handle all requests to a resource.

Version:
$Id: AGIScript.java,v 1.6 2005/03/11 09:37:39 srt Exp $
Author:
srt

Method Summary
 void service(AGIRequest request, AGIChannel channel)
          The service method is called by the AsteriskServer whenever this AGIScript should handle an incoming AGIRequest.
 

Method Detail

service

void service(AGIRequest request,
             AGIChannel channel)
             throws AGIException
The service method is called by the AsteriskServer whenever this AGIScript should handle an incoming AGIRequest.

Parameters:
request - the initial data received from Asterisk when requesting this script.
channel - a handle to communicate with Asterisk such as sending commands to the channel sending the request.
Throws:
AGIException - any exception thrown by your script will be logged.


Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.