7.1.1.5 SSF State Transition Diagram

Figure 12 shows the State diagram of the SSF part of the SSP during the processing of an IN call/attempt. Each State is discussed in the following subclauses. General rules applicable to more than one state are addressed here.
One or a sequence of components received in one or more TCAP messages may include a single operation or multiple operations, and is processed as follows:

In any State, if there is an error in a received operation, the maintenance functions are informed. Generally, the SSF FSM remains in the same State as when it received the erroneous operation, however different error treatment is possible in specific cases as described in subclause 7.2; depending on the class of the operation, the error could be reported by the SSF to the SCF using the appropriate component (see ETS 300 287 [5] (ITU-T Recommendation Q.774)).
In any State (except Idle), if the calling party abandons the call before it is answered (i.e., before the Active PIC in the BCSM), then the SSF FSM should instruct the CCF to clear the call and ensure that any CCF resources allocated to the call have been de-allocated, then continue processing as follows:

Other pending requests that are treated in the same way as the CallInformationRequest operation in the above list is the ApplyCharging operation when the "SendCalculation ToSCP Indication" parameter is set to True.
In any State (except Idle), if a call party disconnects from a stable call (i.e., from the Active PIC in the BCSM), then the SSF FSM should process this event as follows:

Other pending requests that are treated in the same way as the CallInformationRequest operation in the above list is the ApplyCharging operation when the "SendCalculation ToSCP Indication" parameter is set to True.
The SSF has an application timer, TSSF, whose purpose is to prevent excessive call suspension time and to guard the association between the SSF and the SCF.
Timer TSSF is set in the following cases:

In the three above cases, TSSF may respectively have three different values as defined by the application.
When receiving or sending any operation which is different from the above, the SSF should reset TSSF to the last used set value. This value is either one associated to the three different cases as listed above, or received in a ResetTimer operation, whatever occured last. In the "Monitoring" state (refer to subclause 7.1.1.5.6) TSSF is not used.
On expiration of TSSF the SSF FSM transitions to the Idle state, aborts the interaction with the SCF and the CCF progresses the BCSM if possible.
The SSF State diagram contains the following transitions (events):

e1: TDP encountered
e2: Trigger fail
e3: Initiate call received
e4: Trigger detected
e5: User Interaction requested
e6: User Interaction ended
e7: Temporary connection created
e8: Temporary connection ended
e9: Idle return from Wait for Instruction
e10: EDP_R encountered
e11: Routing instruction received
e12: EDP_N last encountered
e13: Waiting for End of User Interaction state no change
e14: Waiting for Instruction state no change
e15: Waiting for End of Temporary Connection state no change
e16: Monitoring state no change
e17: Abandon (from any state) (not shown in the SSF state diagram)
e18: Disconnect (from any state) (not shown in the SSF state diagram)
e19: Non call associated treatment from any state (not shown in the SSF state diagram)

The SSF State diagram contains the following states:
State a: Idle
State b: Trigger Processing
State c: Waiting for Instructions
State d: Waiting for End of User Interaction
State e: Waiting for End of Temporary Connection
State f: Monitoring

NOTE:
Abandon and Disconnect transitions are not shown.

Figure 12: SSF FSM

7.1.1.5.1 State a: "Idle"

The SSF FSM enters the Idle state under a variety of conditions, as described below.
The SSF FSM enters the Idle State when sending or receiving an ABORT TCAP primitive due to abnormal conditions in any state.
The SSF FSM enters the Idle State when DP processing fails in the Trigger Processing state (transition e2).
The SSF FSM enters the Idle State when one of the following occurs:

When transitioning to the Idle state, if there is a Call Information Request pending (see subclause 7.1.1.5), the SSF sends a CallInformationReport operation to the SCF before returning to Idle.
During this State the following call-associated events can occur:

Any other operation received from the SCF while the SSF is in Idle State should be treated as an error. The event should be reported to the maintenance functions and the transaction should be aborted according to the procedure specified in TCAP (see ETS 300 287 [11] (ITU-T Recommendation Q.774)).

7.1.1.5. State b: "Trigger Processing"

Following a trigger detection related to an armed TDP in the BCSM, the SSF FSM is activated and moves from the Idle State to the Trigger Processing State (transition e1).
In this State, the SSF/CCF should:

Section 7.1.1.5.3 State c: "Waiting for Instructions" Section 7 Contents Page