summaryrefslogblamecommitdiffstats
path: root/options.h
blob: df952b3a73771f8c9ebe1ebd8b8e8ac9aaf289a8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                                







                                                                             
                                                                                           


                                                                                                

                                                                        



                              

                               


                       
/*****************************************************************************\
**                                                                           **
** PBX4Linux                                                                 **
**                                                                           **
**---------------------------------------------------------------------------**
** Copyright: Andreas Eversberg                                              **
**                                                                           **
** options header file                                                       **
**                                                                           **
\*****************************************************************************/ 

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	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 */
	char	lock[128];		/* path of lock files */
	int	socketrights;		/* rights of lcr admin socket */
};	

extern struct options options;

extern char options_error[256];

int read_options(void);