HylaFAX The world's most advanced open source fax server

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

Re: litle problem with dialrules



Well, first of al Thank you very much for your answer..!!! :)

Here's the thing.

I wrote a shell script to implement the email-to fax-gateway
and it works just perfect,  the same script check if the number you are trying
to dial contains more than
7 numbers, returns an email saying "numbers with more caracters than 7 are not
permitted"
thas ok..

My problem is with the client for win95, from the client i can dial ANY
number....
i saw the destctrls file, but i dont know hot to implement it...

Do you know how to "block" any calls to numbers with more than 7 digits.???
David Woolley wrote:

> > -----------------------------------------------------------
> > ready> 12282601
> > Apply CanonicalNumber rules to "12282601"
> > --> match rule "^1", result now "+12282601"
> > --> return result "+12282601"
>
> That's too short to be a valid canonical number starting with +.  US
> canonical numbers are +1xxxyyyzzzz.  The intention is that the canonical
> number be a location independent, world unique, number.  The + is
> a convention for representing the international access code.  Note that
> US phone numbers use 1 as the code to indicate a national number, but
> 1 is also the international code for the USA.  This is not generally true -
> the national code in the UK is 0, but the international code is 44, so
> my office number is +44181401...., in canonical form and 0181401...., in
> national form.
>
> > Apply DialString rules to "12282601"
> > --> match rule "[0-9]{8,}", result now ""
> > --> return result ""
>
> This is not the purpose of dialrules.
>
> >
> > p.s i saw in the FAQ something about "DestControl file" but i dont know
> > how to configure it
>
> DESTCTRLS(4F)                                       DESTCTRLS(4F)
>
> NAME
>        destctrls - per-destination controls for HylaFAX servers
>
> DESCRIPTION
>        The HylaFAX configuration parameter DestControls specifies
>        whether or not to apply per-destination  controls  on  job
>        characteristics such as the time-of-day to place a call.
>
> etc.




Project hosted by iFAX Solutions