HylaFAX The world's most advanced open source fax server

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

[hylafax-users] Dialrules AVM Fritz Card



Hello,

I have a problem with sending a fax. My configuration:

Debian Sarge 2.6 Kernel
Hylafax-Server Version 4.2.1
capi4hylafax Version 1.02.03
AVM Fritz! Card


I am trying to send a fax via WHFC. When i am trying to send a fax with
number 02381xxxxxxx everything is o.k. But when the number is +49 2381
xxxxx i get the error that the number is not valid. The dialrules are
configured like that:

! $Id: dialrules.europe,v 1.2 2003/02/08 22:58:09 darren Exp $
!
! HylaFAX (tm) Dialing String Processing Rules
!   for much of Europe.
!
! From: "Ed Cole" <ed@xxxxxxxxxxx>
!
! 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.
!
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
^+49                   = 0
[abcABC]            = 2                     ! these convert alpha to
numbers
[defDEF]             = 3
[ghiGHI]              = 4
[jklJKL]               = 5
[mnoMNO]          = 6
[prsPRS]             = 7
[tuvTUV]             = 8
[wxyWXY]           = 9
[^+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
^+49                      = 0
[abcABC]               = 2                     ! these convert alpha to
numbers
[defDEF]                = 3
[ghiGHI]                 = 4
[jklJKL]                  = 5
[mnoMNO]              = 6
[prsPRS]                = 7
[tuvTUV]                = 8
[wxyWXY]              = 9
!^${IDPrefix}${Country}${Area}   =               ! local phone call
!^${LDPrefix}${Area}     =                       ! local phone call
!^${IDPrefix}${Country}  = ${LDPrefix}           ! STD call (long
distance)
!^[+]${Country}${Area}   = 0                      ! local phone call
^[+]${Country}          = 0           ! STD call (long distance)
!^[+]                    = ${IDPrefix}           ! international call
]

When i am using dialtest to check the dialrules the number +49 2381
xxxxx will be rewritten to 02381xxxxx. So i think my dialrules must be
o.k. My configuration file looks like:

#ContCoverPage:         "etc/cover.templ"
#DestControls:          "etc/destctrls"
## DialStringRules:        "etc/dialrules.sf-ba"
DialStringRules:        "etc/dialrules.europe"
#QualifyCID:           ; "etc/cid"
#QualifyTSI:            "etc/tsi"
#ServerTracing:         0x08501
CountryCode: 49
AreaCode: 2381
LongDistancePrefix: 0
InternationalPrefix: 049
SendFaxCmd: "/usr/bin/c2faxsend"

For me it seems like hylafax is not using the dialrules to rewritte the
number. I dont know where the error could be. So i hope someone can help
me.


Kind regards,

Marcel Kubicki


____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions