Commit Graph

278 Commits

Author SHA1 Message Date
tobiasb 658e05fadb 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:05 +00:00
tobiasb 5117e910f0 Three corrections in Western Pomerania by Klaus Lange from Ueckermünde.
Distinguished Feldberg Mecklenburg and Feldberg Black Forest.
2004-08-11 22:07:50 +00:00
tobiasb 3666819646 New entry `REPOPTIONS' in section [ISDNLOG] of the isdn configuration
file.  This will be used for commandline options defaults of isdnrep.
2004-07-24 16:16:56 +00:00
tobiasb ae9b0e8e5a Patch to isdnlog manpages by Matthias Klose <doko@cs.tu-berlin.de>,
a maintainer of Debian's isdnutils source package:
- add manpage for isdnbill *)
- fix typo in isdnrate.man
- isdnbill.c: add english help texts
--
*) Renamed the sourcefile isdnrep/isdnbill.man to isdnrep/isdnbill.1.in
because only @MANDATE@ is replaced in %.man files. Other @VARS@ have to
be processed by config.status and therefore noted in configure.in and
configure. The isdnrep manpage was used as template for those entries.
2004-07-13 21:44:18 +00:00
tobiasb 003ea565c3 Fixed outdated source code comment. 2004-02-06 16:58:01 +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 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 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 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 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 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
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 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 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 9665f21065 "DEM" -> "EUR" 2002-07-04 10:29:18 +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 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
paul fe575d2e07 updated GSM areacodes, added special internet areacode 2002-03-11 15:36:11 +00:00
paul 779b348a81 Don't be verbose if stdout is not a tty. 2002-01-31 20:01:49 +00:00
paul a2e43c99b0 Changed order of "$(LDFLAGS) -o $@ $(CDBEXTRALIBS)" to
"$(CDBEXTRALIBS) $(LDFLAGS) -o $@" so that CDBEXTRALIBS
actually does something.
2002-01-31 20:01:12 +00:00
paul 203db9f2e5 #include <stdlib.h> and <string.h> for prototypes to prevent warnings. 2002-01-31 20:00:08 +00:00
paul fdb0afeedc #include <stdlib.h> for prototypes to prevent warnings. 2002-01-31 19:59:44 +00:00
keil 998cbe4196 Seems somebody in Nuertingen use isdnlog :-) Thanks to Andreas Lauser 2002-01-30 00:12:04 +00:00
akool 02e98d8b1a isdnlog-4.56:
- dont set the Provider-field of the MySQL DB to "?*? ???" on incoming calls

 - implemented
     0190029 Telebillig        (17,5 Cent/minute to any cellphone)
		 0190031 Teledump
		 0190035 TeleDiscount
		 0190037 Fonfux            (1,5 Cent/minute german-call)
		 0190087 Phonecraft

   you have to change:

   1. "/etc/isdn/rate.conf" - add the following:

     P:229=0		#E Telebillig
		 P:231=0		#E Teledump
		 P:235=0		#E TeleDiscount
		 P:237=0		#E Fonfux
		 P:287=0		#E Phonecraft

   2. "/etc/isdn/isdn.conf" (or "/etc/isdn/callerid.conf"):

	     VBN = 010

	   to

	     VBN = 010:01900
2002-01-26 20:43:30 +00:00
akool ab9b655516 isdnlog-4.55:
Tatahhh: isdnlog speaks Euro :-)

	Many thanks to Bernhard Schmidt (berni@birkenwald.de)!

	** At least, you have to install "/usr/lib/isdn/rate-de.dat"
  ** and modify your "/etc/isdn/isdn.conf" or "/etc/isdn/callerid.conf"
  ** to read:
  **   [ISDNLOG]
	**	   CURRENCY = 0.062,EUR

I wish all of you a happy new year!
2001-12-30 17:17:40 +00:00
akool 0d098a2ec9 isdnlog-4.54
added new prefix 01505 Quam (new german cellphone company)
2001-11-22 15:09:01 +00:00
leo a3e74183e1 fixed redzone statistics 2001-10-16 13:29:44 +00:00
leo aded4afa26 fixed cdb zonefiles 2001-10-15 11:35:46 +00:00
paul b7817b0489 zone.c and mkzonedb.c now understand filename "-" to mean stdin. 2001-06-12 14:24:17 +00:00
paul e80c35358d zone files are now created byte-order independent, so:
- creating the zone files works on sparc
- CDB files created on e.g. intel can be used without problem om sparc
Our copy of CDB has also been modified for this.
2001-06-12 13:54:47 +00:00
paul 339049046c zone files are now created byte-order independent, so:
- creating the zone files works on sparc
- CDB files created on e.g. intel can be used without problem om sparc
Our copy of CDB has also been modified for this.
2001-06-12 13:48:17 +00:00
paul 10f699ef70 Various patches to fix errors when using the newest glibc,
replaced use of insecure tempnam() function
and to remove warnings etc.
2001-03-01 14:59:11 +00:00
akool 9d4d8b6fbe isdnlog-4.49
- added more Euracom decodings

 - added new prefixes
     0151 - Germany cellphone D1
     0152 - Germany cellphone D2
     0163 - Germany cellphone Eplus
   to "country-de.dat"

 - removed Freecall "0130" and "Germany cellphone C"
2001-01-14 12:13:49 +00:00
leo a1bc72a63a Fixed isdnrate -X50 2000-12-07 16:26:12 +00:00
leo 1f85108daa Updated Version 2000-12-07 16:24:38 +00:00