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:
- kulikov
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REASON_CODE
public static final Text REASON_CODE
id
protected Text id
call
protected MgcpCall call
mgcpEndpoint
protected MgcpEndpoint mgcpEndpoint
connection
protected Connection connection
MgcpConnection
public MgcpConnection()
getID
public Text getID()
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
setGain
public void setGain(int gain)
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 © 2012 TeleStax, Inc.. All Rights Reserved.