X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=options.c;h=7fb9bcb5510a1e73cd9dc9aa4eacdf0ea2a489d3;hp=1cadbe52fcce86a0cf21b6aeecf338971f829c31;hb=132d639333dd5e7a7832dcd9784181ee09a16f9e;hpb=2732c3ce40d8e0b3875b5a0c933c98f27c8cbae9 diff --git a/options.c b/options.c index 1cadbe5..7fb9bcb 100644 --- a/options.c +++ b/options.c @@ -35,7 +35,10 @@ struct options options = { 0700, /* rights of lcr admin socket */ -1, /* socket user (-1= no change) */ -1, /* socket group (-1= no change) */ - 0 /* enable gsm */ + 0, /* enable gsm */ + 1, /* use polling of main loop */ + "mISDN_l1loop.1", /* GSM/Asterisk side */ + "mISDN_l1loop.2", /* LCR side */ }; char options_error[256]; @@ -235,6 +238,25 @@ int read_options(char *options_error) } else if (!strcmp(option,"gsm")) { options.gsm = 1; + } 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;