summaryrefslogtreecommitdiffstats
path: root/options.h
blob: 7ea516638310e83a4814ff5035d6fff75064e90e (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
37
38
39
40
41
42
43
44
/*****************************************************************************\
**                                                                           **
** PBX4Linux                                                                 **
**                                                                           **
**---------------------------------------------------------------------------**
** Copyright: Andreas Eversberg                                              **
**                                                                           **
** options header file                                                       **
**                                                                           **
\*****************************************************************************/ 
#ifdef __cplusplus
extern "C" {
#endif

struct options {
	char	log[128];		/* location of log file */
	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	dummyid[32];		/* caller id for external calls if not available */
	int	schedule;		/* run process in realtime @ given priority */
	char	email[128];		/* source email address */
	char	lock[128];		/* path of lock files */
	int	socketrights;		/* rights of lcr admin socket */
	int     socketuser;             /* socket chown to this user */
	int     socketgroup;            /* socket chgrp to this group */
	int	polling;
	char loopback_ext[64];		/* loopback interface GSM side */
	char loopback_lcr[64];		/* loopback interface LCR side */
};	

extern struct options options;

int read_options(char *options_error);

#ifdef __cplusplus
}
#endif