~ubuntu-branches/ubuntu/jaunty/isdnutils/jaunty-proposed

« back to all changes in this revision

Viewing changes to isdnlog/tools/tools.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2004-09-04 08:20:20 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040904082020-g641px056lshw203
Tags: 1:3.3.0.20040728-2
* Put libcapi20 development files into new libcapi20-dev package,
  change libcapi20 soname to libcapi20-3, conflict with existing
  versions of packages depending on libcapi20-3 (closes: #268767).
* Update debconf translation strings (closes: #268716).
* Update french debconf translation (closes: #269666).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: tools.c,v 1.51 2001/12/30 17:17:41 akool Exp $
 
1
/* $Id: tools.c,v 1.52 2003/07/25 22:18:03 tobiasb Exp $
2
2
 *
3
3
 * ISDN accounting for isdn4linux. (Utilities)
4
4
 *
19
19
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
20
 *
21
21
 * $Log: tools.c,v $
 
22
 * Revision 1.52  2003/07/25 22:18:03  tobiasb
 
23
 * isdnlog-4.65:
 
24
 *  - New values for isdnlog option -2x / dual=x with enable certain
 
25
 *    workarounds for correct logging in dualmode in case of prior
 
26
 *    errors.  See `man isdnlog' and isdnlog/processor.c for details.
 
27
 *  - New isdnlog option -U2 / ignoreCOLP=2 for displaying ignored
 
28
 *    COLP information.
 
29
 *  - Improved handling of incomplete D-channel frames.
 
30
 *  - Increased length of number aliases shown immediately by isdnlog.
 
31
 *    Now 127 instead of 32 chars are possible. (Patch by Jochen Erwied.)
 
32
 *  - The zone number for an outgoing call as defined in the rate-file
 
33
 *    is written to the logfile again and used by isdnrep
 
34
 *  - Improved zone summary of isdnrep.  Now the real zone numbers as
 
35
 *    defined in the rate-file are shown.  The zone number is taken
 
36
 *    from the logfile as mentioned before or computed from the current
 
37
 *    rate-file.  Missmatches are indicated with the chars ~,+ and *,
 
38
 *    isdnrep -v ... explains the meanings.
 
39
 *  - Fixed provider summary of isdnrep. Calls should no longer be
 
40
 *    treated wrongly as done via the default (preselected) provider.
 
41
 *  - Fixed the -pmx command line option of isdnrep, where x is the xth
 
42
 *    defined [MSN].
 
43
 *  - `make install' restarts isdnlog after installing the data files.
 
44
 *  - A new version number generates new binaries.
 
45
 *  - `make clean' removes isdnlog/isdnlog/ilp.o when called with ILP=1.
 
46
 *
22
47
 * Revision 1.51  2001/12/30 17:17:41  akool
23
48
 * isdnlog-4.55:
24
49
 *   Tatahhh: isdnlog speaks Euro :-)
851
876
    } /* else */
852
877
  } /* if */
853
878
 
854
 
  strcpy(call[chan].alias[who], num2nam(call[chan].num[who], call[chan].si1));
 
879
  strncpy(call[chan].alias[who], num2nam(call[chan].num[who], call[chan].si1), RETSIZE);
 
880
  call[chan].alias[who][sizeof(call[chan].alias[who])-1] = '\0';
855
881
 
856
882
  if (cnf > UNKNOWN) {                    /* Alias gefunden! */
857
883
    call[chan].confentry[who] = cnf;