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 t have axactly 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 attach your modems to one or more individual queues, which can save a lot of money in some countries. For example, a modem equipped with a TELECOM sim card can be used to send messages only to TELECOM's customers and another modem can be used wit a VODAFONE sim card to send messages only to VODAFONE's customers. In many cases sending SMS to foreign destinations is more expensive than sending to the "own" customers.
[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.
The number prefixes tell smsd the prefixes that can be used to detect 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 |
See also Mobile Number Portability.