public interface AgiScript
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.
| Modifier and Type | Method and Description |
|---|---|
void |
service(AgiRequest request,
AgiChannel channel)
The service method is called by the AsteriskServer whenever this
AgiScript should handle an incoming AgiRequest.
|
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.Copyright © 2004–2024. All rights reserved.