HylaFAX The world's most advanced open source fax server

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

Re: [hylafax-users] Access to remote station identifier in faxrcvd



Aidan
Thanks for the information.

If I understand you correctly, the sending fax devices equivalent of the
Hylafax LocalIdentifier value is only in the received fax tagline (generated
by the sending fax device), not as a value like the TSI transferred in the
fax exchange? Whereas, when sending a fax from Hylafax, the receiving fax
machine transmits information from which Hylafax can determine the NSF remote
station id as well as the remote CSI.  See below for a Hylafax sending
example from my Hylafax log.

May 30 14:55:41.85: [11744]: REMOTE NSF "00 00 11 80 00 8A 49 10 45 6E 76 69
72 6F 6E 6D 65 6E 74 61 6C 20 50 61 00 5A 00 80 80 D8 8E 01 01 01 01 04"
May 30 14:55:41.85: [11744]: NSF remote fax equipment: Canon Laser Class 9000
Series
May 30 14:55:41.85: [11744]: NSF remote station ID: "Environmental Pa"
May 30 14:55:41.85: [11744]: <-- [9:AT+FRH=3\r]
May 30 14:55:41.87: [11744]: --> [7:CONNECT]
May 30 14:55:42.57: [11744]: --> HDLC<25:FF C0 02 4C 1C 9C 0C 04 EC 2C 4C 6C
04 4C 04 8C 6C 04 04 04 04 04 04 D7 4A>
May 30 14:55:42.58: [11744]: --> [2:OK]
May 30 14:55:42.58: [11744]: REMOTE CSI "11 1 1111 1111"

Regards

Paul

+++---+++---+++---+++---+++---+++---+++---+++---+++---+++---+++---+++
EML Consulting Services Pty Ltd            Telephone: +61 3 9836 1999
417-431 Canterbury Road                    Facsimile: +61 3 9836 0517
SURREY HILLS, VICTORIA 3127            Email: Paul.Freeman@xxxxxxxxxx
+++---+++---+++---+++---+++---+++---+++---+++---+++---+++---+++---+++ 

-----Original Message-----
From: Aidan Van Dyk [mailto:aidan@xxxxxxxx] 
Sent: Tuesday, June 05, 2007 1:14 AM
To: Paul Freeman
Cc: hylafax-users@xxxxxxxxxxx
Subject: Re: [hylafax-users] Access to remote station identifier in faxrcvd

* Paul Freeman <paul.freeman@xxxxxxxxxx> [070604 11:07]:
> I have recently started using Hylafax for receiving faxes and forwarding
them
> on via email (with pdf attachment).  I wanted to customize the email
delivery
> process to include the sending station identifier (where it is supplied).

> I was wondering whether it was possible to have access to the remote
> (sending) station identifier in faxrcvd?  The remote TSI is available as
> $SENDER but I cannot locate the station identifier (it is available in the
> tagline).  Would I have to code this and if so, where would I start?

The "sending station identifier" is the "TSI" (Transmitting Station
Identifier).

The "tagline" you see at the top of the fax (or at the "bottom" if they
put the paper in upside down) is actual image data the the remote has
rendered onto the fax.  It's not anything sent outside the image data.

If you want, there are numerous OCR packages available.  Depending on
the fonts and characters the remote renders the tagline in, you could
theoretically have success in decoding the ORC line, parsing the data you
want out of it, and using it.  But knowing that it's image data, with no
defined structure, varied fonts, languages, information, and formats
makes it a quite challenging proposition in the general case.

a.

-- 
Aidan Van Dyk                                             aidan@xxxxxxxx
Senior Software Developer                          +1 215 825-8700 x8103
iFAX Solutions, Inc.                                http://www.ifax.com/

____________________ 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