CloseEverything

Purpose

Use CloseEverything to terminate an application.


A screen capture of the Action CloseEverything window

Description

CloseEverything releases all resources allocated to the application, including hanging up the telephone line and dropping host sessions. The action indirectly supports the use of system variables SV541 and SV542 to pass additional call information, as it executes the TerminateCall action “under the covers”. See Transferring information between a state table and a signaling process for more details on how information can be communicated between the application and a signaling process such as ISDN.

When you call state tables from custom servers using CA_Execute_State_Table, it is important that ExitStateTable is used to return control to the calling custom server. CloseEverything should only be used to end state tables that are directly handling telephone calls.

Parameters

No parameters are required.

Possible results

Since CloseEverything is used in the last state in a state table, there are no results.

ASCII syntax

There are no parameters or edges for this action. Code it as follows:

CloseEverything();

For more information, see Testing a state table using the debugger.