The priority works until the message is pre-loaded in the gateway. After the message is pre-loaded in the gateway, probably together with a batch of other messages, it is sent in the order of the time that the message was loaded in the batch.
If you have a different gateway for each connector then the gateway will try to load 'MaximumBatchSize' messages from this connector and send them. When the connector gets a new message with a higher priority the gateway will first send the messages already in the batch before it sends the new message.
How do you set the priority? Do you use the 'SendPriority' property in the advanced settings of the connectors or do you use the 'Priority' field of the 'MessageOut' database table. The first option does not make sense when you use separate gateways for each connector. When you use the second option then you have to set the 'SendPriority' property in the advanced settings of the connectors to '0' and make sure that the SQL Connector uses the 'Priority' field from the database table. This is field is not used by default for ODBC and OLE DB connections.
Thank you Henk for your answer.
So the priority only works with the batches loaded at the same time in each GSM modem gateway? Even though I have a different GSM gateway modem for each connector?
If you have set the 'SendPriority' property in the advanced settings of the SQL Connector to 1 for two SQL Connectors and to 10 for one of the SQL Connectors then the messages that are sent with the priority 10 will be placed in front of the message queue.
This does not mean that the messages with priority 10 are always sent before the messages with priority 1. Each gateway will try to preload a batch of messages from the send queue and a message with a higher priority might not be picked up from the send queue until the preloaded batch in the gateway has decreased enough to allow a new batch to be loaded. If you set the 'MaximumBatchSize' property on each gateway to 1 the handling of the priority will be more consistent but the performance of Diafaan SMS Server will go down.
I have a question about Diafaan's priority system.
I have three sql connector and I need one to have the SMS output priority over the others, therefore, I set its SendPriority to 10 and the other two to 0, but when all the connectors sent at the same time, the priority did not work .
Then try leaving the Sendpriority of the two sql connectors in 1 and the sql connector that needs priority remain in 10, but it did not work either.
Am I setting some parameters wrong?
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 539
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 1067