"00", /* international prefix */
"tones_american", /* directory of tones */
"", /* directories of tones to fetch */
- "extensions", /* directory of extensions */
"", /* dummy caller id */
0, /* use tones by dsp.o */
0, /* by default use priority 0 */
- "lcr@your.machine" /* source mail adress */
+ "lcr@your.machine", /* source mail adress */
+ "/var/tmp", /* path of lock files */
+ 0700 /* rights of lcr admin socket */
};
char options_error[256];
unsigned int line,i;
char buffer[256];
- SPRINT(filename, "%s/options.conf", INSTALL_DATA);
+ SPRINT(filename, "%s/options.conf", CONFIG_DATA);
if (!(fp=fopen(filename,"r")))
{
} else
if (!strcmp(option,"extensions_dir"))
{
- if (param[0]==0)
- {
- SPRINT(options_error, "Error in %s (line %d): parameter for option %s missing.\n",filename,line,option);
- goto error;
- }
- if (param[strlen(param)-1] == '/')
- param[strlen(param)-1]=0;
- SCPY(options.extensions_dir, param);
-
+ // obsolete
} else
if (!strcmp(option,"national"))
{
SCPY(options.email, param);
} else
+ if (!strcmp(option,"lock"))
+ {
+ if (param[0]==0)
+ {
+ SPRINT(options_error, "Error in %s (line %d): parameter for option %s missing.\n",filename,line,option);
+ goto error;
+ }
+ if (param[strlen(param)-1] == '/')
+ param[strlen(param)-1]=0;
+ SCPY(options.lock, param);
+
+ } else
+ if (!strcmp(option,"socketrights"))
+ {
+ options.socketrights = strtol(param, NULL, 0);
+ } else
{
SPRINT(options_error, "Error in %s (line %d): wrong option keyword %s.\n", filename,line,option);
goto error;