A main definition contains an initial overlay (or setup) for the telephone softkeys and screen and several on statements that cause alternative overlay definitions to be used when specific events occur.
The syntax of a main definition is:
main parm 1 ... parm n
{
statement 1;
...
statement n;
}
where:
You must send the parameters parm 1 ... parm n to an ADSI state table (you can use any of the ADSI_FDM state tables or the ADSI_CPEID state table). You must prefix the parameter names with the dollar ($) character when you use them in the FDM statements.
See Call-related information for more information on the Call Reference Buffer.
For more information, see main.
The following is an example of an FDM main definition:
main test1
{
load_overlay clear;
display 1 "$test1";
display 2 "Press DIAL to connect";
install_softkey dial;
}
In this example, the optional parameter test1 must be sent to the state table (you can use any of the ADSI_FDM state tables or the ADSI_CPEID state table). The softkeys and screen setup that are in an overlay called clear are used, and the value of test1 is displayed on the first line of the ADSI telephone display. This is followed by the Press DIAL to connect message. The softkey definition named dial is used to set up another softkey for the user.