X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=options.c;h=9274eb193f5913073f4a3cccb4b60e7978f6e040;hp=760cfb339a26b0caadd75e3406b2308633f4b321;hb=79bd731c0db3e3202cfeed2af3fb217ae744b70f;hpb=2dbfdb87dd122cd057887a16e84cf635f8abf67b diff --git a/options.c b/options.c index 760cfb3..9274eb1 100644 --- a/options.c +++ b/options.c @@ -35,9 +35,8 @@ struct options options = { 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 */ + 0, /* use polling of main loop */ + "/root", /* OTP directory */ }; char options_error[256]; @@ -238,21 +237,12 @@ int read_options(char *options_error) if (!strcmp(option,"polling")) { options.polling = 1; } else - if (!strcmp(option,"loopback-ext")) { + if (!strcmp(option,"otp-dir")) { 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); + UPRINT(options_error, "Error in %s (line %d): parameter for option %s missing.\n", filename,line,option); goto error; } - SCPY(options.loopback_lcr, param); - + SCPY(options.otp_dir, param); } else { UPRINT(options_error, "Error in %s (line %d): wrong option keyword %s.\n", filename,line,option); goto error;