SMS File |
|
Outgoing Queue |
The SMS File is used to tell SMSD the destination number and the content of the message. Optional you may put the senders name or number into the file which will be written into the log file.
After you created the SMS File you have to move it into the Outgoing Queue wich is simply a directory in the filesystem. You may create the file directly in the Outgoing Queue directory but then you have to ensure that the file creation is fast enough. SMSD checks if the file size changes. If it does not grow within 1 second then SMSD assumes that the file is complete and ready to send. So I think it is a better idea to create the file in another directory and move it after creation into the Outgoing Queue.
The file format is very simple. You will find a detailed description in the manual. Basically the format looks very similar to the file format of emails. First you have to specify the receiver and other settings, followed by an empty line. Then you have to enter the text. In case of binary SMS, wich are sent as 8 bit, the binary content begins after the empty line and ends at the end of file. The header may contain settings that are unknown to SMSD - it will ignore them.
The picture above shows an example of a valid SMS File.
The Outgoing Queue allows you to give many SMS to SMSD without the need to wait until it is delivered.
Normally you should never run getsms and putsms manually. Smsd runs these programs whenever necessary and smsd ensures that not more than one one program try to acces the modem at the same time. Many people report problems that modem answers are missing or broken because they tried to use getsms and putsms in the wrong way.