Commit Graph

1728 Commits

Author SHA1 Message Date
calle 3b059a10f8 - add receive buffer managment according to CAPI2.0 spec.
- send buffer is now on stack.
- new library version 2.0.7
2004-03-31 18:12:40 +00:00
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
keil 7712c4d286 support ppp 2.4.2 version 2004-02-14 15:02:46 +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
keil 63fe75f898 fix a strict-aliasing warning 2004-02-12 11:27:39 +00:00
keil ccf03f173b with newer gcc its a problem to get addresses of arguments because
strict-aliasing rules.
2004-02-12 11:26:44 +00:00
keil e16ed676e3 - newer gcc need -fno-strict-aliasing 2004-02-12 11:24:37 +00:00
keil c3d721bd72 - newer libpcap versions have pcap-bpf.h include, not net/bpf.h 2004-02-12 10:50:20 +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
calle 2e4644ae32 Always use capifs, don't trust devfs. 2004-01-19 09:15:57 +00:00
calle 06690d8cad remove several warnings. 2004-01-16 15:27:11 +00:00
calle 7e19929256 gcc warning removed. 2004-01-16 14:57:22 +00:00
calle d5c6a3220d Modifications to let ist run with patched 2.6 kernel.
Pure 2.6.0/2.6.1 is not working.
2004-01-16 12:33:16 +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
hessler 2dedf3d9fa Version 2.0.83
* Updated url to ttp://www.wurtel.cistron.nl/i4l-howto-uk.html
* Added url to ttp://www.wurtel.cistron.nl/i4l-howto-nl.html
2003-12-03 23:28:34 +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
hessler 3540c103c8 Version 2.0.82
* Added hint to rerun autoconf/automake on 'AM_PROG_LIBTOOL not found in lib'
* Added isdnlog restrictions
2003-11-22 15:50:43 +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
hessler dfa2f9cbf2 Version 2.0.81
* Added link to LR101 project (Linux Hardware Router)
2003-10-25 23:45:13 +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
hessler 679d77c3d7 Version 2.0.80
* Updated links in FAQ to www.isdn4linux.de (shtml instead of php3)
2003-08-31 14:31:13 +00:00
hessler b5d11c6108 Version 2.0.79
* Increased version number for Fritz's update about the mailing list changes.
2003-08-27 20:42:30 +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
felfert f22c75d112 Adapted mailing list related FAQ to new mailman interface. 2003-08-26 12:16:22 +00:00
fritz b5832536c1 test 2003-08-21 12:49:33 +00:00
fritz 1ee4d8c3d9 test 2003-08-21 12:48:20 +00:00
keil 4b2943216d fix some typos 2003-08-16 16:56:02 +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
keil 0557a5fa4d fix wrong b3support bits 2003-08-02 14:50:21 +00:00
keil 5a8184cc5a version 3.3 2003-07-28 19:50:13 +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 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
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
hessler e489f8948b Version2.0.78
* Added hint on how to set up MPPP with multiple numbers (via script)
* Explained why freeing B-channel on incoming phone call is difficult
2003-07-14 19:42:49 +00:00
keil e5358e261f add missing file 2003-07-01 09:05:38 +00:00