HylaFAX The world's most advanced open source fax server

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

[hylafax-users] Strange file name



HylaFax 4.2.1
Fedora 2, 
Kernel 2.6.5-1.358 
 
Hi there,
 
I got no problem in sending fax. However, the received fax (TIF) cannot be
opened in Windows, but it can be opened in the hylafax server itself by GIMP
in Gnome. So I tried to change the FileType to PDF and PS, the PDF format
file also cannot be opened, but the PS file can be converted to PDF file and
opened successfuly. 
 
The log files are all seems normal and no errors.
 
Here are the configure files:
etc/config
LogFacility:            daemon
CountryCode:            852
AreaCode:               852
LongDistancePrefix:     9
InternationalPrefix:    001
DialStringRules:        etc/dialrules
ServerTracing:          1
 
/etc/config.ttyS0
CountryCode:            852
AreaCode:               852
FAXNumber:              26875172
LongDistancePrefix:     9
InternationalPrefix:    001
DialStringRules:        etc/dialrules
ServerTracing:          1
SessionTracing:         11
RecvFileMode:           0666
RecvDataFormat:        "2-D MR"
LogFileMode:            0600
DeviceMode:             0600
RingsBeforeAnswer:      1
SpeakerVolume:          medium
GettyArgs:              "-h %l dx_%s"
LocalIdentifier:        "NothingSetup"
TagLineFont:            etc/lutRS18.pcf
TagLineFormat:          "From %%l|%c|Page %%P of %%T"
MaxRecvPages:           25
ModemType:              Class2.0        
ModemRate:              19200           
ModemFlowControl:       rtscts       
ModemNoFlowCmd:         AT&H0&I0&R1     
ModemHardFlowCmd:       AT&H1&I0&R2    
ModemSoftFlowCmd:       AT&H2&I2&R1 
ModemSetupDTRCmd:       ATS13=1&D2    
ModemSetupDCDCmd:       AT&C1           
ModemResultCodesCmd:    ATQ0X4          
ModemSetupAACmd:        AT+FAA=1
ModemSetVolumeCmd:      "ATM0 ATM1 ATM1 ATM1 ATM1"
Class2BUGCmd:           AT+FBU=0
Class2CQQueryCmd:       !(0),(0)
Class2NRCmd:    AT+FNR=1,1,1,0
Class2SendRTC:  yes
Class2APQueryCmd:       none
 
(where RecvDataFormat:        "2-D MR" is I added to try to fix this
problem, but it can't)
 
Here is my setup.cache
AWK='/bin/gawk'
BIN='/usr/local/bin'
CAT='/bin/cat'
CHGRP='/bin/chgrp'
CHMOD='/bin/chmod'
CHOWN='/bin/chown'
CP='/bin/cp'
DPSRIP='/usr/local/sbin/ps2fax.exe'
ECHO='/bin/echo'
ENCODING='base64'
FAXQ_SERVER='yes'
FONTPATH='/usr/share/ghostscript/7.07/lib:/usr/share/ghostscript/7.07/vflib:
/usr/share/ghostscript/fonts:/usr/share/fonts/default/ghostscript:/usr/share
/fonts/default/Type1:/usr/share/fonts/default/amspsfnt/pfb:/usr/share/fonts/
default/cmpsfont/pfb'
FUSER='/sbin/fuser'
GREP='/bin/grep'
GSRIP='/usr/bin/gs'
HFAXD_OLD_PROTOCOL='no'
HFAXD_SERVER='yes'
HFAXD_SNPP_SERVER='no'
IMPRIP='/usr/lib/print/psrip'
LIBDATA='/usr/local/lib/fax'
LIBEXEC='/usr/local/sbin'
LN='/bin/ln'
MANDIR='/usr/local/man'
MIMENCODE='base64-encode'
MKFIFO='/usr/bin/mkfifo'
MV='/bin/mv'
PATHEGETTY='/bin/egetty'
PATHGETTY='/sbin/agetty'
PATH='/usr/sbin:/bin:/usr/bin:/etc:/usr/local/bin'
PATHVGETTY='/bin/vgetty'
PSPACKAGE='gs'
RM='/bin/rm'
SBIN='/usr/local/sbin'
SCRIPT_SH='/bin/bash'
SED='/bin/sed'
SENDMAIL='/usr/sbin/sendmail'
SPOOL='/var/spool/hylafax'
SYSVINIT=''
TARGET='i686-pc-linux-gnu'
TIFFBIN='/usr/bin'
TTYCMD='/usr/bin/tty'
UUCP_LOCKDIR='/var/lock/uucp'
UUCP_LOCKTYPE='ascii'
UUENCODE='uuencode' (I also tried to change this field to base64, and it
doesn't work too)

In faxDispatch, change/add the following # MIMENCODE=mimencode
UUENCODE=uuencode
Here is my etc/FaxDispatch:
#!/bin/sh
MIMENCODE=bin/uuencode_it;
UUENCODE=uuencode;
case "$DEVICE" in
ttyS0) SENDTO=kendrick_wong@xxxxxxxxxxxx;    # all faxes received on ttyS0
FILETYPE=tif;;
esac 

As well as create the uuencode_it script per the manual:
/var/spool/hylafax/bin/uuencode_it (0755)
#!/bin/sh
uuencode -m $1 $1 | grep -E -v "^begin|^====$" 2>/dev/null

It' s because the TIF file can be opened in GIMP, and Samba (WinXP client
access) I guest the problem is after received Fax, and before send it.
The encoding is a step between this period, but as I tried all (I searched
on the internet, only MIMENCODE & UUENCODE can be set, pls instruct if I' m
wrong) combination, the problem also exist. Do there have any other steps
between received Fax and send it?

The Files are strangely changed to the file name below (FTP access):
"-rw-rw-    1  14       +852 2603 0752 26Feb05 fax000000011.tif"

However, the file name is no problem when access via Samba:
"fax000000011.tif" and it can be opened.


What' s going on? I got stuck.... Please please help.....



____________________ 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