Communitcation between the AS400, CloudFaxGateway and the TF400Gateway
From The TF400Gateway To The CloudFaxGateway
SFR - Scan Folder Request 7 Folder
AMR - Archive Message Request X Folder
LAR - Log Audit Request 214 AuditItem
IAR - Incoming Audit Request 50 uniqueId 14 receiveDate 48 message 40 callerid 40 destination 50 imagefile 8 pages 11 as400
TSR - Test Socket Request
FSU - Failed Status Update X Failed Status
From The CloudFaxGateway To The TF400Gateway
MQC - Message Queue Change 7 QueueFile 1 Type(MNQ,MOQ,QRU)
Reading the MOQ.txt
When the fax is queued to the cloud a file is created in the Queue directory to monitor it
eg C:\CloudFax400_Files\Queue\C0000277-208-moq.txt
Initially it contains one line:-
EP400P1<sep>0770344<sep>TF0770344-02/03/12-18:00/32459<sep>C0000277<sep>208<sep>EP400P1C
Once the CloudFax400 has queried this reference (TF0770344-02/03/12-18:00/32459), it will append any new updates to the file
For example
EP400P1<sep>0770344<sep>TF0770344-02/03/12-18:00/32459<sep>C0000277<sep>208<sep>EP400P1C Date=02032012172457,Attempt=0,Type=JobSubmit,StatusValue=13,Status=P,Description=Req...,Pages=0,Connect Time=0,CSI=ImpsCloud,Number=02083996525,TryAgain= Date=02032012172513,Attempt=0,Type=JobSubmit,StatusValue=13,Status=R,Description=Mes...,Pages=0,Connect Time=0,CSI=ImpsCloud,Number=02083996525,TryAgain= Date=02032012172804,Attempt=1,Type=JobDone,StatusValue=0,Status=S,Description=All...,Pages=6,Connect Time=130,CSI=ImpsCloud,Number=02083996525,TryAgain=
This File is then handled by the following Routine in the TF400Gateway
The Gateway looks in the folder:-
D:\Program Files\TF400Gateway\TF400\Queue\ for fcq files. Each of these is a record of a message queued to the CloudFax400
eg, TF0770319-17_02_12-15+27-C0000033.fcq contains C0000033-206/0
The number after the / is the attempts that we've notified the as400 about so far.
Private Sub ProcessMOQMNQFromFolderName(strFolder As String) in the TFRequestHandler
Public Function HandleFaxCloudQ(strFile As String) As Integer in the QueueManager