summaryrefslogtreecommitdiffstats
path: root/options.h
blob: ecf7e3c46aebf0b2a7f321e81ad17f1eb835d676 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*****************************************************************************\
**                                                                           **
** PBX4Linux                                                                 **
**                                                                           **
**---------------------------------------------------------------------------**
** Copyright: Andreas Eversberg                                              **
**                                                                           **
** options header file                                                       **
**                                                                           **
\*****************************************************************************/ 

struct options {
	char	log[128];		/* location of log file */
	char	ports[256];		/* use of ports */
//	int	ptp;			/* if layer 2 should be watched */
	int	deb;			/* debugging */
	char	law;			/* 'a' or 'u' law */

	char	national[10];		/* prefix for national calls */
	char	international[10];	/* prefix for international calls */

	char	tones_dir[64];		/* directory of all tones/patterns */
	char	fetch_tones[256];	/* directories of tones to fetch */
	char	extensions_dir[64];	/* directory of extensions */
	int	nodtmf;			/* use dtmf detection */
	char	dummyid[32];		/* caller id for external calls if not available */
	int	dsptones;		/* tones will be generated via dsp.o 1=american 2=ger */
	int	schedule;		/* run process in realtime @ given priority */
	char	email[128];		/* source email address */
};	

extern struct options options;

int read_options(void);