CTI32 Class Library

cti.ReceiveFax Method 

Receives a fax on a Gammalink CP-X board. Prior to calling this method, you should have routed the fax channel to a telephone resource.

[Visual Basic]
Public Shared Function ReceiveFax( _
   ByVal faxchan As Integer, _
   ByVal filepath As String, _
   ByRef received_csid As String, _
   ByRef items_received As Integer, _
   ByVal chdev_to_watch As Integer _
) As Integer
[C#]
public static int ReceiveFax(
   int faxchan,
   string filepath,
   ref string received_csid,
   ref int items_received,
   int chdev_to_watch
);

Parameters

faxchan
fax channel (1 – X) that you wish to send the fax from.
filepath
The full path name to the TIF file(s) you wish to receive. The first page will have the format xxxxp001.TIF – the second xxxxp002.TIF etc. You need only pass the full path to the first page
received_csid
Input/Output. This stores the CSID received from their fax machine. Initialize this string to the outgoing CSID to override the default CSID
items_received
Output. How many pages were actually received from their fax machine.
chdev_to_watch
The channel side device number to watch for pre-mature hang up.

Return Value

0=Successful or GammaLink status code or -1 for error

See Also

cti Class | CTI32NetLib Namespace