X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=options.c;h=4c1fabb1f0b71b474428dd1f03ab9ddc51de929b;hp=a69dd61637a20ad629b798c48e08cd0a55c8ab2f;hb=55a263bc1edd568d2fb85fcd2a8f3d118bebbeff;hpb=fd2045584f7084d209607f4d717a66bea9afe88e diff --git a/options.c b/options.c index a69dd61..4c1fabb 100644 --- a/options.c +++ b/options.c @@ -9,21 +9,10 @@ ** ** \*****************************************************************************/ -#include -#include -#include #include "main.h" struct options options = { - "/usr/local/pbx/log", /* log file */ - {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, + "/usr/local/lcr/log", /* log file */ 0x0000, /* debug mode */ 'a', /* a-law */ "0", /* national prefix */ @@ -31,11 +20,10 @@ struct options options = { "tones_american", /* directory of tones */ "", /* directories of tones to fetch */ "extensions", /* directory of extensions */ - 0, /* dtmf detection on */ "", /* dummy caller id */ 0, /* use tones by dsp.o */ 0, /* by default use priority 0 */ - "pbx@jolly.de" /* source mail adress */ + "lcr@your.machine" /* source mail adress */ }; /* read options @@ -143,31 +131,6 @@ int read_options(void) PDEBUG(DEBUG_CONFIG, "log file: %s\n", options.log); } else - if (!strcmp(option,"port")) - { - i = strtol(param, NULL, 0); - if (i < 1 || i > sizeof(options.ports)) - { - PERROR_RUNTIME("Error in %s (line %d): port number %s out of range.\n", filename, line, option); - goto error; - } - options.ports[i] |= FLAG_PORT_USE; - - PDEBUG(DEBUG_CONFIG, "adding interface: %d (param=%s)\n", i, param); - if (strstr(param, "ptp")) - { - options.ports[i] |= FLAG_PORT_PTP; - PDEBUG(DEBUG_CONFIG, " -> interface shall be ptp\n"); - } - } else -#if 0 - if (!strcmp(option,"ptp")) - { - options.ptp = 1; - - PDEBUG(DEBUG_CONFIG, "ptp layer-2 watch and keep established.\n"); - } else -#endif if (!strcmp(option,"alaw")) { options.law = 'a'; @@ -231,12 +194,6 @@ int read_options(void) PDEBUG(DEBUG_CONFIG, "inernational dial prefix: %s\n", param); } else - if (!strcmp(option,"nodtmf")) - { - options.nodtmf = 1; - - PDEBUG(DEBUG_CONFIG, "disable dtmf detection\n"); - } else if (!strcmp(option,"dummyid")) { SCPY(options.dummyid, param);