org.mobicents.media.server.testsuite.general
Class AbstractCall
java.lang.Object
org.mobicents.media.server.testsuite.general.AbstractCall
- All Implemented Interfaces:
- jain.protocol.ip.mgcp.JainMgcpListener, java.io.Serializable, java.util.EventListener, RtpSocketListener, org.mobicents.mgcp.stack.JainMgcpExtendedListener
- Direct Known Subclasses:
- AnnCall
public abstract class AbstractCall
- extends java.lang.Object
- implements org.mobicents.mgcp.stack.JainMgcpExtendedListener, java.io.Serializable, RtpSocketListener
- Author:
- baranowb
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mobicents.mgcp.stack.JainMgcpExtendedListener |
transactionEnded, transactionRxTimedOut, transactionTxTimedOut |
| Methods inherited from interface jain.protocol.ip.mgcp.JainMgcpListener |
processMgcpCommandEvent, processMgcpResponseEvent |
logger
protected transient org.apache.log4j.Logger logger
_READ_PERIOD
public static final int _READ_PERIOD
- See Also:
- Constant Field Values
_GLOBAL_SEQ
protected static final transient java.util.concurrent.atomic.AtomicLong _GLOBAL_SEQ
sequence
protected final long sequence
state
protected CallState state
avgJitter
protected int avgJitter
peakJitter
protected int peakJitter
lastDeliverTimeStamp
protected long lastDeliverTimeStamp
dataFileName
protected transient java.io.File dataFileName
graphDataFileName
protected transient java.io.File graphDataFileName
fos
protected transient java.io.FileOutputStream fos
dataDumpChannel
protected transient java.io.ObjectOutputStream dataDumpChannel
graphDataDumpChannel
protected transient java.io.FileOutputStream graphDataDumpChannel
rtpTraffic
protected transient java.util.List<RtpPacket> rtpTraffic
endpointName
protected java.lang.String endpointName
endpointIdentifier
protected jain.protocol.ip.mgcp.message.parms.EndpointIdentifier endpointIdentifier
callIdentifier
protected jain.protocol.ip.mgcp.message.parms.CallIdentifier callIdentifier
testCase
protected transient AbstractTestCase testCase
socket
protected transient RtpSocket socket
provider
protected transient org.mobicents.mgcp.stack.JainMgcpStackProviderImpl provider
timeoutHandle
protected transient java.util.concurrent.ScheduledFuture<?> timeoutHandle
AbstractCall
public AbstractCall(AbstractTestCase testCase)
throws java.io.IOException
- Throws:
java.io.IOException
resetSequence
public static void resetSequence()
getGraphDataFileName
public java.io.File getGraphDataFileName()
initSocket
protected void initSocket()
throws java.io.IOException
- Throws:
java.io.IOException
releaseSocket
protected void releaseSocket()
getRtp
public java.util.List<RtpPacket> getRtp()
throws java.io.IOException
- Throws:
java.io.IOException
getState
public CallState getState()
getAvgJitter
public int getAvgJitter()
getPeakJitter
public int getPeakJitter()
getEndpoint
public jain.protocol.ip.mgcp.message.parms.EndpointIdentifier getEndpoint()
getCallID
public jain.protocol.ip.mgcp.message.parms.CallIdentifier getCallID()
getSequence
public long getSequence()
setState
protected void setState(CallState state)
getLocalDescriptor
protected java.lang.String getLocalDescriptor(int port)
start
public abstract void start()
timeOut
public abstract void timeOut()
stop
public abstract void stop()
getTimeoutHandle
public java.util.concurrent.ScheduledFuture<?> getTimeoutHandle()
setTimeoutHandle
public void setTimeoutHandle(java.util.concurrent.ScheduledFuture<?> timeoutHandle)
error
public void error(java.lang.Exception e)
- Specified by:
error in interface RtpSocketListener
receive
public void receive(RtpPacket packet)
- Specified by:
receive in interface RtpSocketListener
Copyright © 2009. All Rights Reserved.