A single custom server provides all functions to access and control incoming and stored faxes.
The interface between the state table and custom server consists of the following functions:
Input Parameters: None
Return Values: Error code
Input Parameters: None
Return Values: Error code
Input Parameters: Dummy variable
Return Values: Error code or number of incoming faxes currently
in the directory, details of which are locked in the list.
Input Parameters: Dummy variable
Return Values: Error code.
Input Parameter: Number of fax in list to be queried (1..n)
Return Values: Structure containing the following information
about the incoming fax:
- time and date of receipt
- size of the fax file in bytes
- channel on which fax was received
Optional extra information which could be made available is:
- calling number
- called number
- error code, if any
Input Parameter: Number of fax in list to be deleted (1..n)
Return Values: Error code
Input Parameters: Number of fax in list to be saved (1..n)
Database fax number (1..1000)
Return Values: Error code.
Input Parameter: Database fax number (1..1000)
Return Values:
- Error code
- Name of the database file for this fax.
Input Parameter: Database fax number (1..1000)
Return Values: Error code
FaxSample_CS is built and installed using the Blueworx Voice Response custom server development window. See Blueworx Voice Response for AIX: Custom Servers, "Building a Custom Server". Before it can be run, you must start FaxSample_CS using the custom server manager. You can also set it to start automatically using the custom server manager.
FaxSample_CS is built with a 'system-generated main' that generates code to route requests to the individual function entry points. Input and output parameters for FaxSample_CS functions are follows:
Function | Input | Output |
---|---|---|
FaxOpen | None | SHORT error_code |
FaxClose | None | SHORT error_code |
FaxLockIncomingList | SHORT (dummy var) | SHORT error_code (or number of faxes in list) |
FaxUnLockIncomingList | SHORT (dummy var) | SHORT error_code |
FaxQueryIncoming | SHORT fax_number | STRUCT
SHORT error_code |
FaxDeleteIncoming | SHORT fax_number | SHORT error_code |
FaxSaveIncoming | SHORT fax_number | SHORT error_code
SHORT db_number |
FaxQuerySaved | SHORT db_number | SHORT error_code
CHAR file name |
FaxDeleteSaved | SHORT db_number | SHORT error_code |