CALLBasic Command - FaxReceive

Command: FaxReceive
   
Description: Receive fax document as a file or to a mailbox.
   
Format: FaxReceive faxfile faxtype faxid faxpages
     
  Parameter Type Description
  Input:    
  faxfile String Name of file to receive in fax document; or file name returned of actual saved document.
  faxtype String Contains “FILE” if fax received as file; or mailbox number if fax received to mailbox.
  Output:    
  faxtype String Returns the status of the fax "-1"=Receiving Site Failure, "1" or "3"=OK, "2" or "5"=Sending Site Failure, "4"=Operator Intervention Requested
  faxid Integer Returned faxid used to identify this fax in the FaxReceived table in the CALLMaster database
  faxpages Integer Number of fax pages received

Example:
    Program
        ‘Example of FaxReceive to File
        faxfile = “H:\Program Files\CALLMaster\fax\received\myfax3.tif”
        faxtype = “FILE”
        faxid = 0
        faxpages = 0
        FaxReceive faxfile faxtype faxid faxpages

        ‘Example of FaxReceive to mailbox # 1102
        faxfile = “”
        faxtype = “1102”
        faxid = 0
        faxpages = 0
        FaxReceive faxfile faxtype faxid faxpages
   EndProgram