Hylafax Mailing List Archives

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

New dialrules for Sweden with Tele2



This is a new etc/dialrules.tele2 for use in Sweden with long distance
operator Tele2 AB and local operator Telia AB.
You have to change the data base in the middle.

-------------8<------------------------------------------------------------
! $Header: /usr/people/sam/fax/./etc/RCS/dialrules.europe,v 1.3 1995/01/23 20:37:42 sam Rel $
!
! HylaFAX (tm) Dialing String Processing Rules
!   for much of Europe.
!
! From: "Ed Cole" <ed@neu.sgi.com>
!
! This file describes how to process user-specified dialing strings
! to create two items:
!
! CanonicalNumber: a unique string that is derived from all dialing
! strings to the same destination phone number.  This string is used
! by the fax server for ``naming'' the destination. 
!
! DialString: the string passed to the modem for use in dialing the
! telephone.  This string should be void of any characters that might
! confuse the modem.
!
!
! *** This file is for use in Sweden with long distance operator Tele2 AB
! *** and local operator Telia AB.
! *** You have to change the near and regional numbers below to your needs.
! *** etc/config should be something like:
! ***   CountryCode:            46
! ***   AreaCode:               589
! ***   LongDistancePrefix:     0
! ***   InternationalPrefix:    007
! ***   DialStringRules:        etc/dialrules.tele2
! *** Stefan Pettersson, 97-01-10, spp@lysator.liu.se
!
!
Area=${AreaCode}		! local area code
Country=${CountryCode}		! local country code
IDPrefix=${InternationalPrefix}	! prefix for placing an international call
LDPrefix=${LongDistancePrefix}	! prefix for placing a long distance call
!
WS=" 	"			! our notion of white space
!
! Convert a phone number to a canonical format:
!
!    +<country><areacode><rest>
!
! by (possibly) stripping off leading dialing prefixes for
! long distance and/or international dialing.
!
CanonicalNumber := [
#.*                     =                       ! strip calling card stuff
[^+0-9]+                =                       ! strip white space etc.
^${IDPrefix}            = +                     ! replace int. dialing code
^${LDPrefix}            = +${Country}           ! STD call (long distance)
^[^+]                   = +${Country}${Area}&   ! else cononicalize
]
!
! Process a dialing string according to local requirements.
! These rules do only one transformation: they convert in-country
! international calls to long-distance calls.
!
DialString := [
[-${WS}.]+              =              ! strip syntactic sugar

^009                    = 007          ! change operator
^00746${Area}           =              ! local phone call
^0070${Area}            =              ! local phone call
^00746                  = s            ! long distance
^0070                   = s            ! long distance
^007                    = i            ! international call
^0${Area}               =              ! local phone call
! *** The following area codes never use 007-prefix:
^020                    = r20          ! toll free (never 007) (even 0200)
^016                    = r16          ! near
^019                    = r19          ! near
^0221                   = r221         ! near
^0227                   = r227         ! near
^0581                   = r581         ! near
^0150                   = r150         ! regional
^0151                   = r151         ! regional
^0152                   = r152         ! regional
^0157                   = r157         ! regional
^021                    = r21          ! regional
^0220                   = r220         ! regional
^0222                   = r222         ! regional
^0240                   = r240         ! regional
^0580                   = r580         ! regional
^0582                   = r582         ! regional
^0585                   = r585         ! regional
^0586                   = r586         ! regional
^0587                   = r587         ! regional
! *** end-never
^0                      = s            ! long distance

^r                      = 0            ! regional
^s                      = 0070         ! long distance
^i                      = 007          ! international

^[+]46${Area}           =              ! local phone call
^[+]46                  = 0070         ! STD call (long distance)
^[+]                    = 007          ! international call
]

!Original:
!^${IDPrefix}${Country}  = ${LDPrefix}           ! STD call (long distance)
! ^[+]${Country}          = ${LDPrefix}           ! STD call (long distance)
-------------8<------------------------------------------------------------

-- 
Stefan Pettersson                  Voice +46-70-5933800   Kanard AB
spp@lysator.liu.se                 Fax +46-589-14585      Vretberga
finger spp@lysator.liu.se for my public key               S-732 96  ARBOGA
    "Who is General Failure, and why is he reading my hard disk?"



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services