Processing replies with GetASCII |
Top Previous Next |
This is an example of how reply messages can be processed with the GetASCII API.
1) In Windows, create a new directory for PageGate's message processing to reference. This can be any folder accessible to PageGate, whether on the local hard drive or by UNC path to a network resource.
2)Create a File protocol carrier and set its file path to the folder you created in step 1. Leave the extension at .txt and set Max Chars to 6000. 3)Create a recipient and tie it to the File protocol carrier. Set its Full Name field to Replies and set its Recipient field to replies. 4)Go in to the Template sub-section of your new recipient. 5)Copy and paste the following in the Text section:
sms_replies_group %Sender% FROM: %Sender% WHEN: %Date% %Time% Message: %Message%
6)Create a new group. Set its Description field to SMS Replies Group and its Group field to sms_replies_group 7)Populate the group with members that should receive reply messages. If you include local recipients, PageGate GUI Client workstations will receive replies as well. 8)Go to Connectors - Connector X - 2-Way. 9)Check "Enabled GSM-AT replies" 10) Set the 'Reply Carrier' to the carrier using the cellular hardware. 11) Set the 'Reply Recipient' to: replies 12) Create a new folder on the local hard drive for the GetASCII module's basic polling directory. We recommend creating: C:\PageGateData\ASCII\ Note: If you have already configured a basic polling directory, you do not need to do steps 9, 10 or 11. 13) Go to Interfaces - GetASCII - Settings 14) Set the Polling Directory to: c:\PageGateData\ASCII\ 15) If unchecked, check Enabled, then click on Apply. 16) Go to Interfaces - GetASCII - Settings - Advanced Polling - Files 17) Add a new entry with the following settings:
Recipient: * From: File(s): *.txt Path: Specify the folder you created in step 1, recommended c:\PageGateData\Replies\ File Type: Standard
18) Click Apply.
By configuring this example of a 2-way system, all replies will be read in and delivered to the replies recipient, which will output a file formatted to the template's specifications. The GetASCII API will then read in the re-formatted reply and send it to the recipients that are members of the group named sms_replies_group. |