You can add it to the 'Gateway' field of the 'MessageOut' table when you insert a new outgoing message to the database.
The database field name is set in the 'SMSOutGateway' property in the advanced settings of the SQL Connector, you should check if the property is set to the correct database field name for your database.
Thank you for your help. I used SQL Connector. But I don't know where to register the following statement:
If you have two gateways, Gateway1 and Gateway2, you can for example set the Gateway field of the message parameters to either:
In the first case, Diafaan SMS Server will try to send the message two times with Gateway1 and if that fails it will try to send the message one time with Gateway2. Gateway1 is the primary gateway here and Gateway2 is the backup gateway.
In the second case, Diafaan SMS Server will try to send the message four times with Gateway2 and if that fails it will try to send the message three times with Gateway1. Gateway2 is the primary gateway here and Gateway1 is the backup gateway.
Not all connectors support the Gateway field but you can use it when you send a message with the Web Connector API, the SQL Connector and the Scripting Connector. Please note that only gateways that are enabled for sending in the connector specific routing options can be used, other gateway names are ignored.
I used to address and the problem was solved. While we have two gateways, how can GateWay1 be set as Backup Gateway 2, and also GateWay2 be set as Backup GateWay1. I saw the following text on your site, but I don't know where it applies.
By default, if a gateway is assigned as backup gateway in the connector specific routing options, it will still be used only as a backup gateway. But it is possible to change the primary and backup designation of the gateways with the '|' separator. The gateways before the '|' character become the primary gateways and the gateways after the '|' characters become the backup gateways. An optional value can be added after the gateway name to specify the maximum number of send attempts that is used for that gateway using a colon plus the maximum number of send attempts, e.g. Clickatell Gateway:2.
You can find information on how to route messages to a specific gateway in the Route messages page in the online manual.
The section 'Message specific routing using the To Address, From address or Message Type' shows how you can route messages to a specific gateway depending on the destination number. Sending messages with an even or odd number at the end to a different gateway is pretty specific and you need a regular expression to achieve this.
If I have two GSM modems. How can I determine that mobile numbers with an even number at the end are sent with the first modem and mobile numbers with an odd number at the end are sent with the second modem?
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 642
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 1375