|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
void service(AgiRequest request, AgiChannel channel) throws AgiException
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.
AgiException
- any exception thrown by your script will be logged.
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |