Commit Graph

541 Commits

Author SHA1 Message Date
paul a56f9b8bf1 There was no bounds checking on unknownzones, which is only useds
if DEBUG is defined. This caused a SIGSEGV with many unknown numbers
(which were all the same, BTW...)  Now only do unknownzones if DEBUG
is defined.
2004-02-25 12:09:08 +00:00
tobiasb 2c930bfa53 isdnlog-4.68:
- New German ratefile, rate-de.dat version 3.08 from rates4linux,
   included rates have been reviewed in January 2004 or later.
 - New setting for parameterfile: closefds=yes
   See isdnlog(8) or isdnlog/start_prog.c for details.
 - Changes checked in earlier but after step to isdnlog-4.67:
   - Added Belgian area codes.
   - Supported database are shown at isdnlog's startup.
   - isdnlog now tries to reconnect to a mysql server if necessary.
   - Fixed SIGSEGV in isdnrep with missing zonenames in ratefile.
   - New options -c and -i for isdnrate.
   - Some small fixes for redirs in ratefiles.
   - Disabled unicode for filehandles in Perl scripts.
2004-02-12 23:52:28 +00:00
tobiasb 003ea565c3 Fixed outdated source code comment. 2004-02-06 16:58:01 +00:00
tobiasb 572688f762 mysql_dbStatus() now really reports the connection state and tries to
reconnect if necessary.  Previously the database server had to be
reachable at isdnlog startup.  Otherwise no database logging took place.
Many thanks to Jochen Erwied for advising this change.
2004-02-06 16:56:20 +00:00
tobiasb f06fb3e873 Second step in restricting fds at isdnlog restart and script starting.
The fd limit is now taken from getrlimit() instead of NR_OPEN.
Close_Fds(first) which tries to close all possible fds is generally
built in but the execution must be requested with "closefds=yes" in
the parameterfile otherwise the isdnlog behaviour remains unchanged.
2004-01-28 14:27:46 +00:00
tobiasb 7aa7b660c2 First step to close all unnecessary open file descriptors before
starting a start script as reaction to a call.  The same applies to the
restart of isdnlog using SIGHUP.  Till now each restart increases the
number of used fds.
For now the modifications are inactive by default.  They can be enabled
by adding the line "DEFS += -DFD_AT_EXEC_MODE=1" to ../Makefile.in.
The next isdnlog (4.68) will have this enabled per default.
The upper limit for fd numbers is taken from NR_OPEN in <linux/limits.h>.
If there is a smarter way to access this limit, please let me know.
Another approach would be to set the close-on-exec flag on each fd
directly after it is opened.  This would require more extensive changes.
I'd like to thank Jan Bernhardt for discovering this problem.
2004-01-26 15:20:07 +00:00
tobiasb 0cc235de67 Do not ignore last provider in ratefile if it contains only redirs (R:)
and no real zones (Z:).
Check whether the resulting zone from getZone is covered by a redir.
Describe current limitations of redirs in rate-files manpage.
2004-01-11 15:16:11 +00:00
tobiasb 567611d3af New options -c and -i for overriding the RATECONF and RATEFILE setting
in isdn.conf.  May be useful for rate-file testing.
2004-01-10 16:43:24 +00:00
tobiasb 22c00ee4ae Show supported database(s) at startup. 2004-01-04 02:22:53 +00:00
tobiasb 53f63986e0 Added Belgian area codes which have been provided by
Siegfried Delwiche <siegfried.delwiche@siemens.com>.
Note: Definitions that also occur for the same number in
country-de.dat or cities.dat are ignored in the code file.
2003-11-22 17:35:25 +00:00
tobiasb a4d6ac0580 Since version 5.8.0 the perl interpreter may expect all filehandles to
be in UTF-8 depending on the locale settings.  isdnlog and its tools are
completely unaware of unicode, so the default encoding is set back to
iso-8859-1 (latin1).  The backward compatible notation was hinted by
Leopold Toetsch.  The changes for perl 5.8.0 are described at
http://www.perldoc.com/perl5.8.0/pod/perldelta.html#PerlIO-is-Now-The-Default
2003-11-22 17:25:50 +00:00
tobiasb 4537649e33 Removed SIGSEGV in isdnrep that occurred while fetching zone names for outgoing calls
from the current ratefile if the matching zone did not contain a name after the zone
number.  This error was introduced with isdnrep-4.65 or rev. 1.96 of isdnrep.c.
Uwe Furchheim discovered the error and provided sufficient details on the mailinglist
rates4linux-users, see http://sourceforge.net/mailarchive/forum.php?forum_id=4262
2003-11-14 20:29:29 +00:00
tobiasb 0680582c2b isdnlog-4.67:
- Enhancements for isdnrep:
   - New option -r for recomputing the connection fees with the rates
     from the current (and for a different or the cheapest provider).
   - Revised output format of summaries at end of report.
   - New format parameters %j, %v, and %V.
   - 2 new input formats for -t option.
 - Fix for dualmode workaround 0x100 to ensure that incoming calls
   will not become outgoing calls if a CALL_PROCEEDING message with
   an B channel confirmation is sent by a terminal prior to CONNECT.
 - Fixed and enhanced t: Tag handling in pp_rate.
 - Fixed typo in interface description of tools/rate.c
 - Fixed typo in tools/isdnrate.man, found by Paul Slootman.
 - Minor update to sample isdn.conf files:
   - Default isdnrep format shows numbers with 16 chars (+ & 15 digits).
   - New isdnrep format (-FNIO) without display of transfered bytes.
   - EUR as currency in Austria, may clash with outdated rate-at.dat.
     The number left of the currency symbol is nowadays insignificant.
 - Changes checked in earlier but after step to isdnlog-4.66:
   - New option for isdnrate: `-rvNN' requires a vbn starting with NN.
   - Do not compute the zone with empty strings (areacodes) as input.
   - New ratefile tags r: und t: which need an enhanced pp_rate.
     For a tag description see rate-files(5).
   - Some new and a few updated international cellphone destinations.

NOTE: If there any questions, problems, or problems regarding isdnlog,
   feel free to join the isdn4linux mailinglist, see
   https://www.isdn4linux.de/mailman/listinfo/isdn4linux for details,
   or send a mail in English or German to <tobiasb@isdn4linux.de>.
2003-10-29 17:41:33 +00:00
tobiasb 5a5e249605 Fixed name for area code +49-2429, reported by Stefan Rupp. 2003-10-11 21:03:44 +00:00
tobiasb ff70e99e9a New ratefile tags r: und t: which need an enhanced pp_rate.
For a tag description see rate-files(5).
Some new and a few updated international cellphone destinations.
2003-09-22 19:46:00 +00:00
tobiasb 5700a46ab1 Do not compute the zone with empty strings as input.
Empty areacodes will occur if the national areacodes are not included in
the destination database.  Discovered by Markus Latzel, see article
<3f61378e.550970@n.avalon.psi.talypso.de> in de.comp.os.unix.linux.isdn.
2003-09-11 10:58:56 +00:00
tobiasb ceea8a9948 New option for isdnrate: `-rvNN' requires a vbn starting with NN.
Suggested by Thomas Richter on isdn4linux mailinglist, for reference see
http://listserv.isdn4linux.de/pipermail/isdn4linux/2003-September/000011.html
2003-09-04 19:45:07 +00:00
tobiasb e5c2a7128e Removed historic add-on for rate-de.dat. 2003-08-26 19:57:26 +00:00
tobiasb af7e5bfa2c isdnlog-4.66:
- Added support for AVM B1 (with layer 2 d-channel trace) in point-to-
   point mode, where only TEI 0 is used ("Anlagenanschluss" in German).
   Many thanks to Klaus Heske for his testing efforts.
 - The source number "0" in outgoing calls is now expanded to
   +<country><area>0.  This may be useful for point-to-point setups,
   when <area> contains area code and local number without extension.
 - Basic support for different codesets in (E)DSS1 messages.  Except
   for codeset 0, unknown information elements are now silently
   ignored (controlled by ignore_unknown_IE in isdnlog/isdnlog.h).
 - Added some information elements to isdnlog/messages.c.
 - Increased the length of msn (local number) in struct telnum.
 - Fixed seperation of country and area code for long numbers
   in getDest, tools/dest.c.
 - Changed broken (with gcc 2.95.2) generation of .depend.  The old
   output did not consider the location of objectfiles in subdirs.
   Remove this file before compiling this upgraded isdnlog.
 - Moved DUALFIX... defines from tools/tools.h to isdnlog/isdnlog.h.
 - Added missing R:-Links for cellphone entries in country-de.dat.
 - Different entry for each city "Neustadt" in tools/zone/de/code.
 - Earlier changes since isdnlog-4.65:
    - Allow dualmode workaround 0x100 (DUALFIX_DESTNUM) to work also with
      CALL_PROCEEDING messages for cleaning up unanswered incoming calls.
