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.