The destination email address in the SMTP mail to the Email Connector can include a message type. The message type is a short text to describes how Diafaan SMS Server should send the message, for instance the message type 'sms.unicode' tells Diafaan SMS Server to send the message as a Unicode message if possible. The message type can also be used to route the message to one or more specific gateway(s).
You can also use your own message type definitions. For example, instead of using the email address '+email@example.com', you can use '+firstname.lastname@example.org' to set the message type to 'pager'. Everything in the email address between the first dot and the '@' is regarded as the message type and everything in the email address before the first dot (and before the '@') is the destination number of the SMS/pager message.
In the 'Gateways' settings of the Email Connector you can set the routing rules for each of the gateways, depending on the message type of the message. To allow only message with message type 'pager' to be sent with one of the gateways, click on the gateway name and set the option 'Only for message type' to 'pager'. To allow all messages except the ones with message type 'pager' to be sent with one of the gateways set the option 'Only for message type' to '-pager'.
You can find more information about message routing in Diafaan SMS Server in the Route messages page of the manual.
I am in the process of testing your current version (18.104.22.168) and have a desire for a routing rule, but am unsure if it can be accommodated.
We have a large number of legacy applications that only support alerts via SMTP. My goal in Diafaan is to have a single Email Connector that can look at the email as written to determine which Gateway to use. For example, I currently have two Gateways, one uses WCTP to send to pagers, and the other uses Clickatell to send SMS messages to phones.
I want to make it so I can send email to the Diafaan server in the form of number@sms or number@pager and have it send the ones that match *@sms to Clickatell and the ones that match @pager to the WCTP Gateway for our paging provider.
I know I can do this with separate Email Gateways on different port numbers, but in some instances I have an app that only supports a single SMTP server and that I want to go to some SMS and some Pager addresses. This would allow me to just build a recipient list that can be easily processed.
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 515
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 988