1GAMMU-SMSD-FILES(7) Gammu Documentation GAMMU-SMSD-FILES(7)
2
3
4
6 gammu-smsd-files - gammu-smsd(1) backend using filesystem as a message
7 storage
8
9
11 gammu-smsd(1) supports several backends. Actual backend is chosen in a
12 config file gammu-smsdrc(5).
13
14 FILES backend stores all data on a filesystem in folders defined by
15 configuration (see gammu-smsdrc(5) for description of configuration
16 options).
17
18
19 Limitation
20 FILES backend does not support gammu-smsd-inject(1) program. This sup‐
21 port might be eventually added in future versions.
22
23
24 Receiving of messages
25 Received messages are stored in a folder defined by configuration. The
26 filename will be IN<date>_<time>_<serialno>_<phone_num‐
27 ber>_<sequence>.<ext>, for example
28 NN20021130_021531_00_+45409000931640979_00.txt.
29
30 Explanation of fields:
31
32 <date> - date in format YYYYMMDD
33 <time> - time in format HHMMSS
34 <serialno> - order of a message (in case more messages were received at
35 same time), in format NN
36 <sequence> - part of the message for multipart messages, in format NN
37 <ext> - txt for text message, 8-bit messages are stored with bin exten‐
38 sion
39
40 The content of the file is content of the message and the format is
41 defined by configuration directive InboxFormat (see gammu-smsdrc(5)).
42
43
44 Transmitting of messages
45 Transmitted messages are read from a folder defined by configuration.
46 The filename should be one of the following formats:
47
48 - OUT<phone_number>.<ext><options>
49 - OUT<priority>_<phone_number>_<serialno>.<ext><options>
50 - OUT<priority><date>_<time>_<serialno>_<phone_number>_<any‐
51 thing>.<ext><options>
52
53 Explanation of fields:
54
55 <priority> - an alphabetic character (A-Z) A = highest priority
56 <ext> - txt for normal text SMS
57 <options> - Options appended to the extension applying to text SMS:
58 d - delivery report requested
59 f - flash SMS
60 b - WAP bookmark as name,URL
61
62 For example OUTG20040620_193810_123_+4512345678_xpq.txtdf is a flash
63 text SMS requesting delivery reports.
64
65 Other fields are same as for received messages.
66
67 SMSes will be transmitted sequentially based on the file name. The con‐
68 tents of the file is the SMS to be transmitted (in Unicode or standard
69 character set).
70
71 The contents of the file is the SMS to be transmitted (in Unicode or
72 standard character set), for WAP bookmarks it is split on as Name,URL,
73 for text messages whole file content is used.
74
75 Please note that if file is not in Unicode, encoding is detected based
76 on locales, which do not have to be configured if SMSD is running from
77 init script. If this is your case, please add locales definition to
78 init script.
79
80
82 Example of the 'detail' inbox format:
83
84
85 [SMSBackup000]
86 #ABCDEFGHIJKLMNOPQRSTUVWXYZ
87 #
88 SMSC = "+4540590000"
89 SMSCUnicode = 002B0034003500340030003500390030003000300030
90 Sent = 20021201T025023
91 State = UnRead
92 Number = "+4522706947"
93 NumberUnicode = 002B0034003500320032003700300036003900340037
94 Name = ""
95 NameUnicode =
96 Text00 = 004100420043004400450046004700480049004A004B004C004D004E004F0050005100520053005400550056005700580059005A000A
97 Coding = Default
98 Folder = 1
99 Length = 27
100 Class = -1
101 ReplySMSC = False
102 RejectDuplicates = True
103 ReplaceMessage = 0
104 MessageReference = 0
105
106
108 gammu-smsd(1), gammu-smsdrc(5), gammu(1), gammurc(5)
109
111 gammu-smsd and this manual page were written by Michal Cihar
112 <michal@cihar.com>.
113
115 Copyright © 2009 Michal Cihar and other authors. License GPLv2: GNU
116 GPL version 2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
117 This is free software: you are free to change and redistribute it.
118 There is NO WARRANTY, to the extent permitted by law.
119
121 Please report bugs to <http://bugs.cihar.com>.
122
123
124
125Gammu 1.23.0 January 8, 2009 GAMMU-SMSD-FILES(7)