Commit Graph

29 Commits

Author SHA1 Message Date
tobiasb 6d14cc8aad 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 78aeecb340 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 f17c3ba564 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:02 +00:00
akool f7e13abfde removed avon-, vorwahl- and areacodes-support 1999-08-20 19:43:46 +00:00
akool 47c42c59f9 not required references to libndbm removed 1999-06-11 15:46:54 +00:00
akool 7fddd627e4 - first try to add the 1999 tarif of the German Telekom
- fix the areacode 2.0 support
1998-12-16 20:57:24 +00:00
luethje e1d10fddbf isdnrep and lib: bugfixes 1998-10-13 21:53:17 +00:00
akool 31048f5b41 - 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:27:23 +00:00
akool 15abb04d17 Renamed old to new zone-names (CityCall, RegioCall, GermanCall, GlobalCall) 1998-06-07 21:03:26 +00:00
luethje 679f1922ed Some changes for "vorwahlen.dat" 1998-05-11 19:43:43 +00:00
luethje 7ba7263755 Added support for VORWAHLEN2.EXE 1998-05-10 22:11:47 +00:00
paul f2abd95a27 Fixed compiler warnings from egcs. 1998-04-28 08:33:52 +00:00
luethje 64d039cff4 Patches by Paul Slootman 1998-03-08 12:13:38 +00:00
luethje 61a65e70af bugfixes 1997-06-22 22:57:08 +00:00
luethje 89d58c2d0c some bugfixes 1997-06-15 23:50:34 +00:00
luethje 32294ed9c3 bugfix for isdnconf 1997-05-19 23:37:05 +00:00
luethje 02f1102b7d - 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:57:51 +00:00
luethje ea361dffb2 isdnlog: new switch -O
isdnrep: new format %S
bugfix in handle_runfiles()
1997-05-09 23:30:37 +00:00
luethje 548dd7c055 replace variables: some bugfixes, README comleted 1997-04-15 00:19:53 +00:00
luethje d38c0170dd 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:56:42 +00:00
luethje d5215e576a 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:05 +00:00
luethje 0470bc659c bug fixes: environ variables are working again, no seg. 11 :-)
improved performance for reading the config files.
1997-04-03 22:39:11 +00:00
luethje 3d80500d19 inserted the line #include <errno.h> in avmb1/avmcapictrl.c and imon/imon.c,
some bugfixes, new structure in isdnlog/isdnrep/isdnrep.c.
1997-03-20 00:18:57 +00:00
luethje 39c3e49a66 README and function expand_number() completed. 1997-03-19 00:08:37 +00:00
luethje 0470d1ad68 Function Compare_Sections() completed. 1997-03-18 23:01:47 +00:00
luethje 3beb5afbfa README.conffile completed, paranoid_check() used by read_conffiles(),
policy.h will be removed by "make distclean".
1997-03-07 23:34:47 +00:00
luethje c24ebe0be5 Problem in create_runfie() fixed. New function paranoia_check() implemented. 1997-03-06 20:36:32 +00:00
luethje fa05d6b60f merging of the current version and my tree 1997-03-03 22:05:37 +00:00
fritz 36b66f9590 Added files in lib 1997-03-03 04:23:12 +00:00