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 - AREA-PREFIX-NUMBER is getting changed into 1-AREA-AREA-PREFIX-NUMBER



Title: dialrules - AREA-PREFIX-NUMBER is getting changed into 1-AREA-AREA-PREFIX-NUMBER

If I send a fax number 123-456-7890, it's getting transformed into 1-845-123-456-7890
I want it to get transformed into 1-123-456-7890.
How do I set up a dialrules for this?

Here's my config.boston0 and the bottom sections from my dialrules (the top is standard):

config.boston0:
CountryCode:            1
AreaCode:               845
FAXNumber:              +1.SNIPPED
LongDistancePrefix:     1
InternationalPrefix:    011

etc/dialrules:
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
^[+]${Country}          = ${LDPrefix}           ! long distance call
^[+]                    = ${IDPrefix}           ! international call
^.*$                    = 9,&                   ! dial 9 first
]



The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure.  If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof.  Thank you.




Project hosted by iFAX Solutions