HylaFAX The world's most advanced open source fax server

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

[hylafax-users] faxrcvd : moving received fax to different dir



I want to modify faxrcvd so that upon the reception of a fax, it will copy 
the fax to another directory that is shared.

The small addition that I made towards the start of faxrcvd is

....
....
....
NEW_DIR="/home/e-smith/files/ibays/faxq/files"

/bin/cp $FILE $NEW_DIR/$FILE
/bin/chmod 0644 $NEW_DIR/$FILE
FILE="$NEW_DIR/$FILE"

if [ -f $FILE ]; then
    #
    # Check the sender's TSI and setup to dispatch
    # facsimile received from well-known senders.
    #
....
....
....

When I execute bin/faxrcvd at the command prompt as root or uucp, it works. 
It sends out the correct email notification and the fax ends up in the 
correct directory with the correct permissions.

When it is executed by hylafax, I get an email indicating that facsimile 
was not received. Below is a typical email and it does not indicate what 
the problem.

I am using hylafax4.1 under on a RedHat distribution of linux

any ideas?????

--------------------------------------------------------------------------
Tehn Yit Chin
Chief Engineer - Millison Technology Pty.Ltd.
ph: +61 3 9798 7333
mailto:tehn.yit.chin@millison.com.au
--------------------------------------------------------------------------

An attempt to receive facsimile on ttyS1 failed because:



    ---- Transcript of session follows ----

Jan 08 15:32:52.54: [25229]: SESSION BEGIN 00000016 97987633
Jan 08 15:32:52.54: [25229]: <-- [13:AT+FCLASS=1A\r]
Jan 08 15:32:57.82: [25229]: --> [7:CONNECT]
Jan 08 15:32:57.82: [25229]: ANSWER: FAX CONNECTION
Jan 08 15:32:57.82: [25229]: RECV FAX: begin
Jan 08 15:32:57.84: [25229]: --> [7:CONNECT]
Jan 08 15:32:59.80: [25229]: --> [2:OK]
Jan 08 15:32:59.80: [25229]: <-- [9:AT+FRH=3\r]
Jan 08 15:33:00.37: [25229]: --> [7:CONNECT]
Jan 08 15:33:01.91: [25229]: --> [2:OK]
Jan 08 15:33:01.91: [25229]: REMOTE TSI "FAXGATE"
Jan 08 15:33:01.91: [25229]: <-- [9:AT+FRH=3\r]
Jan 08 15:33:01.92: [25229]: --> [7:CONNECT]
Jan 08 15:33:02.26: [25229]: --> [2:OK]
Jan 08 15:33:02.26: [25229]: REMOTE wants 14400 bit/s
Jan 08 15:33:02.26: [25229]: REMOTE wants page width 1728 pixels in 215 mm
Jan 08 15:33:02.26: [25229]: REMOTE wants unlimited page length
Jan 08 15:33:02.26: [25229]: REMOTE wants 7.7 line/mm
Jan 08 15:33:02.26: [25229]: REMOTE wants 2-D MR
Jan 08 15:33:02.26: [25229]: RECV training at v.17 14400 bit/s
Jan 08 15:33:02.26: [25229]: <-- [11:AT+FRM=145\r]
Jan 08 15:33:04.01: [25229]: --> [7:CONNECT]
Jan 08 15:33:05.57: [25229]: RECV: TCF 2812 bytes, 2% non-zero, 2728 
zero-run
Jan 08 15:33:05.58: [25229]: --> [10:NO CARRIER]
Jan 08 15:33:05.58: [25229]: DELAY 75 ms
Jan 08 15:33:05.66: [25229]: <-- [9:AT+FTH=3\r]
Jan 08 15:33:05.85: [25229]: --> [7:CONNECT]
Jan 08 15:33:07.03: [25229]: --> [2:OK]
Jan 08 15:33:07.03: [25229]: TRAINING succeeded
Jan 08 15:33:07.03: [25229]: <-- [11:AT+FRM=146\r]
Jan 08 15:33:07.97: [25229]: --> [7:CONNECT]
Jan 08 15:33:07.97: [25229]: RECV: begin page
Jan 08 15:33:18.03: [25229]: RECV: 2292 total lines, 0 bad lines, 0 cons  
ecutive bad lines
Jan 08 15:33:18.03: [25229]: RECV: end page
Jan 08 15:33:18.03: [25229]: --> [10:NO CARRIER]
Jan 08 15:33:18.03: [25229]: <-- [9:AT+FRH=3\r]
Jan 08 15:33:18.41: [25229]: --> [7:CONNECT]
Jan 08 15:33:19.21: [25229]: --> [2:OK]
Jan 08 15:33:19.21: [25229]: RECV recv MPS (more pages, same document)
Jan 08 15:33:19.21: [25229]: DELAY 150 ms
Jan 08 15:33:19.36: [25229]: <-- [9:AT+FTH=3\r]
Jan 08 15:33:19.55: [25229]: --> [7:CONNECT]
Jan 08 15:33:20.73: [25229]: --> [2:OK]
Jan 08 15:33:20.73: [25229]: RECV send MCF (message confirmation)
Jan 08 15:33:20.73: [25229]: RECV FAX (00000016): from FAXGATE, page 1 in 
0:13, INF, 7.7 line/mm, 2-D MR, 14400 bit/s
Jan 08 15:33:20.73: [25229]: <-- [11:AT+FRM=146\r]
Jan 08 15:33:21.67: [25229]: --> [7:CONNECT]
Jan 08 15:33:21.67: [25229]: RECV: begin page
Jan 08 15:33:32.88: [25229]: RECV: 2292 total lines, 0 bad lines, 0 
consecutive bad lines
Jan 08 15:33:32.88: [25229]: RECV: end page
Jan 08 15:33:32.88: [25229]: --> [10:NO CARRIER]
Jan 08 15:33:32.88: [25229]: <-- [9:AT+FRH=3\r]
Jan 08 15:33:33.17: [25229]: --> [7:CONNECT]
Jan 08 15:33:34.07: [25229]: --> [2:OK]
Jan 08 15:33:34.07: [25229]: RECV recv EOP (no more pages or documents)
Jan 08 15:33:34.07: [25229]: DELAY 150 ms
Jan 08 15:33:34.22: [25229]: <-- [9:AT+FTH=3\r]
Jan 08 15:33:34.41: [25229]: --> [7:CONNECT]
Jan 08 15:33:35.59: [25229]: --> [2:OK]
Jan 08 15:33:35.59: [25229]: RECV send MCF (message confirmation)
Jan 08 15:33:35.59: [25229]: RECV FAX (00000016): from FAXGATE, page 2 in 
0:15, INF, 7.7 line/mm, 2-D MR, 14400 bit/s
Jan 08 15:33:35.59: [25229]: RECV FAX (00000016): recvq/fax00010.tif from 
FAXGATE, route to <unspecified>, 2 pages in 0:38
Jan 08 15:33:35.59: [25229]: <-- [9:AT+FRH=3\r]
Jan 08 15:33:36.01: [25229]: --> [7:CONNECT]
Jan 08 15:33:36.99: [25229]: --> [2:OK]
Jan 08 15:33:36.99: [25229]: RECV FAX: bin/faxrcvd "recvq/fax00010.tif" 
"ttyS1" "00000016" ""






____________________ HylaFAX(tm) Users Mailing List _______________________
 To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null




Project hosted by iFAX Solutions