Carlos wrote
In my configuration I have 2 modems (GSM1 and GSM2). If I don't configure queues/providers, when I send a large number of messages, both modems are used to send those messages (if sending is enable on both).
If I configure queues how do I do that?
As said, one modem can serve more than one queue and the same queue can be served by multiple modems. (fixed that typo in the previous post, should be "can be served", not "can be server"...
)
You could define:
[queues]
ALL_MODEMS = /var/spool/sms/all_modems
GSM1 = /var/spool/sms/GSM1
GSM2 = /var/spool/sms/GSM2
[providers]
ALL_MODEMS = 0,1,2,3,4,5,6,7,8,9,s
GSM1 = 0
GSM2 = 0
Modems can serve queues like this:
[GSM1]
queues = ALL_MODEMS, GSM1
[GSM2]
queues = GSM2, ALL_MODEMS
The order of definition of queues is just an example. With this setup, all messages
without Provider (or Queue) header are placed into the ALL_MODEMS queue. Accordingly, messages with
Provider: GSM1 are placed into the queue GSM1 and messages with
Provider: GSM2 are placed into the queue GSM2.
The modem GSM1 will serve the queue ALL_MODEMS
first. After there are no more messages to send, it will serve the queue GSM1. From this queue GSM1, only GSM1 can send messages.
The modem GSM2 will serve the queue GSM2 first. And after it's empty, GSM2 will serve the queue ALL_MODEMS.
Disabling sending in the setup causes troubles. Instead of disabling the sending, the setup should be modified or the modem should be removed from the devices list. Usually this has not been a problem, because all modems have been used for messaging. If you disable sending for GSM2, but still target messages to it, smsd cannot do very much...
Carlos wrote
I saw a script that does some king of load balance. However it does not check if the modem is enable...
If you disable or remove some modems from the setup, you should change the script...
keke wrote
Carlos wrote
However, it is sent via modem GSM1 and the message I receive is "encrypted".
You could show your setup and what you sent, as well as what you received. Perhaps you have troubles with portuguese characters? What is the version of smsd you are running?
Is this issue still active?