public final class SimpleCallStateMachine extends Object
| Constructor and Description |
|---|
SimpleCallStateMachine(String callId) |
| Modifier and Type | Method and Description |
|---|---|
SipStream.CallState |
getCallState()
The current state of this state machine, same as getting the last element
in
getTransitions() |
long |
getDuration() |
List<SipPacket> |
getMessages()
Get all the messages that this fsm has seen so far.
|
long |
getPostDialDelay() |
long |
getTimeOfFirstMessage()
The time of the very first message.
|
long |
getTimeOfLastMessage()
Get the time of the very last message that we have seen so far.
|
List<SipStream.CallState> |
getTransitions()
Get a list of all the transitions this state machine took.
|
boolean |
isHandshakeCompleted() |
boolean |
isTerminated()
Check whether the state of this
SimpleCallStateMachine is
considered to be terminated. |
void |
onEvent(SipPacket msg)
At some point we may want to have a generic event but for now this will
only be
SipPackets. |
boolean |
reTransmitsDetected() |
public SimpleCallStateMachine(String callId)
public long getTimeOfFirstMessage()
public long getTimeOfLastMessage()
public boolean isHandshakeCompleted()
public boolean reTransmitsDetected()
public void onEvent(SipPacket msg) throws SipPacketParseException
SipPackets.
Note, if the SipPacket arrived earlier than the oldest element
that this SimpleCallStateMachine has seen before then this new
SipPacket will be inserted in the time sequence and then all the
events will be "re-played".msg - SipPacketParseExceptionpublic boolean isTerminated()
SimpleCallStateMachine is
considered to be terminated.public List<SipPacket> getMessages()
public List<SipStream.CallState> getTransitions()
public SipStream.CallState getCallState()
getTransitions()public long getPostDialDelay()
throws SipPacketParseException
SipPacketParseExceptionpublic long getDuration()
Copyright © 2021. All Rights Reserved.