X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=options.c;h=760cfb339a26b0caadd75e3406b2308633f4b321;hp=7fb9bcb5510a1e73cd9dc9aa4eacdf0ea2a489d3;hb=2dbfdb87dd122cd057887a16e84cf635f8abf67b;hpb=3a8f58ec8946b7f1683208d1cc3b054486f12e6c diff --git a/options.c b/options.c index 7fb9bcb..760cfb3 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,11 +31,10 @@ 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) */ - 0, /* enable gsm */ 1, /* use polling of main loop */ "mISDN_l1loop.1", /* GSM/Asterisk side */ "mISDN_l1loop.2", /* LCR side */ @@ -236,9 +235,6 @@ int read_options(char *options_error) if (!strcmp(option,"socketrights")) { options.socketrights = strtol(param, NULL, 0); } else - if (!strcmp(option,"gsm")) { - options.gsm = 1; - } else if (!strcmp(option,"polling")) { options.polling = 1; } else