org.echarts.servlet.sip.machines
Class HoldSwitchFSM

java.lang.Object
  extended by org.echarts.Machine
      extended by org.echarts.StateMachine
          extended by org.echarts.TransitionMachine
              extended by org.echarts.servlet.sip.machines.HoldSwitchFSM
All Implemented Interfaces:
java.io.Serializable


public class HoldSwitchFSM
extends TransitionMachine

Places oldCall on hold, while switching common port to newCall (which is currently a connected call).

  1. Places oldCall on hold (via re-INVITE with blackhole SDP)
  2. Sends re-INVITE to newCall (using SDP of original INVITE)
  3. Upon success response from newCall, sends re-INVITE to common

See Also:
Serialized Form

Nested Class Summary
 class HoldSwitchFSM.CALLS
           
 
Field Summary
 Response failureResponse
           
 Response sessionProgressResponse
           
 Response successResponse
           
 
Constructor Summary
HoldSwitchFSM(SipPort common, SipPort oldCall, SipPort newCall)
           
 
Method Summary
 
Methods inherited from class org.echarts.TransitionMachine
addMessagelessTransition, addMessageTransition, globalStateString, globalStateString, initializeMessagelessTransitions, initializeMessageTransitions, initializeRoot, localStateString, localStateString, removePort, run, run, runNoQueueing
 
Methods inherited from class org.echarts.StateMachine
setMachineDebugging, setMachineMonitor, setMachineMonitoring
 
Methods inherited from class org.echarts.Machine
getDefaultMachineDebugging, getDefaultMachineDebuggingGlobalStateOutput, getDefaultMachineMonitor, getDefaultMachineMonitorFilter, getDefaultMachineMonitoring, getMachineDebugging, getMachineDebuggingGlobalStateOutput, getMachineID, getMachineIndex, getMachineMonitor, getMachineMonitoring, getParentMachine, getRootMachine, getSystemDebugging, getSystemMonitoring, putEvent, setDebugging, setDefaultMachineDebugging, setDefaultMachineDebuggingGlobalStateOutput, setDefaultMachineMonitor, setDefaultMachineMonitorFilter, setDefaultMachineMonitoring, setMachineDebuggingGlobalStateOutput, setSystemDebugging, setSystemMonitoring, statePathString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sessionProgressResponse

public Response sessionProgressResponse

successResponse

public Response successResponse

failureResponse

public Response failureResponse
Constructor Detail

HoldSwitchFSM

public HoldSwitchFSM(SipPort common,
                     SipPort oldCall,
                     SipPort newCall)
              throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail