
Developing a Fax Application
Sending a Fax from One Channel to Another
¾Use the fax sample program to send a fax from one channel to another in your system.
1.Prepare channel 1 to receive a fax:
fax
fax invokes the sample fax program with the following arguments:
Specifies that the following number is the | |
| number of the channel that receives a fax (in this |
| case channel 1 is used). |
Places the channel (1) in receive mode. | |
recfile.ips | Creates a file, recfile.ips, in which to receive a |
| fax. |
The channel is now set to receive a fax and is waiting for a ring signal.
2.Send a fax from channel 0 to channel 1. In a second window, type:
fax -u 0 -s wphonenum fax.ips
Specifies that the following number is the | |
| number of the channel that sends a fax (in this |
| case channel 0 is used). |
Places the channel (0) in send mode. |
w In
In E&M immediate mode, causes the channel to wait and see if the T1 slot is free.
In E&M wink mode, causes the channel to wait for a wink signal from the remote side.
Anywhere else in the string, waits for dial tone.
phonenum Specifies the phone number of the channel to receive the fax (in this case channel 1).
fax.ips Sends the infopkt stream file fax.ips previously created with the mkinfopk utility.
November 2009 | 62 |