Data-Over-Voice
[lcr.git] / options.h
1 /*****************************************************************************\
2 **                                                                           **
3 ** PBX4Linux                                                                 **
4 **                                                                           **
5 **---------------------------------------------------------------------------**
6 ** Copyright: Andreas Eversberg                                              **
7 **                                                                           **
8 ** options header file                                                       **
9 **                                                                           **
10 \*****************************************************************************/ 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 struct options {
16         char    log[128];               /* location of log file */
17         int     deb;                    /* debugging */
18         char    law;                    /* 'a' or 'u' law */
19
20         char    national[10];           /* prefix for national calls */
21         char    international[10];      /* prefix for international calls */
22
23         char    tones_dir[64];          /* directory of all tones/patterns */
24         char    fetch_tones[256];       /* directories of tones to fetch */
25         char    dummyid[32];            /* caller id for external calls if not available */
26         int     schedule;               /* run process in realtime @ given priority */
27         char    email[128];             /* source email address */
28         char    lock[128];              /* path of lock files */
29         int     socketrights;           /* rights of lcr admin socket */
30         int     socketuser;             /* socket chown to this user */
31         int     socketgroup;            /* socket chgrp to this group */
32         int     polling;
33         char    otp_dir[256];           /* directory of OTP files */
34 };      
35
36 extern struct options options;
37
38 int read_options(char *options_error);
39
40 #ifdef __cplusplus
41 }
42 #endif
43