aecda2964346e71e108c211c4983a95fa7706104
[mdsms.git] / setup.h
1 /*
2  * $Id$
3  *
4  * $Log$
5  * Revision 1.4  1999/06/03 11:46:41  short
6  * Logging (--log) implemented.
7  *
8  * Revision 1.3  1999/06/03 10:52:32  short
9  * Commented all the entries in setup.h.
10  *
11  * Revision 1.2  1999/06/03 10:38:52  short
12  * Implemented remaining communication timeouts and maximum retry count.
13  *
14  * Revision 1.1.1.1  1999/05/26 13:06:26  short
15  * First alpha release.
16  *
17  */
18
19 #define CONFIG_MAIN "/etc/" PACKAGE "rc" /* global configuration file */
20 #define CONFIG_HOME    "/." PACKAGE "rc" /* user-local cfg file,
21                                             $HOME is prepended automatically */
22 #define DEF_DEVICE "/dev/mobildock" /* --device default */
23 #define DEF_LOGNAME "" /* --log default */
24 #ifndef DEF_LOCKFILE
25 #define DEF_LOCKFILE "/var/lock/LCK..%s" /* --lockfile default */
26 #endif
27 #define DEF_MAXRETRY 10 /* --maxretry default */
28 #define DEF_READTIME 60*60 /* --readtime default */
29 #define DEF_CHARTIME 10 /* --chartime default */
30 #define DEF_CMDTIME 500 /* --cmdtime default */
31 #define MAXCONFIG 4096 /* maximum allowed size of any configuration file */
32 #define MAXCFGARGS 256 /* maximum allowed number of arguments in cfg file */
33 #define MAXCFGLOOP 5 /* maximum number of recursive opens in cfg files */
34 #define MAXCFGNUM 20 /* total maximum number of cfgs read during one run */
35 #define DEVLOCK_PERIOD 2 /* seconds between attempts to obtain a lockfile */
36 #define DEVLOCK_MAXEMPTY 1 /* seconds to wait while lockfile is empty
37                               to prevent races during lock creation */
38 #define MAXSENDTIME 2 /* max. allowed number of seconds for sending one char */
39 #define LOCKREPORT 15 /* report to logfile if device lock took more than
40                          this parameter taken in seconds */
41 #define ADDR_NAT 0x81 /* PDU address type for non-'+' numbers */
42 #define ADDR_INT 0x91 /* PDU address type for numbers prefixed by '+' */
43 #define PDU_TYPE 0x11 /* first byte of PDU, SMS submit */
44 #define PDU_MR   0x00 /* default message reference, filled by Siemens A1 */
45 #define PDU_PID  0x00 /* PDU protocol identifier, SMS message type */
46 #define PDU_DCS  0x00 /* PDU Data Coding Scheme, 7-bit class-2 message */
47 #define PDU_VP   0xFF /* PDU Validity Period, maximum relative time */
48 #define MAXNUMLEN 20 /* maximum number of digits in GSM number */
49 #define MAXBODYLEN 160 /* maximum length of characters in SMS body */
50 #define BODYLOAD 200 /* number of bytes to read when body not on command line */
51 #define ERROR_SUBSTR1 "ERROR" /* first failure ind. substring in A1 response */
52 #define ERROR_SUBSTR2 "\nError:" /* second such, this one from MobilDock */