Requests a channel process to execute a state table.
Blueworx Voice Response library (libvae.a)
Custom Server library (libca.a)
#include "CA_header.h" int CA_Execute_State_Table ( short link_id, int wait_flag, char *state_table_name, char *entry_label, int num_args, char *arg_array[], EXECUTE_STATE_TABLE_RETURN_ST *execute_state_table_return_sp );
This subroutine requests a linked channel process to execute a specified state table, starting at the entry point specified and using the parameters specified. The wait_flag allows the custom server to either wait for the completion of the state table or run asynchronously.
The EXECUTE_STATE_TABLE_RETURN_ST output structure returns information about how the state table completed. If you do not want this data returned (or if the wait_flag is set to CA_NOWAIT), set the execute_state_table_return_sp pointer to NULL.
When you call state tables from a custom server using CA_Execute_State_Table(), ExitStateTable should be used to return control to the calling custom server. CloseEverything should only be used to end state tables that are directly handling telephone calls.
There is a limit to the maximum combined length of all parameters passed to the arg_array, see CA_PARMS_TOO_LARGE.
CA_ACCESS_NOBUFS
CA_INV_ADDR
CA_INV_ENTRY_LABEL
CA_INV_LINK_ID
CA_INV_PARM_COUNT
CA_INV_STATE_TABLE_NAME
CA_LINK_NOT_OPEN
CA_NO_MSG_RECV
CA_NOT_INIT
CA_PARMS_TOO_LARGE
CA_REQ_FAILED
CA_STATE_TABLE_NOT_VALID
CA_TERMINATING
CA_UNABLE_TO_EXEC_STATE_TABLE