6 Today I see in every magazine, targetted to the average person, advertisements for ringing tones and logo downloads. You have to call a telephone number (0900-principle) and then by acting upon a voice menu you can download a certain ringing tone or graphic. Because this package does not implements a voice box we will use an SMS message to 'order' a ringing tone or groupgraphic. Anyway, if you are interested in implementing such a service using this package, you can look at the Modem::VBox module.
8 Of course, this is just intented as a demo for the GSM::SMS package. As such, the implementation can be a bit crude. But it should be functional anyway...
10 To receive a message, you have to send a SMS message that contains which ringing tone or graphic you want to receive. Such command messages consist of a 6 number string. Thge first 2 numbers indicate the type of resource you want to receive; 10 for a group graphic 20 for a ringing tone. The next 4 digits tell the server which file you actually want to receive.
12 The program maps the first 2 numbers to a directory, inside this directory we find files with a filename like:
18 Just as you thought, thse 'nnnn' are the 4 last digits in the incoming command message.
20 The program picks up the file and sends it back to the commands message originating address.
24 ./sms --config=<config file>
28 The following directives can be used in the config file.
30 access=^\+32475,^\+32478
31 comma seperated access list. The incoming phone number must match
32 one of these regular expressions to be allowed access.
34 rtttldir=./media/rtttl
35 directory where to find ringing tones.
38 prefix to use in the 6 digit number to map a command to a ringing tone.
40 groupgraphicdir=./media/groupgraphics
41 directory where to find group graphics
44 prefix to use in the 6 digit number to map a command to a group graphic.
46 transportconfig=./transport.conf
47 transport configuration file to use
50 log file to keep date, time, originating phonenumber and file requested. Can be used to keep accountancy.