org.mobicents.media.server.mgcp.controller
Class Request
java.lang.Object
org.mobicents.media.server.mgcp.controller.Request
public class Request
- extends Object
- Author:
- kulikov
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Request
public Request(MgcpEndpoint endpoint,
Collection<MgcpPackage> packages)
accept
public void accept(Text ID,
Text callAgent,
Collection<Text> events,
Collection<Text> signals)
throws UnknownPackageException,
UnknownEventException,
UnknownSignalException
- Extracts signals and events from the given MGCP message and prepares
request for execution.
- Parameters:
ID - the identifier of the request provided by the call agent.events - the requested events parametersignals - the requested signals parameter
- Throws:
UnknownPackageException
UnknownEventException
UnknownSignalException
cancel
public void cancel()
- Cancels execution of current request and cleans previously
requested signals/events.
execute
public void execute()
- Starts the execution of
onEvent
public void onEvent(Text event)
completed
public void completed()
getEndpoint
public Endpoint getEndpoint()
getConnection
public Connection getConnection(String ID)
throws UnknownActivityException
- Throws:
UnknownActivityException
Copyright © 2012 TeleStax, Inc.. All Rights Reserved.