org.mobicents.media.server.mgcp.controller
Class MgcpConnection
java.lang.Object
org.mobicents.media.server.mgcp.controller.MgcpConnection
- All Implemented Interfaces:
- ConnectionFailureListener
public class MgcpConnection
- extends Object
- implements ConnectionFailureListener
Represents the connection activity.
- Author:
- yulian oifa
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connectionID
public static AtomicInteger connectionID
REASON_CODE
public static final Text REASON_CODE
id
protected Integer id
textualId
protected Text textualId
call
protected MgcpCall call
mgcpEndpoint
protected MgcpEndpoint mgcpEndpoint
connection
protected Connection connection
MgcpConnection
public MgcpConnection()
getID
public int getID()
getTextualID
public Text getTextualID()
setCall
protected void setCall(MgcpCall call)
- Assigns call object to which this connection belongs.
- Parameters:
call - the call object.
setCallAgent
public void setCallAgent(SocketAddress callAgent)
wrap
public void wrap(MgcpEndpoint mgcpEndpoint,
MgcpCall call,
Connection connection)
setMode
public void setMode(Text mode)
throws ModeNotSupportedException
- Throws:
ModeNotSupportedException
setMode
public void setMode(ConnectionMode mode)
throws ModeNotSupportedException
- Throws:
ModeNotSupportedException
setDtmfClamp
public void setDtmfClamp(boolean dtmfClamp)
getDescriptor
public Text getDescriptor()
setOtherParty
public void setOtherParty(Text sdp)
throws IOException
- Throws:
IOException
setOtherParty
public void setOtherParty(MgcpConnection other)
throws IOException
- Throws:
IOException
release
public void release()
- Terminates this activity and deletes connection.
getPacketsTransmitted
public int getPacketsTransmitted()
getPacketsReceived
public int getPacketsReceived()
onFailure
public void onFailure()
- Specified by:
onFailure in interface ConnectionFailureListener
Copyright © 2013 TeleStax, Inc.. All Rights Reserved.