State table definitions

This section describes the state tables supplied with the ISDN single step call transfer application.

Four state tables are provided as compiled state tables and ASCII state table source code. The compiled state tables are compiled directly from the ASCII state table source code. The source code for the state tables is provided in the directory $CUR_DIR/ca/SSTransfer_dir.

The following sections describe the state tables.

TIncoming_Call

The TIncoming_Call state table replaces the default Incoming_Call state table. It is exactly the same as Incoming_Call state table but saves call data to SV51 global variable before answering the call. The saved call data in SV51 can be used to extract the calling party number when transfer is requested. If Incoming_Call state table has already been modified, add a statement to save SV252 to SV51. If SV51 is already in use then use another string global variable and modify ssct_transfer state table to use it rather than SV51.

You can customize the application, but you must not change the basic functions.

Parameters:

None

ssct_transfer state table

The ssct_transfer state table is invoked from your application to create facility message contents using the SSTransfer TransferTag function call and pass it toBlueworx Voice Response. The transfer state table action is then used to trigger the sending of the facility message and transfer the call. Refer to the ssct_tag state table for an example of how to use the ssct_transfer state table. The ssct_transfer state table assumes that call data (SV252) has been saved in SV51.

The ssct_transfer state table only works if TIncoming call state table, or one with similar functionality, has been used to replace Incoming_call state table.

The state table returns the following return code values:

31
State table openhostserver failed
32
State table senddata failed
33
State table receive data failed with no more data error
34
State table receive data failed with data not found
35
State table receive data failed with host problem
36
State table receive data failed with host not open
37
State table receive data failed with timeout

These return code values are issued along with those returned by the SSTransfer custom server.

Parameters:

char TransferTag_TransfertoNumber[32]

The number to which the call is to be transferred.

short TransferTag_TransfertoNumberPlan

The number plan for the number to which the call is to be transferred.

short TransferTag_TransfertoNumberType

The number type for the number to which the call is to be transferred.

short TransferTag_AwaitConnect

Set to determine when the call should be disconnected, either as soon as transfer is attempted or only after connection is established to the third party. The values are as defined in Single Step Call Transfer (SSCT) Supplementary Service (ECMA-300, edition 2 Dec 2001).

char TransferTag_callingdata[250]

The data as provided in SV252 on the incoming call.

ssct_tag

The ssct_tag state table is an example of how to use the ssct_transfer state table.

Parameters:

None

ssct

The ssct state table demonstrates how to use SSTransfer custom server Transfer function call, which is used when calling party number details are passed as individual parameters. You may choose to use this when you want to specify a different calling party number from that passed on the original call.

Parameters:

None