
Developing a Fax Application
BT_ZERO(args_admin);
BfvLineDetach (lp, &args_admin);
Frees all the memory for the attached line and closes the device.
You can replace some
BfvFaxBeginReceive | These low level functions are |
BfvFaxGetRemoteInfo | replaced with the high level function |
BfvFaxSetLocalId | BfvFaxReceive. |
BfvFaxWaitForTraining |
|
BfvFaxReceivePages |
|
See the applications in the sample application directory for more detailed information.
Sending a Fax Using Function Calls for
One way to send a fax using function calls for
This example sends a
BT_ZERO(args_admin); args_admin.unit = unit;
lp = BfvLineAttach(&args_admin);
Attaches to a free channel and gets a line pointer.
args_admin.config_file_name = "usrcnfig.cfg"; BfvLineReset(lp,&args_admin);
Resets the channel and sets the
BT_ZERO(args_tel);
args_tel.phonenum = "w7814499009";
args_tel.call_protocol_code = CALL_PROTOCOL_FAX; args_tel.func = userfunc;
args_tel.arg = userarg; BfvLineOriginateCall(lp,&args_tel);
Dials the phone number, monitors call progress, calls the user function to optionally decide when to terminate call progress.
November 2009 | 70 |