User Tools

Site Tools


informatica:linux:hylafax

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
informatica:linux:hylafax [2009/07/29 07:48] 194.179.83.87informatica:linux:hylafax [2015/04/13 20:19] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
 fax hylafax facsimil hylafax-server faxsend hfaxd fax hylafax facsimil hylafax-server faxsend hfaxd
- 
- 
  
 ===== Instalación y configuración inicial ===== ===== Instalación y configuración inicial =====
Line 19: Line 17:
   faxsetup   faxsetup
  
-Ir contestando las preguntas. La mayoría de ellas pulsando 'enter' para aceptar el valor propuesto por defecto:+Ir contestando las preguntas. La mayoría de ellas pulsando 'enter' para aceptar el valor propuesto por defecto. Marco en negrita los valores que hay que introducir a mano:
  
-<code> 
-... 
-Warning:/etc/hylafax/getty-linkdoesnotexistorisnotanexecutableprogram! 
-... 
-Warning:/etc/hylafax/vgetty-linkdoesnotexistorisnotanexecutableprogram! 
-... 
-Warning:/etc/hylafax/egetty-linkdoesnotexistorisnotanexecutableprogram! 
-... 
  
-Are these ok[yes]?=>y +  ... 
-Can I terminate this faxqp rocess(7586)[yes]?y +  Warning:/etc/hylafax/getty-linkdoesnotexistorisnotanexecutableprogram! 
-Should I restart the HylaFAX server processes[yes]?y +  ... 
-Do you want to run faxaddmodem to configure a modem[yes]?y +  Warning:/etc/hylafax/vgetty-linkdoesnotexistorisnotanexecutableprogram! 
-Serial port that modem is connected to[ttyS0]?ttyS0 +  ... 
-Country code[1]?34 +  Warning:/etc/hylafax/egetty-linkdoesnotexistorisnotanexecutableprogram! 
-Area code[415]?415 +  ... 
-Phone number of faxmodem[+1.999.555.1212]?600600600 +  Are these ok [yes]?  
-Local identification string(forTSI/CIG)["NothingSetup"]?pcmalaga +  Can I terminate this faxq process (660) [yes]?  
-Long distance dialing prefix[1]?34 +  Should I restart the HylaFAX server processes [yes]?  
-International dialing prefix[011]?011 +  Do you want to run faxaddmodem to configure a modem [yes]?  
-Dial string rulesfile(relativeto/var/spool/hylafax)[etc/dialrules]?etc/dialrules +  Serial port that modem is connected to [ttyS0]?  
-Tracingduringnormalserveroperation[1]?+**Country code [1]? 34** 
-Tracingduringsendandreceivesessions[11]?11 +  Area code [415]?  
-Protectionmodeforreceivedfacsimile[0600]?0644 +**Phone number of fax modem [+1.999.555.1212]? 900000000**
-Protectionmodeforsessionlogs[0600]?0600 +
-ProtectionmodeforttyS0[0600]?0600 +
-Ringstowaitbeforeanswering[1]?+
-Modemspeakervolume[off]?off +
-Commandlineargumentstogettyprogram["-h%ldx_%s"]?"-h%ldx_%s" +
-PathnameofTSIaccesscontrollistfile(relativeto/var/spool/hylafax)[""]?"" +
-PathnameofCaller-IDaccesscontrollistfile(relativeto/var/spool/hylafax)[""]?"" +
-Taglinefontfile(relativeto/var/spool/hylafax)[etc/lutRS18.pcf]?etc/lutRS18.pcf +
-Taglineformatstring["From%%l|%c|Page%%Pof%%T"]?"Desde%%l|%c|Pagina%%Pde%%T" +
-TimebeforepurgingastaleUUCPlockfile(secs)[30]?30 +
-HoldUUCPlockfileduringinbounddatacalls[Yes]?+
-HoldUUCPlockfileduringinboundvoicecalls[Yes]?+
-Percentgoodlinestoacceptduringcopyqualitychecking[95]?95 +
-Maxconsecutivebadlinestoacceptduringcopyqualitychecking[5]?+
-Maxnumberofpagestoacceptinareceivedfacsimile[25]?25 +
-SyslogfacilitynameforServerTracingmessages[daemon]?daemon +
-SetUIDto0tomanipulateCLOCAL[""]?=>Pulso'enter' +
-Useavailablepriorityjobschedulingmechanism[""]?=>Pulso'enter'+
  
-CountryCode:34 +**Local identification string (for TSI/CIG) ["NothingSetup"]? MI_NOMBRE**
-AreaCode:415 +
-FAXNumber:600600600 +
-LongDistancePrefix:34 +
-InternationalPrefix:011 +
-DialStringRules:etc/dialrules +
-SessionTracing:11 +
-RecvFileMode:0644 +
-RingsBeforeAnswer:+
-SpeakerVolume:off +
-GettyArgs:"-h%ldx_%s" +
-LocalIdentifier:pcmalaga +
-TagLineFont:etc/lutRS18.pcf +
-TagLineFormat:"Desde%%l|%c|Pagina%%Pde%%T" +
-MaxRecvPages:25 +
-LockDataCalls:yes +
-LockVoiceCalls:yes+
  
