DM -> EUR

This commit is contained in:
Paul Slootman 2002-03-11 16:17:11 +00:00
parent 9ea6f33a81
commit 8c9ea2bdaa
6 changed files with 43 additions and 6 deletions

View File

@ -20,6 +20,13 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log$
* Revision 1.2 2000/04/02 17:35:07 akool
* isdnlog-4.18
* - isdnlog/isdnlog/isdnlog.8.in ... documented hup3
* - isdnlog/tools/dest.c ... _DEMD1 not recogniced as key
* - mySQL Server version 3.22.27 support
* - new rates
*
* Revision 1.1 1998/04/06 15:45:19 keil
* Added missing files
*
@ -81,7 +88,7 @@ struct _DbStrIn
int si1; /* Dienstkennung fuer diese Verbindung (1=Speech, 7=Data usw.) */
int si11; /* Bei Dienstkennung 1=Speech -> analog oder digital ? */
double currency_factor; /* Der Currency Factor fuer diese Verbinung (hier z.Zt. 0,12) */
char currency[32]; /* (16) Die Waehrung fuer diese Verbindung (in Deutschland "DM") */
char currency[32]; /* (16) Die Waehrung fuer diese Verbindung (in Europa "EUR") */
double pay; /* Der Endbetrag i.d. jeweiligen Landeswaehrung fuer diese Verbindung */
char provider[NUMSIZE]; /* Der Provider der Verbindung */
};

View File

@ -11,6 +11,10 @@
* ora_load.c 1999/01/07 Jan Bolt
*
* $Log$
* Revision 1.1 1999/12/31 13:30:02 akool
* isdnlog-4.00 (Millenium-Edition)
* - Oracle support added by Jan Bolt (Jan.Bolt@t-online.de)
*
*/
#include <stdio.h>
@ -124,7 +128,7 @@ int isdngeb(FILE *fp)
case 15: /* Currency Factor (0.121) */
call.currency_factor = atof(p);
break;
case 16: /* Waehrung (DM) */
case 16: /* Waehrung (EUR) */
strncpy(call.currency, trim(p), sizeof(call.currency));
call.currency[sizeof(call.currency)-1] = '\0';
break;

View File

@ -11,6 +11,10 @@
* oracle.h 1999/01/07 Jan Bolt
*
* $Log$
* Revision 1.1 1999/12/31 13:30:02 akool
* isdnlog-4.00 (Millenium-Edition)
* - Oracle support added by Jan Bolt (Jan.Bolt@t-online.de)
*
*/
#ifndef __ORACLE_H
@ -34,7 +38,7 @@ typedef struct
int si1; /* Dienstkennung (1=Speech, 7=Data usw.) */
int si11; /* analog oder digital ? */
double currency_factor; /* Currency Factor (0,121) */
char currency[4]; /* Waehrung (in Deutschland "DM") */
char currency[4]; /* Waehrung (in Europa "EUR") */
double pay; /* Endbetrag in Landeswaehrung */
int provider; /* Providercode */
char provider_name[31]; /* Provider */

View File

@ -19,6 +19,9 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log$
* Revision 1.2 1997/03/31 20:50:56 akool
* fixed the postgres95 part of isdnlog
*
* Revision 1.1 1997/03/16 20:58:46 luethje
* Added the source code isdnlog. isdnlog is not working yet.
* A workaround for that problem:
@ -87,7 +90,7 @@ struct _DbStrIn
int si1; /* Dienstkennung fuer diese Verbindung (1=Speech, 7=Data usw.) */
int si11; /* Bei Dienstkennung 1=Speech -> analog oder digital ? */
double currency_factor; /* Der Currency Factor fuer diese Verbinung (hier z.Zt. 0,12) */
char currency[32]; /* (16) Die Waehrung fuer diese Verbindung (in Deutschland "DM") */
char currency[32]; /* (16) Die Waehrung fuer diese Verbindung (in Europa "EUR") */
double pay; /* Der Endbetrag i.d. jeweiligen Landeswaehrung fuer diese Verbindung */
};

View File

@ -20,6 +20,11 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log$
* Revision 1.6 1999/10/25 18:33:15 akool
* isdnlog-3.57
* WARNING: Experimental version!
* Please use isdnlog-3.56 for production systems!
*
* Revision 1.5 1999/03/20 14:33:15 akool
* - isdnlog Version 3.08
* - more tesion)) Tarife from Michael Graw <Michael.Graw@bartlmae.de>
@ -460,7 +465,7 @@ char *Build_Call_Info(CALL *call, int chan)
(int)(call->connect?cur_time - call->connect:0), /* aktuelle Dauer - in Sekunden seit CONNECT */
call->aoce, /* Einheiten (negativ: laufende Impulse, positiv: AOCE) */
double2str(abs(call->aoce) * currency_factor, 6, 2, DEB), /* kostet gerade */
currency_factor ? currency : "DM", /* Waehrung */
currency_factor ? currency : "EUR", /* Waehrung */
call->ibytes, /* Frank's ibytes */
call->obytes, /* Frank's obytes */
call->ibps, /* Aktueller Durchsatz INPUT: Bytes/Sekunde */

View File

@ -20,6 +20,20 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log$
* Revision 1.14 2000/08/17 21:34:44 akool
* 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"?)
*
* Revision 1.13 2000/03/06 07:03:20 akool
* isdnlog-4.15
* - isdnlog/tools/tools.h ... moved one_call, sum_calls to isdnrep.h
@ -355,7 +369,7 @@ int main(int argc, char *argv[], char *envp[])
}
if (!currency_factor)
currency = "DM";
currency = "EUR";
if (fnbuff[0])
logfile = fnbuff;