Hylafax Mailing List Archives

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

Re: [hylafax-users] Destctrls TimeOfDay Restrictions



Lee's suggestion below worked perfectly. To recap, the overall solution to
only sending certain faxes between 8a and 7p was:

1. 'Mark' these jobs when submitting with sendfax by putting an 'X' on the
end of the phone number (like 13035551212X versus 13035551212)
2. Edit etc/config to add DestControls: etc/destctrls
3. Set up etc/destctrls to only allow jobs where the canonical number ends
with 'X' to be queued between 8a and 7p. (see my prior post for the
specific lines in destctrls)
4. Edit etc/dialrules so that the X on the end stays with canonical
numbers but gets stripped from the dial number.
5. Run a nightly cron at 7:00 PM that runs faxalter -a "now + 13 hours"
<job-number> against all the jobs that have the 'X' in the number: field
in their sendq/ files.

One other gotcha I ran into was that only the user that submitted the job
can cancel it. Sudo to the rescue! The user is available in the sendq/
file as well.

Thank you, Lee, for your help with this.

Christian

>> On 2005.01.28 07:12 Christian M. Watts wrote:
>>
>>> My issue is that if the fax gets queued prior to the expiration of the
>>> TimeOfDay restriction, it will still be sent after the expiration of
>>> the
>>> restriction. What I want is for any faxes that are marked with the 'X'
>>> to
>>> only be sent between the hours of 8am and 7pm. The problem is that if
>>> I
>>> queue up, for instance, 1000 faxes at 6:30pm, they will still keep
>>> sending
>>> all night long.
>>
>> TimeOfDay doesn't help you with that, as you are aware.  Maybe it
>> should, but it doesn't.
>>
>> For this part of your endeavor you need to make use of 'faxalter -a'
>> and "killtime" and "time-to-send" parameters when you submit the job.
>>
>> So if you submit a job at 6:30PM and don't want it to be sent between
>> 7PM and 8AM, then at 7PM you need to run 'faxalter' to change its
>> time-to-send to be 8AM (and probably extend the killtime in the
>> process).
>>
>> The other option is to stop faxq at 7PM and then restart it at 8AM.
>> That's a little more ugly, though.
>>
>> 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@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