X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=options.c;h=b1c52cfacf7fd43a39304ac5c6f879ae846659a8;hp=88f64246fe932a027736e617ffc787e75168f908;hb=74a7fe54a81bb7e996ea45203bbc8cc0ff6b8dda;hpb=882882e0e2f6c451c4b9a5aa8209aa60352049c9 diff --git a/options.c b/options.c index 88f6424..b1c52cf 100644 --- a/options.c +++ b/options.c @@ -35,8 +35,9 @@ struct options options = { 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 */ + 1, /* use polling of main loop */ + "mISDN_l1loop.1", /* GSM/Asterisk side */ + "mISDN_l1loop.2", /* LCR side */ }; char options_error[256]; @@ -234,11 +235,24 @@ 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 + 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;