Using [queues] and [providers] is optional. If you do not need it, leave both parts out. If you use it, you need to write both parts together into the config file and both parts need to have exactly the same number of lines with the same names.
Configuring providers enable a sort function in smsd. It takes a look at the destination phone numbers and sorts them into many queue directories - one queue for each phone network provider.
The individual queues allow you to assign modems specially to individual phone network providers, which can save a lot of money in some countries.
You can configure up to 16 providers, 16 queues and 64 phone numbers for each provider. These limits are changeable.
[queues] name = directory name = directory ... [providers] name = number prefixes name = number prefixes ... |
The name is only a short name for the queue directory. You would typically place the name of the phone network provider here. Spaces and control characters are not allowed here.
The number prefixes are the first digits of phone numbers that belong to the provider. This can be a single number or a comma separated list of many numbers. Write them in international format but without the first "+" character.
Example:
[queues] telecom = /var/spool/sms/telecom vodafone = /var/spool/sms/vodafone [providers] telecom = 49160, 49170, 49171, 49175, 49151 vodafone = 491520, 49162, 49172, 49173, 49174, s |
From the version >= 3.0 it is possible to define 's' for short numbers.
Example 2:
[queues] finland = /var/spool/sms/finland other = /var/spool/sms/other [providers] finland = 358, s other = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 |
In this second example one queue is used to send messages to finnish destinations. Also messages to short numbers are sent using this queue. Another queue is used to send all other messages.
As defined in the How to configure, list of queues used should be defined for modems,
in this case:
[GSM1] queues = finland ... [GSM2] queues = other ... |
Automatic queue sorting can be overridden in the message file. For example, header line queue = other causes modem GSM2 to be used.