Support forum

Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
BackupGateway add more than one
sp_NewPost Add Reply sp_NewTopic Add Topic
May 4, 2020
10:36 am
Henk Helmantel
Admin
Forum Posts: 1511
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Diafaan SMS Server only has two fail-over routing options, primary gateways or backup gateways. The routing options are defined in the 'Gateways' settings of each connector.

Diafaan SMS Server tries to send the messages with the primary gateways first, using a round robin protocol. When all attempts to send the messages with the primary gateways fail, it will try to send the messages with the backup gateways, again using a round robin protocol.

You can also use the 'PostDispatchMessage' method in the script of a Scripting Connector to route the message to one or more primary gateway(s) and backup gateway(s). For instance, to route the message to primary gateways p1 and p2 and backup gateways p3 and p4 you can use the following line in the script:

PostDispatchMessage(recordId, toAddress, fromAddress, message, messageType, "p1;p2", "p3;p4");

Regards, Henk

May 1, 2020
4:07 am
Bynumber5
Guest
Guests

I need to add 3 backupGateway with failover
sample
backupGateway='p1;p2;p3'
or
messagePacket.Add("BackupGateway", "p1");
messagePacket.Add("BackupGateway", "p2");
messagePacket.Add("BackupGateway", "p3");

Hashtable messagePacket = new Hashtable();

messagePacket.Add("PacketName", "DispatchMessage");
messagePacket.Add("RecordId", recordId);
messagePacket.Add("To", toAddress);
messagePacket.Add("From", fromAddress);
messagePacket.Add("Message", message);
messagePacket.Add("MessageType", messageType);
messagePacket.Add("Gateway", gateway);
messagePacket.Add("BackupGateway", backupGateway);
host.PostMessagePacket(messagePacket);

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
4 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 680

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1156

Posts: 3946

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1511