Bug #2742

Hylafax: no automatic fax printing

Added by Giacomo Sanchietti about 7 years ago. Updated about 7 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-hylafax
Target version:v6.5
Security class: Resolution:
Affected version:v6.5-final NEEDINFO:No

Description

After configuration of automatic fax printing on a local printer, faxes are not sent to the printer.

Configuration:

hylafax=service
...
    PrintReceived=enabled
    PrinterDriver=ljet4
    PrinterName=Samsung_ML-2850_Series
...

Expected behavior: received faxes must be printed on configured printer.


Related issues

Related to NethServer 6 - Bug #2746: hylafax: notify fails if tsi has spaces CLOSED

Associated revisions

Revision 89ff8c52
Added by Giacomo Sanchietti about 7 years ago

Fax dispatch: fix automatic printing. Refs #2742

Revision 9c5b7e57
Added by Giacomo Sanchietti about 7 years ago

Automatic print: pass FILe parameter. Refs #2742

Revision 16600a47
Added by Giacomo Sanchietti about 7 years ago

FaxAccounting: avoid unescaped blank chars. Refs #2742

Revision 1cfcba2d
Added by Giacomo Sanchietti about 7 years ago

Web UI: fix automatic print selection. Refs #2742

History

#1 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20

Automatic printing is controller by script /var/spool/hylafax/etc/dispatch/90print, which includes the file /var/spool/hylafax/etc/dispatch/print.conf.

Example of print.conf:

print=enabled
name=Samsung_ML-2850_Series

The 90print script includes the print.conf file from local directory, but the path is wrong. The script must use an absolute path.

Tested patch:

--- /tmp/90print    2014-05-09 15:03:17.887834123 +0200
+++ 90print    2014-05-09 15:50:56.048740505 +0200
@@ -1,6 +1,6 @@
 #!/bin/bash

-. print.conf
+. /var/spool/hylafax/etc/dispatch/print.conf

FILE=$1

 if [ "$print" = "enabled" ]; then
         /usr/bin/tiff2ps -a -w 8.20 -h 11.54 -H 11.90 $FILE | lpr -P $name

#2 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#3 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

#4 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Package in nethserver-testing:
  • nethserver-hylafax-1.0.6-6.0git1cfcba2d.ns6.noarch.rpm
Test case
  • Configure a printer inside CUPS
  • Configure the fax server to print using the new printer
  • Receive a fax and check the fax is automatically printed

See also #2746

#5 Updated by Massimo Palazzetti about 7 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90

#6 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from VERIFIED to ON_QA
  • % Done changed from 90 to 70

Must be verified with above rpm.

#7 Updated by Massimo Palazzetti about 7 years ago

  • Assignee set to Massimo Palazzetti

#8 Updated by Massimo Palazzetti about 7 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Massimo Palazzetti)
  • % Done changed from 70 to 90

Tested with the right packet

#9 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Release in nethserver-updates:
  • nethserver-hylafax-1.0.7-1.ns6.noarch.rpm

Also available in: Atom PDF