-Aretheseok[yes]?y +**Long distance dialing prefix [1]? 34** 
-Howshoulditbeconfigured[1]?1 +  International dialing prefix [011]?  
-DTE-DCEflowcontrolscheme[default]?default +  Dial string rules file (relative to /var/spool/hylafax) [etc/dialrules]?  
- +  Tracing during normal server operation [1]?  
-ModemDialCmd:ATDT%s +  Tracing during send and receive sessions [11]?  
-ModemFlowControl:rtscts +  Protection mode for received facsimile [0600]?  
-ModemHardFlowCmd:AT&K3 +  Protection mode for session logs [0600]?  
-ModemMfrQueryCmd:!Rockwell +  Protection mode for ttyS0 [0600]? 
-ModemModelQueryCmd:!RC288DPi +**Rings to wait before answering [1]? 6** 
-ModemNoFlowCmd:AT&K0 +  Modem speaker volume [off]?  
-ModemRate:19200 +  Command line arguments to getty program ["-h %l dx_%s"]?  
-ModemRevQueryCmd:ATI3 +  Pathname of TSI access control list file (relative to /var/spool/hylafax) [""]?  
-ModemSetupDCDCmd:AT&C1 +  Pathname of Caller-ID access control list file (relative to /var/spool/hylafax) [""]?  
-ModemSetupDTRCmd:AT&D2 +  Tag line font file (relative to /var/spool/hylafax) [etc/lutRS18.pcf]?  
-ModemSoftFlowCmd:AT&K4 +  Tag line format string ["From %%l|%c|Page %%P of %%T"]?  
- +  Time before purging a stale UUCP lock file (secs) [30]?  
-Aretheseok[yes]?y +  Hold UUCP lockfile during inbound data calls [Yes]?  
- +  Hold UUCP lockfile during inbound voice calls [Yes]?  
-CountryCode:34 +  Percent good lines to accept during copy quality checking [95]?  
-AreaCode:415 +  Max consecutive bad lines to accept during copy quality checking [5]?  
-LongDistancePrefix:34 +  Max number of pages to accept in a received facsimile [25]?  
-InternationalPrefix:011 +  Syslog facility name for ServerTracing messages [daemon]?  
-DialStringRules:etc/dialrules +  Set UID to 0 to manipulate CLOCAL [""]?  
- +  Use available priority job scheduling mechanism [""]?  
-Aretheseok[yes]?y +  ... 
-Doyouwanttorunfaxaddmodemtoconfigureanothermodem[yes]?n +  Are these ok [yes]?  
-ShouldIrunfaxmodemforeachconfiguredmodem[yes]?+  ... 
-</code>+  How should it be configured [1]?  
 +  ... 
 +  DTE-DCE flow control scheme [default]?  
 +  ... 
 +  Are these ok [yes]?  
 +  ... 
 +  Are these ok [yes]?  
 +  ... 
 +**Do you want to run faxaddmodem to configure another modem [yes]?  n** 
 +  ... 
 +  Should I run faxmodem for each configured modem [yes]? 
  
 4. Reiniciar el servidor de faxes: 4. Reiniciar el servidor de faxes:
Line 126: Line 92:
  
 Si en el campo nº 11 (contando por la izquierda) hay un "1", llegó correctamente. Si hay un "0" no llegó, y además se reintentará 3 veces (pese a haberle pasado el parámetro -t 1, pero bueno...) Si en el campo nº 11 (contando por la izquierda) hay un "1", llegó correctamente. Si hay un "0" no llegó, y además se reintentará 3 veces (pese a haberle pasado el parámetro -t 1, pero bueno...)
 +
  
 ===== Enviar por correo fax recibido ===== ===== Enviar por correo fax recibido =====
Line 141: Line 108:
   * [[informatica:linux:fax:configuracion_inicial_hylafax | Servidor hyalafax correctamente configurado ]]   * [[informatica:linux:fax:configuracion_inicial_hylafax | Servidor hyalafax correctamente configurado ]]
   * Salida a internet de la máquina donde está instalado el servidor de faxes hylafax   * Salida a internet de la máquina donde está instalado el servidor de faxes hylafax
-  * Tener configurado un servidor de correo saliente, o bien [[informatica:linux:mail:postfix | tener configurado postfix para que use otro servidor de correo smtp]]+  * Tener configurado un servidor de correo saliente, o bien [[informatica:linux:correo:postfix | tener configurado postfix para que use otro servidor de correo smtp]]
  
 (Todo como root) (Todo como root)
  
-1. nano /var/spool/hylafax/etc/FaxDispatch+1. Editar: 
 + 
 +  nano /var/spool/hylafax/etc/FaxDispatch 
 + 
 +Y añadirle el siguiente contenido:
  
   FILETYPE=pdf;   FILETYPE=pdf;
   SENDTO=FaxMaster;   SENDTO=FaxMaster;
  
