Difference between revisions of "Communitcation between the AS400, CloudFaxGateway and the TF400Gateway"

From PresenceWiki
Jump to: navigation, search
Line 39: Line 39:
 
Initially it contains one line:-
 
Initially it contains one line:-
  
<b>EP400P1<sep>0770344<sep>TF0770344-02/03/12-18:00/32459<sep>C0000277<sep>208<sep>EP400P1C</b>
+
<b>EP400P1<sep>0770320<sep>TF0770320-05/03/12-16:11/32461<sep>C0000279<sep>206<sep>EP400P1C</b>
  
Once the CloudFax400 has queried this reference (<b>TF0770344-02/03/12-18:00/32459</b>), it will append any new updates to the file
+
Once the CloudFax400 has queried this reference (<b>TF0770320-05/03/12-16:11/32461</b>), it will append any new updates to the file
  
 
For example  
 
For example  
  
 
<b>
 
<b>
EP400P1<sep>0770344<sep>TF0770344-02/03/12-18:00/32459<sep>C0000277<sep>208<sep>EP400P1C
+
EP400P1<sep>0770320<sep>TF0770320-05/03/12-16:11/32461<sep>C0000279<sep>206<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=05032012161127,Attempt=0,Type=JobSubmit,StatusValue=13,Status=W,Description=Des...,Pages=0,Connect Time=0,CSI=ImpsCloud,Number=206,TryAgain=
Date=02032012172513,Attempt=0,Type=JobSubmit,StatusValue=13,Status=R,Description=Mes...,Pages=0,Connect Time=0,CSI=ImpsCloud,Number=02083996525,TryAgain=
+
Date=05032012161141,Attempt=0,Type=JobSubmit,StatusValue=13,Status=R,Description=Mes...,Pages=0,Connect Time=0,CSI=ImpsCloud,Number=206,TryAgain=
Date=02032012172804,Attempt=1,Type=JobDone,StatusValue=0,Status=S,Description=All...,Pages=6,Connect Time=130,CSI=ImpsCloud,Number=02083996525,TryAgain=
+
Date=05032012161200,Attempt=1,Type=JobDone,StatusValue=0,Status=S,Description= ok ...,Pages=1,Connect Time=0,CSI=ImpsCloud,Number=206,TryAgain=
 
</b>
 
</b>
  
Line 59: Line 59:
 
Each of these is a record of a message queued to the CloudFax400  
 
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
+
eg, TF0770320-05_03_12-16+11-C0000279.fcq contains C0000279-206/0
  
 
The number after the / is the attempts that we've notified the as400 about so far.
 
The number after the / is the attempts that we've notified the as400 about so far.
 +
 +
Associated Cloud File is \\grahamxp\c$\CloudFax400_Files\Queue\C0000279-206-moq.txt
 +
Cloud File Contains EP400P1<sep>0770320<sep>TF0770320-05/03/12-16:11/32461<sep>C0000279<sep>206<sep>EP400P1C
  
 
<b>Private Sub ProcessMOQMNQFromFolderName(strFolder As String)</b> in the TFRequestHandler
 
<b>Private Sub ProcessMOQMNQFromFolderName(strFolder As String)</b> in the TFRequestHandler

Revision as of 16:19, 5 March 2012

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>0770320<sep>TF0770320-05/03/12-16:11/32461<sep>C0000279<sep>206<sep>EP400P1C

Once the CloudFax400 has queried this reference (TF0770320-05/03/12-16:11/32461), it will append any new updates to the file

For example

EP400P1<sep>0770320<sep>TF0770320-05/03/12-16:11/32461<sep>C0000279<sep>206<sep>EP400P1C Date=05032012161127,Attempt=0,Type=JobSubmit,StatusValue=13,Status=W,Description=Des...,Pages=0,Connect Time=0,CSI=ImpsCloud,Number=206,TryAgain= Date=05032012161141,Attempt=0,Type=JobSubmit,StatusValue=13,Status=R,Description=Mes...,Pages=0,Connect Time=0,CSI=ImpsCloud,Number=206,TryAgain= Date=05032012161200,Attempt=1,Type=JobDone,StatusValue=0,Status=S,Description= ok ...,Pages=1,Connect Time=0,CSI=ImpsCloud,Number=206,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, TF0770320-05_03_12-16+11-C0000279.fcq contains C0000279-206/0

The number after the / is the attempts that we've notified the as400 about so far.

Associated Cloud File is \\grahamxp\c$\CloudFax400_Files\Queue\C0000279-206-moq.txt Cloud File Contains EP400P1<sep>0770320<sep>TF0770320-05/03/12-16:11/32461<sep>C0000279<sep>206<sep>EP400P1C

Private Sub ProcessMOQMNQFromFolderName(strFolder As String) in the TFRequestHandler


Public Function HandleFaxCloudQ(strFile As String) As Integer in the QueueManager