LCR now runs as a user.
[lcr.git] / options.h
1 /*****************************************************************************\
2 **                                                                           **
3 ** PBX4Linux                                                                 **
4 **                                                                           **
5 **---------------------------------------------------------------------------**
6 ** Copyright: Andreas Eversberg                                              **
7 **                                                                           **
8 ** options header file                                                       **
9 **                                                                           **
10 \*****************************************************************************/ 
11
12 struct options {
13         char    log[128];               /* location of log file */
14         int     deb;                    /* debugging */
15         char    law;                    /* 'a' or 'u' law */
16
17         char    national[10];           /* prefix for national calls */
18         char    international[10];      /* prefix for international calls */
19
20         char    tones_dir[64];          /* directory of all tones/patterns */
21         char    fetch_tones[256];       /* directories of tones to fetch */
22         char    extensions_dir[64];     /* directory of extensions */
23         char    dummyid[32];            /* caller id for external calls if not available */
24         int     dsptones;               /* tones will be generated via dsp.o 1=american 2=ger */
25         int     schedule;               /* run process in realtime @ given priority */
26         char    email[128];             /* source email address */
27         char    lock[128];              /* path of lock files */
28         int     socketrights;           /* rights of lcr admin socket */
29 };      
30
31 extern struct options options;
32
33 extern char options_error[256];
34
35 int read_options(void);
36
37