Hylafax Mailing List Archives

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

[hylafax-users] Syntax error in dialrules



Every job we send out, I seem to get:

Feb 25 12:14:04 faxfrmt01 FaxSend[23274]: Syntax error, expecting
identifier
Feb 25 12:14:04 faxfrmt01 FaxSend[23274]: Parse error in dial string
rules "etc/dialrules"

Is there a way to get from FaxSend which line it is complaining about?
Dialrules are below, I am not sure if we modified them at all.


! $Id: dialrules,v 1.4 2003/05/16 02:15:45 darren Exp $
!
! HylaFAX (tm) Dialing String Processing Rules.
!
! 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
[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}           ! replace l.d. dialing
code
^[^+]                   = +${Country}${Area}&   ! otherwise, insert
canon form
]
!
! 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
[abcABC]                = 2                     ! these convert alpha to
numbers
[defDEF]                = 3
[ghiGHI]                = 4
[jklJKL]                = 5
[mnoMNO]                = 6
[prsPRS]                = 7
[tuvTUV]                = 8
[wxyWXY]                = 9
^${LDPrefix}${Area}  =                       ! local phone call
^[+]${Country}${Area}        =                       ! local phone call
^[+]${Country}          = ${LDPrefix}           ! long distance call
^[+]                    = ${IDPrefix}           ! international call
]
^[0-9]{10}           = 1&

Regards, Ulf.

---------------------------------------------------------------------
Autotradecenter.com Inc, T: 650-532-6382, F: 650-532-6441
4600 Bohannon Drive, Suite 100, Menlo Park, CA 94025
---------------------------------------------------------------------



____________________ 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*



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