Hylafax Mailing List Archives

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

Re: [hylafax-users] Dialrules



On 2002.04.23 08:50 Thom Paine wrote:
> I live in Canada and we have some weird dialing rules.
> 
> For instance, I live in the 519 area code. We now need to dial +1-519
> for some of the exchanges in our area as a long distance call. I've
> browsed the boards and can't quite get my head around the dialrules
> file.
> 
> What I need is something like this.
> 
> My area code is 519
> My local prefix is 245
> A long distance prefix is 294
> A local prefix is 246.
> 
> 294 needs to be dialed +1-519-294-1212, but 246 can go 246-1212.
> 
> Can someone help me with these rules?

How is this weird?  Seems quite normal to me.

Usually, dialrules is used in such a way that it *removes* characters from 
the fax number to produce the dialstring rather than adding them.  Thus, 
fax numbers which the user intends to process with dialrules are submitted 
in the long (+1.519.294.1212) format with the "+" preceding.

Thus, you add lines near the end which tells dialrules to strip out the 
"1519" from the dialstring when the prefix is "246".

So, the end of your dialrules file would appear:

^[+]${Country}${AreaCode}246	= 246			! local call
^[+]${Country}					= ${LDPrefix}	! long 
distance call
^[+]						= ${IDPrefix}	! 
international call
]

Lee.

____________________ 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@hylafax.org < /dev/null



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