public interface MappingStrategy
AgiScript
is called to service a given AgiRequest.A MappingStrategy can use any of the properties of an AgiRequest to do this. However most MappingStrategies will just use the script property, that is the name of the invoked AGI script as passed from Asterisk's dialplan.
Asterisk-Java ships with several mapping strategies that are available out of the box. If you have some special requirements that are not satisfied by any of the available strategies feel free to implement this interface and use your own strategy.
| Modifier and Type | Method and Description |
|---|---|
AgiScript |
determineScript(AgiRequest request,
AgiChannel channel)
Returns the AgiScript instance that is responsible to handle
the given request.
|
AgiScript determineScript(AgiRequest request, AgiChannel channel)
request - the request to lookup.channel - the channel.null if none could be determined by this strategy.Copyright © 2004–2020. All rights reserved.