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 the SIP call 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 SIP for more details on how information can be communicated between the application and SIP.

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.