Use the ADSI_CPEID state table to download an ADSI script to an ADSI telephone when an application calls the telephone while it is on-hook. This state table uses the customer premises equipment (CPE) identifier (CPE-id) of the telephone.
To allow on-hook operation, you must configure your telephone switch so that the MakeCall state table action returns without the handset being lifted.
The host application must call the ADSI telephone before calling this state table. When invoked, the ADSI_CPEID state table sends the telephone's identifier to the ADSI telephone, then downloads the specified FDM file.
InvokeStateTable ("DIRECT", ADSI_CPEID, mode, file, NameOfService, FDN, SecurityCode, VersionNumber, parms, Interrupt, CPEID);
In voice mode, each data transmission is preceded by a CAS tone/DTMF sequence.
You must include the file-name extension (.fdm).
The name is appended to the directory name $CUR_DIR/adsi/.
The name can be a maximum of 18 bytes long.
This is the number of the position on the telephone's (FDN) page to which the feature should be downloaded.
This parameter is four bytes long. You can specify decimal values in the range 0 through 6, depending on the type of ADSI telephone being used.
This parameter is four bytes long.
If you try to download a feature to a specific feature download number, and the security codes for that service do not match the one you are downloading, you will not be authorized to download the feature.
For more information on feature downloads, see Bellcore specification SR-INS-002461 .
This parameter is one byte long.
If you want to pass multiple parameters, you must concatenate them into one string, and separate each parameter using a 001 (X'01') delimiter. You could use the ADSI_Parameters state table to do this (see ADSI_Parameters).
If no parameters are to be passed to the ADSI function, set the parms parameter to a null string.
Specify one of the following values:
This should have been retrieved previously using the query_for_cpe_id SDC function (see query_for_cpe_id).
The InvokeStateTable action terminates with a result that indicates whether or not the operation was successful. If it was not successful, the result shows the reason for the failure:
InvokeStateTable("DIRECT", ADSI_CPEID, voice_mode,
"sample.fdm",
"xyz",
"1",
"1",
"1",
parms,
"0",
cpeid)