public class MgcpConnection extends Object implements ConnectionFailureListener
| Modifier and Type | Field and Description |
|---|---|
protected MgcpCall |
call |
protected Connection |
connection |
static AtomicInteger |
connectionID |
protected Integer |
id |
protected MgcpEndpoint |
mgcpEndpoint |
static Text |
REASON_CODE |
protected Text |
textualId |
| Constructor and Description |
|---|
MgcpConnection() |
| Modifier and Type | Method and Description |
|---|---|
void |
generateLocalDescriptor(boolean webrtc)
Generates the local connection descriptor.
|
int |
getCallId() |
Connection |
getConnection() |
Text |
getDescriptor() |
int |
getID() |
int |
getPacketsReceived() |
int |
getPacketsTransmitted() |
Text |
getTextualID() |
void |
onFailure() |
void |
release()
Terminates this activity and deletes connection.
|
protected void |
setCall(MgcpCall call)
Assigns call object to which this connection belongs.
|
void |
setCallAgent(SocketAddress callAgent) |
void |
setDtmfClamp(boolean dtmfClamp) |
void |
setMode(ConnectionMode mode) |
void |
setMode(Text mode) |
void |
setOtherParty(MgcpConnection other) |
void |
setOtherParty(Text sdp) |
void |
wrap(MgcpEndpoint mgcpEndpoint,
MgcpCall call,
Connection connection) |
public static AtomicInteger connectionID
public static final Text REASON_CODE
protected Integer id
protected Text textualId
protected MgcpCall call
protected MgcpEndpoint mgcpEndpoint
protected Connection connection
public int getID()
public Text getTextualID()
public int getCallId()
protected void setCall(MgcpCall call)
call - the call object.public void setCallAgent(SocketAddress callAgent)
public void wrap(MgcpEndpoint mgcpEndpoint, MgcpCall call, Connection connection)
public void setMode(Text mode) throws ModeNotSupportedException
ModeNotSupportedExceptionpublic void setMode(ConnectionMode mode) throws ModeNotSupportedException
ModeNotSupportedExceptionpublic void setDtmfClamp(boolean dtmfClamp)
public Text getDescriptor()
public void generateLocalDescriptor(boolean webrtc)
throws IOException
IOExceptionpublic void setOtherParty(Text sdp) throws IOException
IOExceptionpublic void setOtherParty(MgcpConnection other) throws IOException
IOExceptionpublic Connection getConnection()
public void release()
public int getPacketsTransmitted()
public int getPacketsReceived()
public void onFailure()
onFailure in interface ConnectionFailureListenerCopyright © 2017 TeleStax, Inc.. All Rights Reserved.