Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
International Medical Corps

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 160 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

rate-files



DESCRIPTION

       The  rate-files  used by isdnlog(8) and by isdnrate(1) are
       textfiles defining the telephone fees for different desti­
       nations  at  certain  dates/times for all providers of one
       country.
       The rate-files have the following overall layout:

       Header entries

       Provider entries

       Comments starting with a hash-sign '#' and empty lines are
       ignored.  The first letter (tag) followed by a colon sepa­
       rates the entries. Additional  white  space  may  be  used
       after the tags to group content more readably.

   Special entries
       I:includefile

       i:includefile

              includefile  get's substituted at the current posi­
              tion. There are  two  possibilities.  In  the  rate
              source  file (which is prepared by pp_rate) a small
              'i' puts the contents of the include  file  in  the
              outputfile.   An  'I'-Tag means, for the preproces­
              sor, write a new output file (the includefile)  and
              leave  the  tag in the rate-files. This is for real
              include files.
              Includes may be nested twice. The  filename  should
              not  contain  any paths (except for 'i' of course),
              they are taken relative to their parent file.

   Header entries
       V:versionsstring

              e.g.  V:1.0-Germany [18-Mar-1999]

       S:Servicename

       N:Servicenumber[,Servicenumber...]

              This defines telephone services with  special  num­
              bers.  Special  numbers  are numbers which a) start
              with no '0' or b) can  not  be  dialed  with  every
              provider.  A  number  with a variable length should
              have the wildcard '*' at the end, eg.  07189* which
              matches  all  numbers starting with 07189.  Numbers
              with wildcards should be placed after numbers which
              would  match the wildcard, because matching is done
              straight top down.  There may be multiple  N:  tags
              routed to a certain provider and not to the  prese­
              lected provider, you should use this tag.
              e.g.  in  Austria,  online  service numbers 194x or
              07189 go always via Telekom, ignoring  your  prese­
              lection:
              X: 194*=1,07189*=1
              or
              X: 194*=1z6    # Provider 1 Zone 6

   Provider entries
       A new provider starts always with a P: tag and consists of
       a Providerheader followed by Providerzones.

   Providerheader
       P:[daterange] providernumber providername

              daterange is [[fromDate][-toDate]]
              This defines a time range for the validity of rates
              for this provider. Dates have to be numeric in for­
              mat dd.mm.yyyy.  Note: as time is assumed as 00:00,
              take  for toDate the day+1. The daterange has to be
              enclosed in square  brackets.  Either  fromDate  or
              -toDate or both may be given.
              The providernumber may be a simple number, normally
              the last digits of the VBN-number, or  providernum­
              ber,variant  if a provider has different connection
              fees.
              e.g.
              P:02 UTA
              or
              P:[01.01.1999] 1,1 Telekom Minimumfee

       B:vbn

       VBN-Number for provider

              e.g.  B:1002
              This is the number  to  select  this  provider  and
              depends on your country.

       C:COMMENT: comment

       COMMENT  may  be  an  arbitrary  string, but the following
       entries are used already:

              C:Name:           Providername
              C:Maintainer:     Who did the hard work
              C:TarifChanged:   and when
              C:Address:        Provideraddress
              C:Homepage:       http:URL for provider
              C:TarifURL:       URL for tarif info
              C:EMail:          EMail-Address

       Name   of  zone  file  (inserted  for  %s  in  ZONEFILE  =
       /usr/lib/isdn/zone-CC-%s.dat from isdn.conf)

              e.g.  D:1001 # zone file is zone-at-1001.gdbm

       Note: if the provider has no different domestic zones, you
       should not define a D:tag.

   Providerzones
       A  Providerzone entry starts with a Z: tag followed by one
       or more A: and T: tags.

       A zone is a region of areas,  for  which  the  same  rates
       apply.  Domestic and foreign zones should not be mixed and
       all foreign zones should follow domestic zones.

       R:prov, sub ; zonelist

       Read zones from provider prov subprovider number  sub.   A
       zonelist  is  defined  below.   If the referenced provider
       doesn't have a subprovider number, the sub must be -1. The
       referenced  provider  may  be  defined before or after the
       R:-tag. The referenced zones must be real Z:-entries,  not
       references  themself. The zone numbers and names are taken
       from the referenced provider.  The  last  to_zone  may  be
       missing then all zones from the start zone are used.
       e.g.
       R:1,1 ; 1-4,6, 10-

       Z:zonelist zonename

       where zonelist is zone[-to_zone][,...]

              e.g.  Z:1-2,4 Interior

       A:area[,area...]

       area may be a telephone number (including +countrycode for
       numbers which may be reached from everywhere, a  telephone
       number  without +countrycode for numbers only reachable in
       the own country) or an area name or alias  as  defined  in
       country.dat.  Country names have to be translated to their
       code by the rate-preprocessor pp_rate.

              e.g.  A:19430,07189 # Online

              e.g.  A:+31,Belgium # Int 1

       Note: There should always be exactly one  zone  with  your
       countrycode or countryname respectively:

              Z:4

       daylist is day[-day][,...]  and day is a daynumber (1=Mon,
       2=Tue,  ...) or W (weekday), E (weekend), H (holiday) or *
       (everyday).

       timelist is hour[-hour][,hour]  where  hour  is  a  number
       0..23 or * for everytime.

       After  daylist/timelist  follows  =  or  !=  which  means,
       provider doesn't adjust rates on a rate boundary  e.g.  at
       18h00.

       A chargelist consists of

       [MinCharge|]Charge[(Divider)]/Duration[:Delay][/Dura­
       tion...]

       where MinCharge| is an (optional) minimum  charge,  Charge
       the  rate  per  Duration  seconds  or  optional  rate  per
       (Divider) seconds, Duration is the length  of  one  charge
       unit  in  seconds. After Delay the next duration is taken.
       If delay is not given it equals to the duration.  The last
       duration may not have a delay and may not be zero.

              EXAMPLES
              T:1-4/8-18=1.5(60)/60/1 workday

              Monday  until  Thursday, daytime the charge is 1.50
              per minute, first charge is for  one  minute  after
              this charging is calculated in seconds interval.

              T:W/18-8=0.30|1.2(60)/1 night

              On weekday, night, charge is the bigger of 1.20 per
              minute or 0.30

              T:*/*=0.50/0,1(60)/1 always

              Everyday, everytime there is a  connection  fee  of
              0.50, then charge is 1 per minute.

              T:H/*=0.5/60:600,0.5/30 holidays

              On  holidays,  everytime a charge of 0.5 per minute
              in a minutes interval, after  10  minutes  0.5  per
              half minute in half a minutes interval.

              T:*/*=1.3/0,0/1

              Everyday,  everytime the charge is 1.30 independent
              of  duration,  which  could  also  be  written   as
              T:*/*=1.3|0/1.



SEE ALSO

       isdnlog(8), isdnrate(1), isdnlog/README, rate-at.dat


AUTHOR

       Leopold Toetsch  <lt@toetsch.at>  (of  this  man  page  of
       course).

-lt-                        2002/06/25              rate-files(5)
  
Show your Support for the Linux Tutorial

Purchase one of the products from our new online shop. For each product you purchase, the Linux Tutorial gets a portion of the proceeds to help keep us going.


Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
You can get all the latest Site and Linux news by checking out our news page.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.04 Seconds