public interface MgcpEndpoint extends MgcpEndpointSubject, MgcpMessageSubject, MgcpEventObserver
Endpoints are sources or sinks of data and can be physical or virtual. Physical endpoint creation requires hardware installation while software is sufficient for creating a virtual Endpoint.
An interface on a gateway that terminates a trunk connected to a PSTN switch is an example of a physical Endpoint. An audio source in an audio-content server is an example of a virtual Endpoint.
| Modifier and Type | Method and Description |
|---|---|
void |
cancelSignal(String signal)
Attempts to cancel an active signal in the endpoint.
|
MgcpConnection |
createConnection(int callId,
boolean local)
Registers a connection.
|
MgcpConnection |
deleteConnection(int callId,
int connectionId)
Deletes an active connection.
|
List<MgcpConnection> |
deleteConnections()
Deletes all currently active connections.
|
List<MgcpConnection> |
deleteConnections(int callId)
Deletes all currently active connections within a specific call.
|
MgcpConnection |
getConnection(int callId,
int connectionId)
Gets a connection by identifier.
|
EndpointIdentifier |
getEndpointId()
Gets the endpoint identifier
|
MediaGroup |
getMediaGroup()
Gets the media group that holds media components of the endpoint.
|
void |
requestNotification(NotificationRequest request)
Requests a notification to be fired when an event happens in the endpoint.
|
forget, notify, observeforget, notify, observeonEventEndpointIdentifier getEndpointId()
MgcpConnection getConnection(int callId, int connectionId)
callId - The call identifier.connectionId - The connection identifier.MgcpConnection createConnection(int callId, boolean local)
callId - The identifier of the call where the connection belongs to.local - Whether a local or remote connection is to be created.MgcpConnection deleteConnection(int callId, int connectionId) throws MgcpCallNotFoundException, MgcpConnectionNotFoundException
callId - The ID of the call where the connection is stored.connectionId - The connection IDMgcpCallNotFoundException - When call with such ID cannot be found.MgcpConnectionNotFoundException - When call does not contain connection with such ID.List<MgcpConnection> deleteConnections()
List<MgcpConnection> deleteConnections(int callId) throws MgcpCallNotFoundException
callId - the call identifierMgcpCallNotFoundException - When call with such ID cannot be found.void requestNotification(NotificationRequest request)
request - The notification request.void cancelSignal(String signal)
signal - The name of the signal.MediaGroup getMediaGroup()
Copyright © 2017 TeleStax, Inc.. All Rights Reserved.