X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=options.c;h=081e2c5a5fea616dbc2187eb76d238f0972a869e;hp=b1c52cfacf7fd43a39304ac5c6f879ae846659a8;hb=9e6a068f252adab72e05fa732de363fc1cc98fe0;hpb=97aa0881beacf536e3a2296381c055887583db8f diff --git a/options.c b/options.c index b1c52cf..081e2c5 100644 --- a/options.c +++ b/options.c @@ -21,7 +21,7 @@ #include struct options options = { - "/usr/local/lcr/log", /* log file */ + LOG_DIR "/log", /* log file */ 0x0000, /* debug mode */ 'a', /* a-law */ "0", /* national prefix */ @@ -31,13 +31,11 @@ struct options options = { "", /* dummy caller id */ 0, /* by default use priority 0 */ "lcr@your.machine", /* source mail adress */ - "/var/tmp", /* path of lock files */ + "/var/run", /* path of lock files */ 0700, /* rights of lcr admin socket */ -1, /* socket user (-1= no change) */ -1, /* socket group (-1= no change) */ 1, /* use polling of main loop */ - "mISDN_l1loop.1", /* GSM/Asterisk side */ - "mISDN_l1loop.2", /* LCR side */ }; char options_error[256]; @@ -237,22 +235,6 @@ int read_options(char *options_error) } else if (!strcmp(option,"polling")) { options.polling = 1; - } else - if (!strcmp(option,"loopback-ext")) { - if (param[0]==0) { - UPRINT(options_error, "Error in %s (line %d): parameter for option %s missing.\n",filename,line, option); - goto error; - } - SCPY(options.loopback_ext, param); - - } else - if (!strcmp(option,"loopback-lcr")) { - if (param[0]==0) { - UPRINT(options_error, "Error in %s (line %d): parameter for option %s missing.\n",filename,line, option); - goto error; - } - SCPY(options.loopback_lcr, param); - } else { UPRINT(options_error, "Error in %s (line %d): wrong option keyword %s.\n", filename,line,option); goto error;