When invoking the BFAX_SEND_FAX state table to send a two-call fax, you must specify the name of a state table in the callback_st parameter. This state table will be invoked after the fax has been taken from the queue and an attempt has been made to send it. The state table is invoked whether or not the fax was sent successfully. A state table called BFAX_CALL_BACK is provided as an example of a state table which conforms to the interface specification which follows. It makes an entry in the log file called BFAX_CALL_BACK.log in the directory specified by the environment variable OAM_LOG_PATH. The fax application developer is free to replace the BFAX_CALL_BACK state table with one of his own design to perform any actions which may be required at this stage of processing a two-call fax. The only constraint is that the number and type of its parameters must exactly match those described in this section.
This BFAX_CALL_BACK is not called by a user's state table as the invocation of this state table is from inside the BrooktroutFax custom server. However, for completeness the syntax of a typical invocation of this state table is included here:
InvokeStateTable ("DIRECT", BFAX_CALL_BACK, start, filename, profile_id, start_date, start_time, duration, retry_count, called_number, device_state, device_rc);
The entry point for this state table is start
8 Sent
-1 Failure
-1 Failed to invoke the BFAX_SEND_FAX state table
0 Fax sent successfully
1 Fax send operation failed
None of the state table parameters are used to return values to the invoker, and any edges returned are ignored. The state table is invoked by the BrooktroutFax custom server which cannot be accessed internally or modified by the fax application developer
This state table, as specified in the callback_st parameter is invoked once a fax has been sent from the queue (that is, in a two-call fax).