Commit Graph

103 Commits

Author SHA1 Message Date
Karsten Keil d4bea41090 - HZ is not used anymore, this value is defined as duration in
1/100 seconds independ from system HZ value
2006-07-03 15:51:27 +00:00
Tobias Becker 375b3b96e1 New option -U: default source number for outgoing calls. 2004-12-16 21:30:50 +00:00
Tobias Becker fd406e65da New isdnrep option -m [*|/]number. It multiplies or divide the cost of
each call by the given number.  `-m/1.16' for example displays the costs
without the German `Umsatzsteuer'.
2004-07-25 14:21:13 +00:00
Tobias Becker e2ed7d9d08 New isdnrep options: `-L:' controls the displayed call summaries in the
report footer.  `-x' displays only call selected or not deselected by
hour or type of day -- may be useful in conjunction with `-r'.

Activated new configuration file entry `REPOPTIONS' for isdnrep default
options.  This options can be disabled by `-c' on the command line.
2004-07-24 17:58:06 +00:00
Paul Slootman 3a6e607452 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
Tobias Becker 244bbe41c7 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
Tobias Becker e16a11e5e7 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:36 +00:00
Tobias Becker 764c78a225 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:04 +00:00
Paul Slootman 21d5893045 Previous patch for correctly deleting entries messed up the printing
of a specific date (or range), now hopefully fixed. Please test!
Also replaced usage of tmpnam() with more secure mkstemp().
Reindented some lines, tabstop of 2 is really strange.
2001-03-21 10:24:01 +00:00
Paul Slootman 3f6d683cc5 Fix bug where deleting up to 31/12/99 caused ALL entries to be deleted;
now the entries being deleted are output (as usual with isdnrep), and
the rest are preserved in the log.
Also cleaned up error messages to be a bit more consistent.
2001-02-08 14:04:53 +00:00
Andreas Kool 222b286f4b isdnlog-4.40
- README: explain possibility to open the "outfile=" in Append-Mode with "+"
 - Fixed 2 typos in isdnlog/tools/zone/de - many thanks to
     Tobias Becker <tobias@talypso.de>
 - detect interface (via IIOCNETGPN) _before_ setting CHARGEINT/HUPTIMEOUT
 - isdnlog/isdnlog/processor.c ... fixed wrong init of IIOCNETGPNavailable
 - isdnlog/isdnrep/isdnrep.c ... new option -S summary
 - isdnlog/isdnrep/rep_main.c
 - isdnlog/isdnrep/isdnrep.1.in
 - isdnlog/tools/NEWS
 - isdnlog/tools/cdb/debian ... (NEW dir) copyright and such from orig
 - new "rate-de.dat" from sourceforge (hi and welcome: Who is "roro"?)
2000-08-17 21:34:45 +00:00
Karsten Keil 51738dd4df parameter in (...) are allways converted into int
newer gcc give an error using char here
2000-06-22 16:08:24 +00:00
Andreas Kool 4061142783 isdnlog-4.25
- isdnlog/isdnrep/isdnrep.c ... bugfix for wrong providers and duration
                                 by Hans Klein on d.a.c.i

 - isdnlog/tools/rate-at.c ... 1046 Neu, 1002 ab 1.6., 1024
 - isdnlog/rate-at.dat ... 1046 Neu, 1002 ab 1.6., 1024
 - new rates 01078:3U and 01024:Super_24
2000-05-27 14:55:30 +00:00
Andreas Kool b6a0f637b2 isdnlog-4.15
- isdnlog/tools/tools.h ... moved one_call, sum_calls to isdnrep.h
    ==> DO A 'make clean' PLEASE
  - isdnlog/tools/telnum.c ... fixed a small typo
  - isdnlog/isdnrep/rep_main.c ... incl. dest.h
  - isdnlog/isdnrep/isdnrep.c ... fixed %l, %L
  - isdnlog/isdnrep/isdnrep.h ... struct one_call, sum_calls are now here

  Support for Norway added. Many thanks to Tore Ferner <torfer@pvv.org>
    - isdnlog/rate-no.dat  ... NEW
    - isdnlog/holiday-no.dat  ... NEW
    - isdnlog/samples/isdn.conf.no ... NEW
    - isdnlog/samples/rate.conf.no ... NEW
2000-03-06 07:03:21 +00:00
Andreas Kool 2dbebbe330 isdnlog-4.14
- Patch from Roland Rosenfeld <roland@spinnaker.de> fix for isdnrep
  - isdnlog/tools/rate.c ... epnum
  - isdnlog/tools/rate-at.c ... new rates
  - isdnlog/rate-at.dat
  - isdnlog/tools/rate-files.man ... %.3f
  - doc/Configure.help ... unknown cc
  - isdnlog/configure.in ... unknown cc
  - isdnlog/.Config.in ... unknown cc
  - isdnlog/Makefile.in ... unknown cc
  - isdnlog/tools/dest/Makefile.in ... LANG => DEST_LANG
  - isdnlog/samples/rate.conf.pl ... NEW
  - isdnlog/samples/isdn.conf.pl ... NEW
  - isdnlog/rate-pl.dat ... NEW
  - isdnlog/tools/isdnrate.c ... fixed -P pid_dir, restarts on HUP now
  - isdnlog/tools/isdnrate.man ... SIGHUP documented
2000-02-28 19:53:57 +00:00
Andreas Kool 1991d3991f isdnlog-4.09
- NEW: 01078:3U and 010050:Drillisch foreign countries
  - isdnlog/isdnrep/isdnrep.c ... moved hist, provider ok again
  - isdnlog/isdnrep/CHANGES.isdnrep ... NEW (old changes)
  - isdnlog/isdnlog/isdnlog.8.in ... addded signals
  - isdnlog/README ... upd. core (SIGSEGV), files
2000-02-07 20:32:41 +00:00
Andreas Kool b8d6e3d4e2 isdnlog-4.03
- Patch from Gerrit Pape <pape@innominate.de>
   fixes html-output if "-t" option of isdnrep is omitted
 - Patch from Roland Rosenfeld <roland@spinnaker.de>
   fixes "%p" in ILABEL and OLABEL
2000-01-16 12:36:59 +00:00
Andreas Kool a0f88d3ed0 isdnlog-4.00 (Millenium-Edition)
- Oracle support added by Jan Bolt (Jan.Bolt@t-online.de)
 - resolved *any* warnings against rate-de.dat
 - Many new rates
 - CREDITS file added
1999-12-31 13:57:20 +00:00
Andreas Kool e041b0edea isdnlog-3.79
- isdnlog/isdnrep/isdnrep.{c,h} ... error -handling, print_msg
 - isdnlog/isdnrep/rep_main.c
 - isdnlog/isdnrep/isdnrep.1.in
 - isdnlog/tools/rate.c  ... dupl entry in rate.conf
 - isdnlog/tools/NEWS
 - isdnlog/tools/isdnrate.c
 - isdnlog/tools/dest/configure{,.in}
 - isdnlog/tools/zone/configure{,.in}
1999-12-17 22:51:56 +00:00
Andreas Kool 81715b1d77 isdnlog-3.71 1999-11-28 19:32:42 +00:00
Andreas Kool 98e2e4d45d isdnlog-3.69 1999-11-27 19:24:20 +00:00
Andreas Kool 8ec236976e isdnlog-3.65
- added "B:" Tag to "rate-xx.dat"
1999-11-08 21:09:42 +00:00
Andreas Kool 510be324fc isdnlog-3.64
- new "Sonderrufnummern" handling
1999-11-07 13:29:30 +00:00
Andreas Kool 554a3bbbfb isdnlog-3.57
WARNING: Experimental version!
  	   Please use isdnlog-3.56 for production systems!
1999-10-25 18:37:52 +00:00
Andreas Kool 38b543e560 isdnlog-3.51
- changed getProvider() to not return NULL on unknown providers
    many thanks to Matthias Eder <mateder@netway.at>
  - corrected zone-processing when doing a internal -> world call
1999-09-13 09:09:44 +00:00
Andreas Kool 9a71f9421b isdnlog-3.50
added 3. parameter to "-h" Option: Controls CHARGEHUP for providers like
  DTAG (T-Online) or AOL.
  Many thanks to Martin Lesser <m-lesser@lesser-com.de>
1999-09-11 22:28:26 +00:00
Andreas Kool ab7ee19634 isdnlog-3.49 1999-09-09 11:21:10 +00:00
Andreas Kool a29f817aab isdnlog-3.48
cosmetics
1999-08-29 10:29:15 +00:00
Andreas Kool 66319c39b1 small fixes 1999-08-21 13:00:10 +00:00
Andreas Kool b88fae902a isdnlog-3.45
- removed about 1 Mb of (now unused) data files
 - replaced areacodes and "vorwahl.dat" support by zone databases
 - fixed "Sonderrufnummern"
 - rate-de.dat :: V:1.10-Germany [20-Aug-1999 21:23:27]
1999-08-20 19:29:12 +00:00
Andreas Kool f3c68a63bf isdnlog-3.42
rate-de.dat 1.02-Germany [18-Jul-1999 10:44:21]
  better Support for Ackermann Euracom
  WEB-Interface for isdnrate
  many small fixes
1999-07-24 08:45:26 +00:00
Carsten Paeth 768c4f414a Bugfix: getProvider sometimes returns NULL and isdnrep crashed ... 1999-07-23 09:09:38 +00:00
Andreas Kool 7ab336774e fix from Michael 1999-07-18 08:41:19 +00:00
Carsten Paeth 3fb321f79e Bugfix: isdnrep defined print_msg as function pointer, the object files
in tools directory, declare it as external function.
	compiler and linker did not detect the problem.
	Now print_msg is a function in rep_main.c and I copied
	print_in_modules from isdnconf. Also set_print_fct_for_isdnrep
	is removed from isdnrep.c. isdnrep didn�t crash now, but throw
	out warning messages about rate.dat and did�t generate output.
1999-07-12 11:37:38 +00:00
Andreas Kool bb4345ea37 isdnlog Version 3.34
fixed some memory faults
1999-06-16 19:13:03 +00:00
Andreas Kool 4ab0fd8f1b isdnlog Version 3.33
- big step in using the new zone files
  - *This*is*not*a*production*ready*isdnlog*!!
  - Maybe the last release before the I4L meeting in Nuernberg
1999-06-15 20:08:20 +00:00
Andreas Kool cdc741495e isdnlog Version 3.31
- Release 0.91 of zone-Database (aka "Verzonungstabelle")
 - "rate-de.dat" V:1.02-Germany [09-Jun-1999 21:45:26]
1999-06-09 19:59:23 +00:00
Andreas Kool 9bea755f99 isdnlog Version 3.30
- rate-de.dat V:1.02-Germany [03-Jun-1999 19:49:22]
 - small fixes
1999-06-03 18:51:25 +00:00
Andreas Kool b24b18d7b1 isdnlog Version 3.29
- processing of "sonderrufnummern" much more faster
 - detection for sonderrufnummern of other provider's implemented
   (like 01929:FreeNet)
 - Patch from Oliver Lauer <Oliver.Lauer@coburg.baynet.de>
 - Patch from Markus Schoepflin <schoepflin@ginit.de>
 - easter computing corrected
 - rate-de.dat 1.02-Germany [22-May-1999 11:37:33] (from rate-CVS)
 - countries-de.dat 1.02-Germany [22-May-1999 11:37:47] (from rate-CVS)
 - new option "-B" added (see README)
   (using "isdnlog -B16 ..." isdnlog now works in the Netherlands!)
1999-05-22 10:19:36 +00:00
Andreas Kool 2c3767fe07 isdnlog Version 3.24
- fully removed "sondernummern.c"
 - removed "gcc -Wall" warnings in ASN.1 Parser
 - many new entries for "rate-de.dat"
 - better "isdnconf" utility
1999-05-04 19:33:50 +00:00
Andreas Kool 7d9008e677 isdnlog Version 3.16
- more syntax checks for "rate-xx.dat"
- isdnrep fixed
1999-04-16 14:40:07 +00:00
Andreas Kool b45a4110b3 isdnlog Version 3.14
- "make install" now install's "rate-xx.dat", "rate.conf" and "ausland.dat"
- "holiday-xx.dat" Version 1.1
- many rate fixes (Thanks again to Michael Reinelt <reinelt@eunet.at>)
1999-04-14 13:17:30 +00:00
Andreas Kool 8a59985bef isdnlog Version 3.13
WARNING: This is pre-ALPHA-dont-ever-use-Code!
	 "tarif.dat" (aka "rate-xx.dat"): the next generation!

You have to do the following to test this version:
  cp /usr/src/isdn4k-utils/isdnlog/holiday-de.dat /etc/isdn
  cp /usr/src/isdn4k-utils/isdnlog/rate-de.dat /usr/lib/isdn
  cp /usr/src/isdn4k-utils/isdnlog/samples/rate.conf.de /etc/isdn/rate.conf

After that, add the following entries to your "/etc/isdn/isdn.conf" or
"/etc/isdn/callerid.conf" file:

[ISDNLOG]
SPECIALNUMBERS = /usr/lib/isdn/sonderrufnummern.dat
HOLIDAYS       = /usr/lib/isdn/holiday-de.dat
RATEFILE       = /usr/lib/isdn/rate-de.dat
RATECONF       = /etc/isdn/rate.conf

Please replace any "de" with your country code ("at", "ch", "nl")

Good luck (Andreas Kool and Michael Reinelt)
1999-04-10 16:36:56 +00:00
Andreas Kool 0e14f17796 - isdnlog Version 3.10
- moved "sondernnummern.c" from isdnlog/ to tools/
- "holiday.c" and "rate.c" integrated
- NetCologne rates from Oliver Flimm <flimm@ph-cip.uni-koeln.de>
- corrected UUnet and T-Online rates
1999-03-24 19:39:06 +00:00
Andreas Kool 59927aefa9 - isdnlog Version 3.08
- more tesion)) Tarife from Michael Graw <Michael.Graw@bartlmae.de>
- use "bunzip -f" from Franz Elsner <Elsner@zrz.TU-Berlin.DE>
- show another "cheapest" hint if provider is overloaded ("OVERLOAD")
- "make install" now makes the required entry
    [GLOBAL]
    AREADIFF = /usr/lib/isdn/vorwahl.dat
- README: Syntax description of the new "rate-at.dat"
- better integration of "sondernummern.c" from mario.joussen@post.rwth-aachen.de
- server.c: buffer overrun fix from Michael.Weber@Post.RWTH-Aachen.DE (Michael Weber)
1999-03-20 14:34:17 +00:00
Andreas Kool 2a236194d7 - isdnlog Version 3.06
- README: explain some terms about LCR, corrected "-c" Option of "isdnconf"
- isdnconf: added a small LCR-feature - simply try "isdnconf -c 069"
- isdnlog: dont change CHARGEINT, if rate is't known!
- sonderrufnummern 1.02 [15-Mar-99] :: added WorldCom
- tarif.dat 1.09 [15-Mar-99] :: added WorldCom
- isdnlog now correctly handles the new "Ortstarif-Zugang" of UUnet
1999-03-15 21:28:54 +00:00
Andreas Kool e6fcc689cb - isdnlog Version 3.05
- new Option "-u1" (or "ignoreRR=1")
- added version information to "sonderrufnummern.dat"
- added debug messages if sonderrufnummern.dat or tarif.dat could not be opened
- sonderrufnummern.dat V 1.01 - new 01805 rates
1999-03-14 14:27:37 +00:00
Andreas Kool 22bd7a006e - new 01805 tarif of DTAG
- new March 1999 tarife
- added new provider "01051 Telecom"
- fixed a buffer overrun from Michael Weber <Michael.Weber@Post.RWTH-Aachen.DE>
- fixed a bug using "sondernnummern.c"
- fixed chargeint change over the time
- "make install" now install's "sonderrufnummern.dat", "tarif.dat",
  "vorwahl.dat" and "tarif.conf"! Many thanks to
  Mario Joussen <mario.joussen@post.rwth-aachen.de>
- Euracom Frames would now be ignored
- fixed warnings in "sondernnummern.c"
- "10plus" messages no longer send to syslog
1999-03-07 18:20:11 +00:00
Andreas Kool 7975332a29 Fixed a typo in isdnconf.c from Andreas Jaeger <aj@arthur.rhein-neckar.de>
CHARGEMAX fix from Oliver Lauer <Oliver.Lauer@coburg.baynet.de>
isdnrep fix from reinhard.karcher@dpk.berlin.fido.de (Reinhard Karcher)
"takt_at.c" fixes from Ulrich Leodolter <u.leodolter@xpoint.at>
sondernummern.c from Mario Joussen <mario.joussen@post.rwth-aachen.de>
Reenable usage of the ZONE entry from Schlottmann-Goedde@t-online.de
Fixed a typo in callerid.conf.5
1999-02-28 19:33:55 +00:00
Andreas Kool 5dffe2c95f - second version of the new chargeint database
- isdnrep reanimated
1999-01-24 19:02:51 +00:00