At first glance, I can't see anything wrong with the PostDispatchMessage line but I would have to see the configuration file of your configuration to be sure. You can send the configuration file (File-Export-Configuration) to email@example.com. Can you also send the version of Diafaan SMS Server that you are using? I have checked the backup gateway functionality of the PostDispatchMessage call with the latest version of Diafaan SMS Server but it is possible that an earlier version might not work exactly the same.
The number of retries you set for the Scripting Gateway in the Gateways settings of the Email Connector does not matter because you override it with the PostDispatchMessage call, the "SGPWSMS02:3" indicates 3 retries for this gateway and for the "SGPWSMS01" gateway it uses the default, also 3.
We don't have much information available for the Diafaan SMS Server related function calls in the Scripting Gateway or Scripting Connector, the functions that you can use are mentioned in the skeleton script and you can download the scripting pack from our website to get an idea what is possible with the scripts.
I have an Email connector which forwards emails message to SMS via SMTP server (this works). SMS is being sent by a Scripting Gateway (lets call this SG). This SG has a simple script to send multiple SMSes to different numbers using a while loop (this works).
The script works if the primary gateway is available, but when it is down, it does not fail back to the backup gateway.
Here is the PostDispatchMessage code: PostDispatchMessage(recordId, strToAddress[i], fromAddress, message, messageType, "SGPWSMS02:3", "SGPWSMS01");
How many retires should i set my Email connecter to the SG?
My setting for "Consider a gateway unavailable after it has been done for xx minutes" has been set to 5.
Also, do you have a detailed documentation of the APIs available for the scripting connector/gateway?
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 468
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 836