backup
[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         char    ports[256];             /* use of ports */
15 //      int     ptp;                    /* if layer 2 should be watched */
16         int     deb;                    /* debugging */
17         char    law;                    /* 'a' or 'u' law */
18
19         char    national[10];           /* prefix for national calls */
20         char    international[10];      /* prefix for international calls */
21
22         char    tones_dir[64];          /* directory of all tones/patterns */
23         char    fetch_tones[256];       /* directories of tones to fetch */
24         char    extensions_dir[64];     /* directory of extensions */
25         int     nodtmf;                 /* use dtmf detection */
26         char    dummyid[32];            /* caller id for external calls if not available */
27         int     dsptones;               /* tones will be generated via dsp.o 1=american 2=ger */
28         int     schedule;               /* run process in realtime @ given priority */
29         char    email[128];             /* source email address */
30 };      
31
32 extern struct options options;
33
34 int read_options(void);
35
36