HylaFAX The world's most advanced open source fax server

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

[hylafax-users] HFAXD - collecting faxstat data



Hello,

we're building a fax machine for hundreads of users.
We're using LDAP authorization.
All users should be able to connect using any client,
and should be able to view only their personal faxes.

faxstat -s | faxstat -d requests are handled by HFAXD process - 
HFAXD sends them list of their submitted/sent documents.

From what I know, HFAXD runs through filesystem serching all documents
and return data of those jobs, which belong to specified user.
However, when jobs are archived, this is no longer possible - as faxstat -a returns only list of the
archive directory.

Is there a way - perhaps external script to HFAXD - to search data for jobs/documents in somewhere else
then filesystem?

I mean, can I add some script, which would provide listing of jobs and HFAXD would only transfer this list to
whatever client?

I ask beacuse
  1) when document is received hylafax has no clue which customer it belongs to, so faxstat -r list all documents.
      But custom faxrcvd_script can insert received documents into database ->
      And when faxstat -r request the data HFAXD would call external script, that would list only documents related to
      logged user. (the script should know which numbers belong to customer, so list only those received faxes)

   2) when sent jobs are archived, can also be inserted into database, so when "faxstat -d" request is submitted,
      HFAXD should use some external script to search the user's jobs in database.

Is there a possibility/hack for such scripts,
or HFAXD is only capable of searching local filesystem for received/sent documents/jobs ?

Thanks for any suggestions and wish you a nice day

Tomáš Novosad


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




Project hosted by iFAX Solutions