public class MgcpCall extends Object
| Constructor and Description |
|---|
MgcpCall(int id) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnection(MgcpConnection connection)
Registers a connection in the call.
|
int |
countConnections() |
MgcpConnection |
getConnection(int connectionId)
Gets a registered connection.
|
int |
getId()
Gets the call identifier.
|
boolean |
hasConnections() |
MgcpConnection |
removeConnection(int connectionId)
Unregisters a connection from the call.
|
List<MgcpConnection> |
removeConnections()
Unregisters all connections from the call.
|
public int getId()
public boolean hasConnections()
public int countConnections()
public MgcpConnection getConnection(int connectionId)
connectionId - The connection IDpublic void addConnection(MgcpConnection connection) throws IllegalArgumentException
connection - The connection to be registeredIllegalArgumentException - If a connection with similar identifier is already registered in the callpublic MgcpConnection removeConnection(int connectionId)
connectionId - The connection identifier.public List<MgcpConnection> removeConnections()
Copyright © 2017 TeleStax, Inc.. All Rights Reserved.