90270c64c0b7facfce5be4cf1e4bf56a41c25ce9
[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         char    h323_name[128];         /* the name of h323 endpoint */
26         int     h323_ringconnect;       /* connected when ringing */
27         int     h323_gsm_pri;           /* priority to use of GSM codec (0 == don't use) */
28         int     h323_gsm_opt;
29         int     h323_g726_pri;          /* priority to use of G726 codec (0 == don't use) */
30         int     h323_g726_opt;
31         int     h323_g7231_pri;         /* priority to use of G7231 codec (0 == don't use) */
32         int     h323_g729a_pri;         /* priority to use of G729a codec (0 == don't use) */
33         int     h323_lpc10_pri;         /* priority to use of lpc-10 codec (0 == don't use) */
34         int     h323_speex_pri;         /* priority to use of speex codec (0 == don't use) */
35         int     h323_speex_opt;
36         int     h323_xspeex_pri;        /* priority to use of xspeex codec (0 == don't use) */
37         int     h323_xspeex_opt;
38         int     h323_law_pri;           /* priority to use of law codec (0 == don't use) */
39         int     h323_law_opt;
40         int     h323_icall;             /* allow incoming h323 calls */
41         char    h323_icall_prefix[32];  /* the prefix */
42         int     h323_port;              /* port for incoming calls */
43         int     h323_gatekeeper;        /* register with h323 gatekeeper */
44         char    h323_gatekeeper_host[128];/* the gatekeeper host */
45         int     sip_port;
46         int     sip_maxqueue;
47         int     nodtmf;                 /* use dtmf detection */
48         char    dummyid[32];            /* caller id for external calls if not available */
49         int     dsptones;               /* tones will be generated via dsp.o 1=american 2=ger */
50         int     schedule;               /* run process in realtime @ given priority */
51         char    email[128];             /* source email address */
52 };      
53
54 extern struct options options;
55
56 int read_options(void);
57
58