replace "0" by "+49"

This commit is contained in:
akool 1999-07-12 18:49:42 +00:00
parent f4f3fd3533
commit 89ec6b7eea
3 changed files with 20 additions and 9 deletions

View File

@ -1,4 +1,4 @@
V:1.02-Germany [10-Jul-1999 23:32:36]
V:1.02-Germany [12-Jul-1999 20:54:06]
N:Usbekistan
@ -762,13 +762,15 @@ C:+358
N:Finnland Mobilfunk
C:+358 /* fixme */
# fixme: Zypern muß aufgesplittet werden!
N:Zypern
A:Cyprus
A:Zypern (Türkisch),Zypern (Griechisch),Zypern (griech.)
A:Zypern (Nordzypern)
A:Zypern (Griechisch),Zypern (griech.)
C:+357
N:Zypern (Türkisch)
A:Zypern (Nord), Zypern (Nordzypern)
C:+90392
N:Malta
C:+356

View File

@ -1,4 +1,4 @@
V:1.02-Germany [10-Jul-1999 23:32:27]
V:1.02-Germany [12-Jul-1999 20:53:57]
# Währungsformat
U:%.3f DM
@ -8,7 +8,7 @@ U:%.3f DM
#
# (C) Copyright 1999 by Andreas Kool (akool@isdn4linux.de)
#
# $Id: rate-de.dat,v 1.30 1999/07/10 21:37:42 akool Exp $
# $Id: rate-de.dat,v 1.31 1999/07/12 18:49:47 akool Exp $
#
# Zonenzuordnung für Deutschland
#
@ -11519,7 +11519,6 @@ C:Hotline: 01802/2002
C:Faxabruf: 01802/2001
P:50,1 Talkline CbC
D:dtag
F:E
Z:2-4 Fern
A:+49
T:W/07-19=0.15/60
@ -11652,7 +11651,6 @@ A:Monaco Mobilfunk
A:Neuseeland Mobilfunk
A:Niederlande Mobilfunk
A:Norwegen Mobilfunk
A:Österreich Mobilfunk
A:Schweden Mobilfunk
A:Schweiz Mobilfunk
A:Spanien Mobilfunk

View File

@ -1,4 +1,4 @@
/* $Id: rate.c,v 1.33 1999/07/03 10:24:18 akool Exp $
/* $Id: rate.c,v 1.34 1999/07/12 18:50:06 akool Exp $
*
* Tarifdatenbank
*
@ -19,6 +19,9 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: rate.c,v $
* Revision 1.34 1999/07/12 18:50:06 akool
* replace "0" by "+49"
*
* Revision 1.33 1999/07/03 10:24:18 akool
* fixed Makefile
*
@ -527,6 +530,7 @@ int initRate(char *conf, char *dat, char *dom, char **msg)
bitfield day, hour;
double price, divider, duration;
char buffer[LENGTH], path[LENGTH], Version[LENGTH]="<unknown>";
char sx[BUFSIZ];
char *c, *s;
int booked[MAXPROVIDER], variant[MAXPROVIDER];
int Providers=0, Areas=0, Services=0, Zones=0, Hours=0;
@ -799,6 +803,13 @@ int initRate(char *conf, char *dat, char *dom, char **msg)
s+=2;
while(1) {
if (*(c=strip(str2list(&s)))) {
if (*c == '0' && (*(c + 1) != '0')) {
sprintf(sx, "%s%s", mycountry, c + 1);
print_msg(PRT_NORMAL, "WARNING: Replacing %s by %s\n", c, sx);
c = sx;
} /* if */
if (!isdigit(*c) && (d=getCountry(c, &Country)) != UNKNOWN) {
if (*c=='+') {
Areas += appendArea (prefix, c, Country->Name, zone, &domestic, dat);