public class AsyncAgiServer extends AbstractAgiServer implements ManagerEventListener
AsyncAGI is available since Asterisk 1.6.
| Constructor and Description |
|---|
AsyncAgiServer()
Creates a new AsyncAgiServer with a
DefaultAgiChannelFactory. |
AsyncAgiServer(AgiChannelFactory agiChannelFactory)
Creates a new AsyncAgiServer with a custom
AgiChannelFactory. |
AsyncAgiServer(AgiScript agiScript)
Creates a new AsyncAgiServer that will execute the given AGI script for
every request.
|
AsyncAgiServer(AgiScript agiScript,
AgiChannelFactory agiChannelFactory)
Creates a new AsyncAgiServer that will execute the given AGI script for
every request.
|
AsyncAgiServer(MappingStrategy mappingStrategy)
Creates a new AsyncAgiServer with the given MappingStrategy.
|
AsyncAgiServer(MappingStrategy mappingStrategy,
AgiChannelFactory agiChannelFactory)
Creates a new AsyncAgiServer with the given MappingStrategy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onManagerEvent(ManagerEvent event)
This method is called when an event is received.
|
createPool, execute, finalize, getAgiChannelFactory, getMappingStrategy, getMaximumPoolSize, getPoolActiveTaskCount, getPoolActiveThreadCount, getPoolSize, handleException, isDie, setMappingStrategy, setMaximumPoolSize, setPoolSize, shutdownpublic AsyncAgiServer()
DefaultAgiChannelFactory.
Note that you must set a MappingStrategy
before using it.
public AsyncAgiServer(AgiChannelFactory agiChannelFactory)
AgiChannelFactory.
Note that you must set a MappingStrategy
before using it.
agiChannelFactory - The factory to use for creating new AgiChannel
instances.AbstractAgiServer.setMappingStrategy(MappingStrategy)public AsyncAgiServer(MappingStrategy mappingStrategy)
Please note that Async AGI does not currently support passing a script
name, so your MappingStrategy must be aware that the
script property
of the AgiRequests will likely be null.
mappingStrategy - the MappingStrategy to use to determine which AGI
script to run for a certain request.public AsyncAgiServer(MappingStrategy mappingStrategy, AgiChannelFactory agiChannelFactory)
Please note that Async AGI does not currently support passing a script
name, so your MappingStrategy must be aware that the
script property
of the AgiRequests will likely be null.
mappingStrategy - the MappingStrategy to use to determine which AGI
script to run for a certain request.agiChannelFactory - The factory to use for creating new AgiChannel
instances.public AsyncAgiServer(AgiScript agiScript, AgiChannelFactory agiChannelFactory)
Internally this constructor uses a
StaticMappingStrategy.
agiScript - the AGI script to execute.agiChannelFactory - The factory to use for creating new AgiChannel
instances.public AsyncAgiServer(AgiScript agiScript)
Internally this constructor uses a
StaticMappingStrategy.
agiScript - the AGI script to execute.public void onManagerEvent(ManagerEvent event)
ManagerEventListeneronManagerEvent in interface ManagerEventListenerevent - the event that has been receivedCopyright © 2004–2021. All rights reserved.