2003-08-26 19:46:11 +00:00
tobiasb 71af2ed919 Allow dualmode workaround 0x100 aka DUALFIX_DESTNUM to work also with
CALL_PROCEEDING messages for cleaning up unanswered incoming calls.
  (http://lists.suse.com/archive/suse-isdn/2003-Aug/0026.html in German)
Update for `Denmark cellphone' entry in destination database.
2003-08-14 12:18:57 +00:00
tobiasb aca421219c Rates4linux release 3.06 of rate-de.dat.
Release location: http://sourceforge.net/project/showfiles.php?group_id=869
2003-08-07 21:08:50 +00:00
tobiasb 75c7c1392e Added .cvsignore files to isdnlog directories. 2003-07-25 22:55:23 +00:00
tobiasb 408c0bb82c isdnlog-4.65:
- New values for isdnlog option -2x / dual=x with enable certain
   workarounds for correct logging in dualmode in case of prior
   errors.  See `man isdnlog' and isdnlog/processor.c for details.
 - New isdnlog option -U2 / ignoreCOLP=2 for displaying ignored
   COLP information.
 - Improved handling of incomplete D-channel frames.
 - Increased length of number aliases shown immediately by isdnlog.
   Now 127 instead of 32 chars are possible. (Patch by Jochen Erwied.)
 - The zone number for an outgoing call as defined in the rate-file
   is written to the logfile again and used by isdnrep
 - Improved zone summary of isdnrep.  Now the real zone numbers as
   defined in the rate-file are shown.  The zone number is taken
   from the logfile as mentioned before or computed from the current
   rate-file.  Missmatches are indicated with the chars ~,+ and *,
   isdnrep -v ... explains the meanings.
 - Fixed provider summary of isdnrep. Calls should no longer be
   treated wrongly as done via the default (preselected) provider.
 - Fixed the -pmx command line option of isdnrep, where x is the xth
   defined [MSN].
 - `make install' restarts isdnlog after installing the data files.
 - A new version number generates new binaries.
 - `make clean' removes isdnlog/isdnlog/ilp.o when called with ILP=1.
2003-07-25 22:18:02 +00:00
tobiasb ca6a8f5631 Updates for destination database source files. 2003-07-25 21:33:02 +00:00
tobiasb 74d853c0df Updates for destination database generation and related tools.
Makefile.in  With cdb as database format the dest.cdb is now rebuild
             automatically when the input files change (targets data
             and alldata).  New target dest.gdbm.

i4lconf.pm   Locates the countryfile country(-de).dat in order to
             handle different installation schemes for that file.

pp_rate      Use of i4lconf.pm if present.  New command `i' at
             interactive prompt for unknown destinations names.
             Comments at the end of A: lines are now preserved.

makedest     Use of i4lconf.pm if present.
             Fixed function of the -g command line switch.

wld.pm       Speed enhancements for weighted Levenshtein distance.

Note: i4lconf.pm, pp_rate and wld.pm originate unchanged from the
rates4linux CVS where there are needed to build rate-files like
rate-de.dat independent from the isdnlog sources.
2003-07-25 21:23:15 +00:00
tobiasb d7ec6a03fa Rates4linux release 3.04 of rate-de.dat dating from 2003-01-12.
Source location:
http://sourceforge.net/project/showfiles.php?group_id=869&release_id=133180
Next release 3.06 is scheduled for July/August 2003.
2003-07-22 21:24:10 +00:00
paul c53c6a9d1b Fixed synopsis comment;
setting of maxnum fixed when numlen > 5.
2003-03-11 13:09:08 +00:00
paul 79bb637608 Added manpage for mkzonedb 2003-03-11 13:08:00 +00:00
leo 265b060647 improved country detection (Tobias Becker) 2002-09-11 09:07:09 +00:00
akool b71e017059 isdnlog-4.64:
- new rates
  - new providers
  - new country-de.dat and dest.cdb (_Many_ thanks to
  	Tobias Becker <tobiasb@talypso.de> !)
2002-09-09 06:56:38 +00:00
akool 605ee377ee isdnlog-4.63
- new rates/provider ...
 - isdnrate now display EuroCent as the default
2002-08-15 17:22:42 +00:00
akool bb7be3a6e0 isdnlog-4.62
- new rates/provider (0190028, Tele2 Ortstarif)
 - display in EuroCent now the default
2002-08-10 16:32:03 +00:00
akool 2e3804d65d isdnlog-4.61:
- Support for mysql-4.0alpha -- many thanks to Jochen Erwied (jochen@erwied.de)!
2002-07-26 22:14:19 +00:00
akool a6a83894f8 isdnlog-2.60:
- new provider "01081" (1,5 EuroCent/minute)
	- good bye Euro ;-)
  	with the entry "U:^%.3f c" in "rate-de.dat" now isdnlog/isdnbill
    shows amounts in EuroCent (Value *= 100.0)
2002-07-25 18:16:05 +00:00
keil db60777e01 First changes to compile utils without /usr/src/linux/drivers/isdn 2002-07-19 19:03:49 +00:00
keil fe14dca76c - Fix some glibc header file problems
- Fix some autoconf file syntax, newer autoconf check it strict
2002-07-06 00:11:16 +00:00
paul 5144b53f54 Updated mostly KPN. 2002-07-04 10:40:18 +00:00
paul 9665f21065 "DEM" -> "EUR" 2002-07-04 10:29:18 +00:00
akool b8caceb040 isdnlog-4.59:
new charge rates as of 1-Jul-2002
2002-06-29 10:43:42 +00:00
akool 5d39bfca49 isdnlog-4.59:
- new rates
  - new provider 0190049:Germanphone
2002-06-26 18:07:02 +00:00
leo dc9e94d56d added X:-tag 2002-06-25 08:01:43 +00:00
leo 1d16c85329 EUR version 2002-06-24 15:47:25 +00:00
akool 34ef0b1270 isdnlog-4.59: New TK-Providers added 2002-06-07 15:39:23 +00:00
akool b42732fd41 isdnlog-4.58:
- another patch from Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
    - wrong sized malloc() in
    	- isdnlog/tools/cdb/i4l_cdb.c

    And again *many* thanks to Enrico!!

  - New rates as of April, 24. 2002
2002-04-23 17:31:35 +00:00
akool 167a7238f4 isdnlog-4.58:
- Patches from Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
    - uninitialized variables in
    	- isdn4k-utils/isdnlog/connect/connect.c
      - isdn4k-utils/isdnlog/tools/rate.c
    - return() of a auto-variable in
      - isdn4k-utils/isdnlog/isdnlog/user_access.c

    *Many* thanks to Enrico!!

  - New rates as of April, 23. 2002 (EUR 0,014 / minute long distance call ;-)
2002-04-22 19:07:49 +00:00
leo 45168801ab make 2.4.x pager compatible 2002-04-11 11:18:57 +00:00
leo 91904c11da fixed module unload 2002-04-08 14:34:13 +00:00
leo e013d2892d adapted for 2.4.x - 2. 2002-04-05 15:43:50 +00:00
leo c9af9720c2 adapted for 2.4.x 2002-04-05 13:20:15 +00:00
paul 32490d389c DM -> EUR; and only test for IIOCNETGPN on i386 systems 2002-03-11 16:18:43 +00:00