Commit Graph

63 Commits

Author SHA1 Message Date
Tobias Becker 542e8a2eb6 - replaced prototype for basename() by #include <libgen.h>
- include <linux/limits.h> only if __linux__ is defined, try
  <limits.h> otherwise
2007-01-05 03:45:50 +00:00
Karsten Keil e4295cd82f fix some issues with newer gcc (mostly aliasing) 2006-01-15 15:08:55 +00:00
Tobias Becker e585a62bce Minor fixes, required by gcc-3.4: Label at end of block, double function
declaration.  Revealed by Andreas Jochens as Debian bug #266523.
2004-08-25 21:22:14 +00:00
Tobias Becker 0510131441 The modifications remove a bug which occurs when dealing with special
numbers and the callerid.conf file.  Regular numbers such as +4940555
can be noted in the following way in a NUMBER line:
NUMBER=+49-40-555, +49-69-555

For special numbers prior to this modifications there are strong
unmentioned limitations.  Only one number per NUMBER line is allowed
without any of the options shown above.
Allowed: NUMBER=01802555
Not allowed/not working: NUMBER=01802-555
also not working: NUMBER=0180255, 0700555

This modification brings the later two examples in function.  About the
background of the problem:  isdnlog/isdnrep and other know a sort of
telephone numbers called `special numbers', which are noted with S: and
N: Tags in the rate-file. These numbers are per definition only available
within the country.  In order to emphasize this and for other more
practical reasons, the normalized format for this numbers is not the
usual +<countrycode><areacode><local number> but the national format
like 01802555.

While the logged numbers in /var/log/isdn.log or so follow this convention,
such entries in callerid.conf got internally converted to the normalized
format (+49180255 in case of the last mentioned number) so that the
comparison executed by isdnlog or isdnrep did not show the expected
result.

The modification activates the advanced feature in the notation of normal
numbers for special numbers.

IMPORTANT NOTE:  As the resulting library is located outside the isdnlog
subdirectory, this changes may influence other parts of the isdn4k-utils.
2003-07-23 20:55:39 +00:00
Paul Slootman 8930a5ebb0 Add "#define CCODE_OTHER 9999" for defining behaviour in
non-specified countries.
2002-01-31 20:03:59 +00:00
Paul Slootman d9ed83181d Added missing endpwent() call that meant /etc/passwd was being kept open;
reorganized num_match() a bit; made the arrays in expand_number() one byte
bigger to prevent possible off-by-one buffer overflow.
2001-08-18 11:59:01 +00:00
Paul Slootman 85909a8bed Now isdnlog doesn't use any more ISDN_XX defines to determine the way it works.
It now uses the value of "COUNTRYCODE = 999" to determine the country, and sets
a variable mycountrynum to that value. That is then used in the code to set the
way isdnlog works.
It works for me, please check it! No configure.in / doc changes yet until
it has been checked to work.
So finally a version of isdnlog that can be compiled and distributed
internationally.
2000-09-05 08:05:03 +00:00
Andreas Kool 0bf58609a8 increased BUFSIZ 2000-07-19 19:45:43 +00:00
Andreas Kool 2a89defced - lib/Makefile.in ... no cp GNUmakefile 1999-12-12 17:22:36 +00:00
Paul Slootman 88b686899b Added { } to suppress egcs warnings. 1999-11-03 16:13:36 +00:00
Andreas Kool 37488a409c isdnlog-3.58
- big cleanup ( > 1.3 Mb removed!)
  - v0.02 of destination support - better, but not perfect
    (does't work with gcc-2.7.2.3 yet - use egcs!)
1999-10-26 18:17:19 +00:00
Andreas Kool fd12a2cacd removed avon-, vorwahl- and areacodes-support 1999-08-20 19:43:48 +00:00
Andreas Kool 2e5d4349f6 not required references to libndbm removed 1999-06-11 15:47:03 +00:00
Paul Slootman 441c0446b3 glibc 2.1 compatibility 1999-06-01 12:42:45 +00:00
Andreas Kool 31020a15fd - first try to add the 1999 tarif of the German Telekom
- fix the areacode 2.0 support
1998-12-16 20:57:30 +00:00
Stefan Luethje 3236853163 isdnlog: Added the switch -K 1998-10-18 20:13:51 +00:00
Stefan Luethje e09053d2ba isdnlog: evaluate the variable PATH for program starts. 1998-10-13 22:17:25 +00:00
Stefan Luethje 44796a035d isdnrep and lib: bugfixes 1998-10-13 21:53:37 +00:00
Andreas Kool c8e275d319 - quick and dirty Call-History in "-m" Mode (press "h" for more info) added
- eat's one more socket, Stefan: sockets[3] now is STDIN, FIRST_DESCR=4 !!
 - Support for tesion)) Baden-Wuerttemberg Tarif
 - more Providers
 - Patches from Wilfried Teiken <wteiken@terminus.cl-ki.uni-osnabrueck.de>
   - better zone-info support in "tools/isdnconf.c"
   - buffer-overrun in "isdntools.c" fixed
 - big Austrian Patch from Michael Reinelt <reinelt@eunet.at>
   - added $(DESTDIR) in any "Makefile.in"
   - new Configure-Switches "ISDN_AT" and "ISDN_DE"
     - splitted "takt.c" and "tools.c" into
         "takt_at.c" / "takt_de.c" ...
         "tools_at.c" / "takt_de.c" ...
   - new feature
       CALLFILE = /var/log/caller.log
       CALLFMT  = %b %e %T %N7 %N3 %N4 %N5 %N6
     in "isdn.conf"
 - ATTENTION:
     1. "isdnrep" dies with an seg-fault, if not HTML-Mode (Stefan?)
     2. "isdnlog/Makefile.in" now has hardcoded "ISDN_DE" in "DEFS"
     	should be fixed soon
1998-09-26 18:31:14 +00:00
Andreas Kool d554e7416c Renamed old to new zone-names (CityCall, RegioCall, GermanCall, GlobalCall) 1998-06-07 21:03:26 +00:00
Paul Slootman 7a38aff1d1 More paranoid about freeing pointers. 1998-05-20 12:22:15 +00:00
Paul Slootman eb5c95f177 Oops, the temp string _was_ necessary. Made it static so that returning a
pointer to it is not a problem.
1998-05-20 09:56:14 +00:00
Paul Slootman 8b26eeb544 function Find_Section returned pointer to local automatic variable. Local
variable removed, as it was not necessary; now return parameter.
1998-05-20 09:25:01 +00:00
Stefan Luethje 5fed743c5c Some changes for "vorwahlen.dat" 1998-05-11 19:43:51 +00:00
Stefan Luethje d7bedaa9e3 Added support for VORWAHLEN2.EXE 1998-05-10 22:12:04 +00:00
Paul Slootman d6dbcb938f Fixed compiler warnings from egcs. 1998-04-28 08:35:11 +00:00
Stefan Luethje 575ed66236 Patches by Paul Slootman 1998-03-08 12:13:49 +00:00
Stefan Luethje 5d3b036e53 added the option "force" for the commands delif and reset 1997-07-23 20:39:22 +00:00
Stefan Luethje 67a708a9a3 bugfixes 1997-06-22 22:57:08 +00:00
Stefan Luethje 2970a74594 some bugfixes 1997-06-15 23:50:34 +00:00
Stefan Luethje 2fd629b8de isdnlog: close all files and open again after kill -HUP
isdnrep:  support vbox version 2.0
isdnconf: changes by Roderich Schupp <roderich@syntec.m.EUnet.de>
conffile: ignore spaces at the end of a line
1997-05-25 19:41:29 +00:00
Stefan Luethje 248e91bfea bugfix for isdnconf 1997-05-19 23:37:05 +00:00
Stefan Luethje 9389957c89 - bugfix: it is possible to install isdnlog now
- improved performance for read files for vbox files and mgetty files.
- it is possible to decide via config if you want to use avon or
  areacode.
1997-05-19 22:58:36 +00:00
Stefan Luethje 3d790cff4f isdnlog: new switch -O
isdnrep: new format %S
bugfix in handle_runfiles()
1997-05-09 23:31:10 +00:00
Stefan Luethje d52dd629bf new structure of isdnrep completed. 1997-04-17 23:29:51 +00:00
Stefan Luethje ba6da0c867 some bugfixes, README completed 1997-04-16 22:23:09 +00:00
Stefan Luethje e052bd91b3 allows the character `"' in the program argument like the shell.
some bugfixes.
1997-04-15 22:37:20 +00:00
Stefan Luethje 1754c812f0 replace variables: some bugfixes, README comleted 1997-04-15 00:20:19 +00:00
Stefan Luethje 3b60f90d4f some bug fixes 1997-04-10 23:41:26 +00:00
Stefan Luethje ec9ba6e13f Added the feature, that environment variables are allowed in the config files. 1997-04-10 23:32:39 +00:00
Stefan Luethje 0c8f574960 Create the file isdn.conf
some bug fixes for pid and lock file
make the prefix of the code in `isdn.conf' variable
1997-04-08 21:57:07 +00:00
Stefan Luethje 2cc5946e20 Bugfix: isdnlog is running again ;-)
isdnlog creates now a file like /var/lock/LCK..isdnctrl0
README completed
Added some values (countrycode, areacode, lock dir and lock file) to
the global menu
1997-04-08 00:02:29 +00:00
Stefan Luethje 1216ab303f bug fixes: environ variables are working again, no seg. 11 :-)
improved performance for reading the config files.
1997-04-03 22:39:13 +00:00
Fritz Elfert 9b9ff6fdfc Bugfix: Changes for bash-2.00.0:
workaround for empty list in for-loops.
        workaround for missing allow_null_glob_expansion
Bugfix: CONFIG_HASX11 was not reset on non-X11 systems.
1997-04-03 08:57:15 +00:00
Fritz Elfert 5128b325f3 Fixed 2 typos 1997-03-24 03:56:30 +00:00
Fritz Elfert 97397667ea Added capbility to override CFLAGS from commandline. 1997-03-24 01:36:45 +00:00
Stefan Luethje bfb267821e improved performance 1997-03-23 23:12:10 +00:00
Fritz Elfert ef46a1719d Fixed a typo. 1997-03-23 19:23:45 +00:00
Stefan Luethje c4caaae9f6 Inserted lines into the files for the revision tool. 1997-03-20 00:28:03 +00:00
Stefan Luethje 2577989b28 Only a test 1997-03-20 00:22:51 +00:00