-2. nano /var/spool/hylafax/bin/uuencode_it+2. Editar: 
 + 
 +  nano /var/spool/hylafax/bin/uuencode_it 
 + 
 +Y añadirle el siguiente contenido:
  
   #!/bin/sh   #!/bin/sh
   uuencode -m $1 $1 | grep -E -v "^begin|^====$" 2>/dev/null   uuencode -m $1 $1 | grep -E -v "^begin|^====$" 2>/dev/null
  
-3. chmod +x /var/spool/hylafax/bin/uuencode_it+3. Hacer el archivo ejecutable: 
 + 
 +  chmod +x /var/spool/hylafax/bin/uuencode_it
  
 4. Crear los siguientes archivos: 4. Crear los siguientes archivos:
Line 172: Line 149:
   TEMPLATE=es   TEMPLATE=es
  
-5. cp /var/spool/hylafax/bin/faxrcvd /var/spool/hylafax/bin/faxrcvd.original+5. Renombrar archivo:
  
-6. nano /var/spool/hylafax/bin/faxrcvd +  cp /var/spool/hylafax/bin/faxrcvd /var/spool/hylafax/bin/faxrcvd.original 
 + 
 +6. Editar: 
 + 
 +  nano /var/spool/hylafax/bin/faxrcvd 
  
 Añadir estas dos lineas: Añadir estas dos lineas:
Line 250: Line 231:
  
   /etc/init.d/hylafax restart   /etc/init.d/hylafax restart
 +
  
 ===== Fijar un horario de funcionamiento ===== ===== Fijar un horario de funcionamiento =====
Line 258: Line 240:
  
 Según esta configuración, a partir de las 18h ni salen ni entran faxes.  Según esta configuración, a partir de las 18h ni salen ni entran faxes. 
 +
 +
 +
 +===== Configurar tiempos de espera máximos, reintentos... =====
 +
 +1. Si se quiere para todo el sistema editar:
 +
 +  nano /etc/hylafax/config
 +
 +Si se quiere solo par un módem, por ejemplo 'ttyS0' editar:
 +
 +  nano /etc/hylafax/config.ttyS0
 +
 +Y añadirle el siguiente código:
 +
 +<code>
 +##################### Esperas ########################
 +
 +# The delay in seconds to wait before retrying a job whose
 +# dialing attempt failed with a BUSY status result.
 +JobReqBusy: 10
 +
 +# The delay in seconds to wait before retrying a job whose
 +# dialing attempt failed with a NO ANSWER status result.
 +JobReqNoAnswer: 10
 +
 +# The delay in seconds to wait before retrying a job whose
 +# dialing attempt failed with a NO CARRIER status result.
 +JobReqNoCarrier: 10
 +
 +# requeue interval for data connection dial result 
 +JobReqDataConn: 10
 +
 +# requeue interval for carrier without +FCON dial result 
 +JobReqNoFCon: 10
 +
 +# requeue interval for ''other'' problems 
 +JobReqOther: 10
 +
 +# requeue interval after fax protocol error 
 +JobReqProto: 10
 +
 +##################### Intentos ########################
 +
 +# The number of times to redial a phone number after receiving
 +# a BUSY result code when the number has not been successfully dialed before.
 +JobRetryBusy: 0
 +
 +# The number of times to redial a phone number after the dialing
 +# attempt failed because of NO ANSWER when the number has not been successfully dialed before.
 +JobRetryNoAnswer: 0
 +
 +# The number of times to redial a phone number after the dialing
 +# attempt failed because of NO CARRIER when the number has not been successfully dialed before.
 +JobRetryNoCarrier: 0
 +
 +# number of times to retry dialing on '' NO CARRIER '' 
 +NoCarrierRetrys: 0
 +
 +# max phone calls to make to transmit a job
 +MaxDials: 6
 +
 +</code>
 +
 +2. Grabar el archivo y salir
 +
 +3. Para que los cambios tomen efecto hay que reiniciar el servidor de faxes:
 +
 +  /etc/init.d/hylafax restart
 +
 +
 +===== El comando 'sendfax' pide contrasenya =====
 +
 +*Solución*: añadir el usuario a la lista de usuarios que pueden usar hylafax:
 +
 +  sudo faxadduser usuario
 +
 +Eso solo no me funciona, asi que edito:
 +
 +  sudo vim /etc/hylafax/hosts.hfaxd
 +
 +Y le anyado lo siguiente:
 +
 +<code>
 +localhost:21::
 +^www-data@
 +^usuario@
 +^root@
 +</code>
 +
 +Por si acaso reinicio hylafax:
 +
 +  sudo /etc/init.d/hylafax restart
 +
informatica/linux/hylafax.1248853713.txt.gz · Last modified: 2015/04/13 20:19 (external edit)