Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[hylafax-users] Problem with Zoom USB modem

115 views
Skip to first unread message

David Denney

unread,
Oct 23, 2015, 10:14:03 AM10/23/15
to hylafa...@hylafax.org
I am trying to set up Hylafax on a Ubuntu 14.04LTS machine.
I get it all set up and I start getting wedged e-mails.
I set the server tracing to 0xFFF and when I look at the logs, I get the
following:

FaxGetty[1450]: DELAY 10 ms
FaxGetty[1450]: MODEM flush i/o
FaxGetty[1450]: <-- [4:ATZ\r]
FaxGetty[1450]: --> [5:ERROR]
FaxGetty[1450]: MODEM Command error
FaxGetty[1450]: MODEM set DTR OFF
FaxGetty[1450]: Unable to setup modem on /dev/ttyACM0; giving up after 2
attempts
FaxQueuer[1396]: MODEM /dev/ttyACM0 appears to be wedged
FaxQueuer[1396]: MODEM WEDGED: bin/wedged "ttyACM0" "/dev/ttyACM0"
FaxGetty[1450]: CLOSE /dev/ttyACM0

Why would it error out on a reset command? I tried cu to test the modem, AT
command gives OK, but ATZ, ATZ0, and ATZ1 all error out.

This is a model 3095 USB modem from Zoom (based on Conextant chipset *I
believe*)

Any ideas?

Thank you in advance
David

Christophe BARRY

unread,
Oct 23, 2015, 10:26:06 AM10/23/15
to hylafa...@hylafax.org
Could you please send us the modem config File ?

Christophe


De : David Denney <dde...@cuttingtoolsinc.net<mailto:dde...@cuttingtoolsinc.net>>
Date : vendredi 23 octobre 2015 16:13
À : "hylafa...@hylafax.org<mailto:hylafa...@hylafax.org>" <hylafa...@hylafax.org<mailto:hylafa...@hylafax.org>>
Objet : [hylafax-users] Problem with Zoom USB modem

David Denney

unread,
Oct 23, 2015, 10:51:30 AM10/23/15
to hylafa...@hylafax.org
I left off the top bit of legalese


#
# Configuration for a Rockwell RC288DPi-based Class 1 modem.
# Hayes Optima 28800 firmware rev ???
# Microcom DeskPorte 28.8S firmware rev V1.100K-V34_DS
# PPI PM288FXMT firmware rev 1.57
#
# Note that the modem does not lock the line rate for fax
# receive (at least not the PM288FXMT); but not sure whether
# current flow control settings are maintained or if it
# switches to XON/XOFF (testing host was too fast to see).
#
#
CountryCode: 1
AreaCode: 502
FAXNumber: +1.502.896.2382
LongDistancePrefix: 1
InternationalPrefix: 011
DialStringRules: etc/dialrules
ServerTracing: 0xFFF
SessionTracing: 11
RecvFileMode: 0666
LogFileMode: 0600
DeviceMode: 0600
RingsBeforeAnswer: 1
SpeakerVolume: off
GettyArgs: "-h %l dx_%s"
LocalIdentifier: CTI-KY
TagLineFont: etc/lutRS18.pcf
TagLineFormat: "From %%l|%c|Page %%P of %%T"
MaxConsecutiveBadLines: 3
MaxRecvPages: 50
#
#
# Modem-related stuff: should reflect modem command interface
# and hardware connection/cabling (e.g. flow control).
#
ModemType: Class1 # use this to supply a hint
ModemRate: 19200 # rate for DCE-DTE communication
ModemFlowControl: rtscts # default
#
ModemNoFlowCmd: AT&K0 # setup no flow control
ModemHardFlowCmd: AT&K3 # setup hardware flow control
ModemSoftFlowCmd: AT&K4 # setup software flow control
ModemSetupDTRCmd: AT&D2 # setup so DTR drop resets modem
ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not)
#
ModemMfrQueryCmd: !Rockwell
ModemModelQueryCmd: !RC288DPi
ModemRevQueryCmd: ATI3 # product information
#
ModemDialCmd: ATDT%s # T for tone dialing

On Fri, Oct 23, 2015 at 9:22 AM, Christophe BARRY <cba...@groupe-ara.com>
wrote:

> Could you please send us the modem config File ?
>
>
> Christophe
>
>
> De : David Denney <dde...@cuttingtoolsinc.net>
> Date : vendredi 23 octobre 2015 16:13
> À : "hylafa...@hylafax.org" <hylafa...@hylafax.org>
> Objet : [hylafax-users] Problem with Zoom USB modem
>
> I am trying to set up Hylafax on a Ubuntu 14.04LTS machine.
> I get it all set up and I start getting wedged e-mails.
> I set the server tracing to 0xFFF and when I look at the logs, I get the
> following:
>
> FaxGetty[1450]: DELAY 10 ms
> FaxGetty[1450]: MODEM flush i/o
> FaxGetty[1450]: <-- [4:ATZ\r]
> FaxGetty[1450]: --> [5:ERROR]
> FaxGetty[1450]: MODEM Command error
> FaxGetty[1450]: MODEM set DTR OFF
> FaxGetty[1450]: Unable to setup modem on /dev/ttyACM0; giving up after 2
> attempts
> FaxQueuer[1396]: MODEM /dev/ttyACM0 appears to be wedged
> FaxQueuer[1396]: MODEM WEDGED: bin/wedged "ttyACM0" "/dev/ttyACM0"
> FaxGetty[1450]: CLOSE /dev/ttyACM0
>
> Why would it error out on a reset command? I tried cu to test the modem,
> AT command gives OK, but ATZ, ATZ0, and ATZ1 all error out.
>
> This is a model 3095 USB modem from Zoom (based on Conextant chipset *I
> believe*)
>
> Any ideas?
>
> Thank you in advance
> David
>



--
*David Denney*
*IT & Vending Account Manager*

Cutting Tools Inc*. | *www.cuttingtoolsinc.net
1002 Pleasant Grove Pl., Mount Juliet, TN 37122
Office: 615.391.0200 | Fax: 615.391.0206 | Cell: 615.655.7008

Lee Howard

unread,
Oct 23, 2015, 11:16:16 AM10/23/15
to David Denney, hylafa...@hylafax.org
On 10/23/2015 07:13 AM, David Denney wrote:
> FaxGetty[1450]: <-- [4:ATZ\r]
> FaxGetty[1450]: --> [5:ERROR]
>
> Why would it error out on a reset command? I tried cu to test the
> modem, AT command gives OK, but ATZ, ATZ0, and ATZ1 all error out.

It's possible that the modem chipset doesn't support ATZ.

Try AT&F instead.

To change that in the modem config file you'd need to put:

ModemSoftResetCmd: AT&F

Thanks,

Lee.


____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-us...@hylafax.org < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sa...@ifax.com.*

David Denney

unread,
Oct 23, 2015, 11:54:26 AM10/23/15
to Lee Howard, hylafa...@hylafax.org
OK, I added the AT&F line to the config file and restarted hylafax.
It showed server running and modem idle in YAJHFC so I sent it a test fax.
Here is the output of syslog.

Oct 23 11:49:02 CTIKY-FAX FaxGetty[1347]: STATE CHANGE: RUNNING -> LISTENING
Oct 23 11:49:02 CTIKY-FAX FaxGetty[1347]: --> [4:RING]
Oct 23 11:49:02 CTIKY-FAX FaxGetty[1347]: STATE CHANGE: LISTENING ->
ANSWERING
Oct 23 11:49:08 CTIKY-FAX FaxGetty[1347]: ANSWER: FAX CONNECTION DEVICE
'/dev/ttyACM0'
Oct 23 11:49:08 CTIKY-FAX FaxGetty[1347]: recvq/seqf: open: Permission
denied
Oct 23 11:49:08 CTIKY-FAX FaxGetty[1347]: RECV FAX: Unable to create temp
file for received data: Unable to open sequence number file recvq/seqf;
Permission denied.
Oct 23 11:49:08 CTIKY-FAX FaxGetty[1347]: <-- [5:ATH0\r]
Oct 23 11:49:11 CTIKY-FAX FaxGetty[1347]: --> [2:OK]
Oct 23 11:49:11 CTIKY-FAX FaxGetty[1347]: MODEM set DTR OFF
Oct 23 11:49:12 CTIKY-FAX FaxGetty[1347]: MODEM set DTR OFF
Oct 23 11:49:12 CTIKY-FAX FaxGetty[1347]: DELAY 75 ms
Oct 23 11:49:12 CTIKY-FAX FaxGetty[1347]: MODEM set DTR ON
Oct 23 11:49:12 CTIKY-FAX FaxGetty[1347]: DELAY 2600 ms
Oct 23 11:49:15 CTIKY-FAX FaxGetty[1347]: MODEM set baud rate: 19200 baud,
input flow RTS/CTS, output flow RTS/CTS
Oct 23 11:49:15 CTIKY-FAX FaxGetty[1347]: DELAY 10 ms
Oct 23 11:49:15 CTIKY-FAX FaxGetty[1347]: MODEM flush i/o
Oct 23 11:49:15 CTIKY-FAX FaxGetty[1347]: <-- [5:AT&F\r]
Oct 23 11:49:15 CTIKY-FAX FaxGetty[1347]: --> [5:ERROR]
Oct 23 11:49:15 CTIKY-FAX FaxGetty[1347]: MODEM Command error
Oct 23 11:49:15 CTIKY-FAX FaxGetty[1347]: MODEM set DTR OFF
Oct 23 11:49:15 CTIKY-FAX FaxGetty[1347]: DELAY 75 ms
Oct 23 11:49:16 CTIKY-FAX FaxGetty[1347]: MODEM set DTR ON
Oct 23 11:49:16 CTIKY-FAX FaxGetty[1347]: DELAY 2600 ms
Oct 23 11:49:19 CTIKY-FAX FaxGetty[1347]: MODEM set baud rate: 19200 baud,
input flow RTS/CTS, output flow RTS/CTS
Oct 23 11:49:19 CTIKY-FAX FaxGetty[1347]: DELAY 10 ms
Oct 23 11:49:19 CTIKY-FAX FaxGetty[1347]: MODEM flush i/o
Oct 23 11:49:19 CTIKY-FAX FaxGetty[1347]: <-- [5:AT&F\r]
Oct 23 11:49:19 CTIKY-FAX FaxGetty[1347]: --> [5:ERROR]
Oct 23 11:49:19 CTIKY-FAX FaxGetty[1347]: MODEM Command error
Oct 23 11:49:19 CTIKY-FAX FaxGetty[1347]: MODEM set DTR OFF
Oct 23 11:49:19 CTIKY-FAX FaxGetty[1347]: /dev/ttyACM0: Can not initialize
modem.
Oct 23 11:49:19 CTIKY-FAX FaxGetty[1347]: STATE CHANGE: RECEIVING ->
MODEMWAIT (timeout 30)
Oct 23 11:49:50 CTIKY-FAX FaxGetty[1347]: MODEM set DTR OFF
Oct 23 11:49:50 CTIKY-FAX FaxGetty[1347]: DELAY 75 ms
Oct 23 11:49:50 CTIKY-FAX FaxGetty[1347]: MODEM set DTR ON
Oct 23 11:49:50 CTIKY-FAX FaxGetty[1347]: DELAY 2600 ms
Oct 23 11:49:54 CTIKY-FAX FaxGetty[1347]: MODEM set baud rate: 19200 baud,
input flow RTS/CTS, output flow RTS/CTS
Oct 23 11:49:54 CTIKY-FAX FaxGetty[1347]: DELAY 10 ms
Oct 23 11:49:54 CTIKY-FAX FaxGetty[1347]: MODEM flush i/o
Oct 23 11:49:54 CTIKY-FAX FaxGetty[1347]: <-- [5:AT&F\r]
Oct 23 11:49:54 CTIKY-FAX FaxGetty[1347]: --> [5:ERROR]
Oct 23 11:49:54 CTIKY-FAX FaxGetty[1347]: MODEM Command error
Oct 23 11:49:54 CTIKY-FAX FaxGetty[1347]: MODEM set DTR OFF
Oct 23 11:49:54 CTIKY-FAX FaxGetty[1347]: DELAY 75 ms
Oct 23 11:49:54 CTIKY-FAX FaxGetty[1347]: MODEM set DTR ON
Oct 23 11:49:54 CTIKY-FAX FaxGetty[1347]: DELAY 2600 ms
Oct 23 11:49:58 CTIKY-FAX FaxGetty[1347]: MODEM set baud rate: 19200 baud,
input flow RTS/CTS, output flow RTS/CTS
Oct 23 11:49:58 CTIKY-FAX FaxGetty[1347]: DELAY 10 ms
Oct 23 11:49:58 CTIKY-FAX FaxGetty[1347]: MODEM flush i/o
Oct 23 11:49:58 CTIKY-FAX FaxGetty[1347]: <-- [5:AT&F\r]
Oct 23 11:49:58 CTIKY-FAX FaxGetty[1347]: --> [5:ERROR]
Oct 23 11:49:58 CTIKY-FAX FaxGetty[1347]: MODEM Command error
Oct 23 11:49:58 CTIKY-FAX FaxGetty[1347]: MODEM set DTR OFF
Oct 23 11:50:29 CTIKY-FAX FaxGetty[1347]: MODEM set DTR OFF
Oct 23 11:50:29 CTIKY-FAX FaxGetty[1347]: DELAY 75 ms
Oct 23 11:50:29 CTIKY-FAX FaxGetty[1347]: MODEM set DTR ON
Oct 23 11:50:29 CTIKY-FAX FaxGetty[1347]: DELAY 2600 ms
Oct 23 11:50:32 CTIKY-FAX FaxGetty[1347]: MODEM set baud rate: 19200 baud,
input flow RTS/CTS, output flow RTS/CTS
Oct 23 11:50:32 CTIKY-FAX FaxGetty[1347]: DELAY 10 ms
Oct 23 11:50:32 CTIKY-FAX FaxGetty[1347]: MODEM flush i/o
Oct 23 11:50:32 CTIKY-FAX FaxGetty[1347]: <-- [5:AT&F\r]
Oct 23 11:50:32 CTIKY-FAX FaxGetty[1347]: --> [5:ERROR]
Oct 23 11:50:32 CTIKY-FAX FaxGetty[1347]: MODEM Command error
Oct 23 11:50:32 CTIKY-FAX FaxGetty[1347]: MODEM set DTR OFF
Oct 23 11:50:32 CTIKY-FAX FaxGetty[1347]: DELAY 75 ms
Oct 23 11:50:32 CTIKY-FAX FaxGetty[1347]: MODEM set DTR ON
Oct 23 11:50:32 CTIKY-FAX FaxGetty[1347]: DELAY 2600 ms
Oct 23 11:50:36 CTIKY-FAX FaxGetty[1347]: MODEM set baud rate: 19200 baud,
input flow RTS/CTS, output flow RTS/CTS
Oct 23 11:50:36 CTIKY-FAX FaxGetty[1347]: DELAY 10 ms
Oct 23 11:50:36 CTIKY-FAX FaxGetty[1347]: MODEM flush i/o
Oct 23 11:50:36 CTIKY-FAX FaxGetty[1347]: <-- [5:AT&F\r]
Oct 23 11:50:36 CTIKY-FAX FaxGetty[1347]: --> [5:ERROR]
Oct 23 11:50:36 CTIKY-FAX FaxGetty[1347]: MODEM Command error
Oct 23 11:50:36 CTIKY-FAX FaxGetty[1347]: MODEM set DTR OFF
Oct 23 11:50:36 CTIKY-FAX FaxGetty[1347]: Unable to setup modem on
/dev/ttyACM0; giving up after 2 attempts
Oct 23 11:50:36 CTIKY-FAX FaxGetty[1347]: CLOSE /dev/ttyACM0
Oct 23 11:50:36 CTIKY-FAX FaxQueuer[1300]: MODEM /dev/ttyACM0 appears to be
wedged
Oct 23 11:50:36 CTIKY-FAX FaxQueuer[1300]: MODEM WEDGED: bin/wedged
"ttyACM0" "/dev/ttyACM0"
Oct 23 11:50:36 CTIKY-FAX FaxQueuer[1300]: NOTIFY exit status: 0 (3946)

On Fri, Oct 23, 2015 at 10:15 AM, Lee Howard <fax...@howardsilvan.com>
wrote:

> On 10/23/2015 07:13 AM, David Denney wrote:
>
>> FaxGetty[1450]: <-- [4:ATZ\r]
>> FaxGetty[1450]: --> [5:ERROR]
>>
>> Why would it error out on a reset command? I tried cu to test the modem,
>> AT command gives OK, but ATZ, ATZ0, and ATZ1 all error out.
>>
>
> It's possible that the modem chipset doesn't support ATZ.
>
> Try AT&F instead.
>
> To change that in the modem config file you'd need to put:
>
> ModemSoftResetCmd: AT&F
>
> Thanks,
>
> Lee.
>



Lee Howard

unread,
Oct 23, 2015, 12:03:12 PM10/23/15
to David Denney, hylafa...@hylafax.org
On 10/23/2015 08:54 AM, David Denney wrote:

> Oct 23 11:49:08 CTIKY-FAX FaxGetty[1347]: recvq/seqf: open: Permission
> denied
> Oct 23 11:49:08 CTIKY-FAX FaxGetty[1347]: RECV FAX: Unable to create
> temp file for received data: Unable to open sequence number file
> recvq/seqf; Permission denied.

It's unrelated, but did you notice this above? Your
/var/spool/hylafax/recvq/seqf file has the wrong permissions. Did you
chown it at some point? This should be fixed.

> Oct 23 11:49:11 CTIKY-FAX FaxGetty[1347]: MODEM set DTR OFF
> Oct 23 11:49:12 CTIKY-FAX FaxGetty[1347]: MODEM set DTR OFF
> Oct 23 11:49:12 CTIKY-FAX FaxGetty[1347]: DELAY 75 ms
> Oct 23 11:49:12 CTIKY-FAX FaxGetty[1347]: MODEM set DTR ON
> Oct 23 11:49:12 CTIKY-FAX FaxGetty[1347]: DELAY 2600 ms
> Oct 23 11:49:15 CTIKY-FAX FaxGetty[1347]: MODEM set baud rate: 19200
> baud, input flow RTS/CTS, output flow RTS/CTS
> Oct 23 11:49:15 CTIKY-FAX FaxGetty[1347]: DELAY 10 ms
> Oct 23 11:49:15 CTIKY-FAX FaxGetty[1347]: MODEM flush i/o
> Oct 23 11:49:15 CTIKY-FAX FaxGetty[1347]: <-- [5:AT&F\r]
> Oct 23 11:49:15 CTIKY-FAX FaxGetty[1347]: --> [5:ERROR]

So, it's doing the same thing with AT&F as it did with ATZ.

Use cu or minicom to verify, but you're going to need to find some
command to tell the modem to reset itself.

However... you're using "ModemFlow: rtscts", and the problem may
actually be that it should be "xonxoff", instead.

So the "ERROR" may be due to the modem getting the wrong data from the
DTE. In other words, we send "AT&F" or "ATZ", but then the modem gets
something else because the data got corrupted in the serial path due to
a flow control problem (although that should not come into play with the
AT commands).

I guess if all else fails you could disable resetting entirely with:

ModemSoftResetCmd: AT

But that's likely to cause other issues later.

David Denney

unread,
Oct 23, 2015, 12:29:17 PM10/23/15
to Lee Howard, hylafa...@hylafax.org
As to the recvq, I did chmod it to change two received files that were
there (probably incorrectly) What should the recvq be set to?

I have removed the AT&F line and changed the FlowControl to xonxoff and
restarted. Now cu shows ATZ and AT&F behaving correctly (get OK with both
commands). The FlowControl set was the result of faxaddmodem being ran.
Maybe I chose unwisely there.

Once I get the recvq fixed, I will retest.

David


On Fri, Oct 23, 2015 at 11:02 AM, Lee Howard <fax...@howardsilvan.com>
wrote:

Lee Howard

unread,
Oct 23, 2015, 1:03:20 PM10/23/15
to David Denney, hylafa...@hylafax.org
On 10/23/2015 09:28 AM, David Denney wrote:
> As to the recvq, I did chmod it to change two received files that were
> there (probably incorrectly) What should the recvq be set to?

Usually...

-rw-------. 1 uucp uucp 9 Apr 27 17:38 /var/spool/hylafax/recvq/seqf

> I have removed the AT&F line and changed the FlowControl to xonxoff
> and restarted. Now cu shows ATZ and AT&F behaving correctly (get OK
> with both commands). The FlowControl set was the result of faxaddmodem
> being ran. Maybe I chose unwisely there.

On USB modems flow control usually needs to be XON/XOFF.

Fax modem configuration is a bit messy because different modems need
different things, and it's not always possible to detect these things
automatically, and even if we had a question-and-answer session with the
administrator in the setup process that would employ our best guesses
for configuration we'd still end-up with some scenarios where it needs
to be felt-out a bit afterwards.

I suppose that during the faxaddmodem script it could say something like
"USB modems generally need xonxoff".

Tom Le

unread,
Oct 23, 2015, 7:54:56 PM10/23/15
to hylafa...@hylafax.org, fax...@howardsilvan.com
Hi all,

I am not sure if this is the right forum, and if it is not then please
point me to the right one, but here is my problem
I cannot view the failed fax to see the recipient info to contact them.
I can view them using Yajhfc client, but I don't want to install 50 pc.

Thanks for your help.

Pat Rohe

unread,
Oct 24, 2015, 1:50:04 PM10/24/15
to Tom Le, hylafa...@hylafax.org, fax...@howardsilvan.com
Problem is that John Hart died suddenly August 13th and he didn't leave much documentation so I am trying to put the pieces together. Can you let me know what your company provides in service to Custom it would be helpful.

We did replace both UBS for the servers.

Pat

Sent from my iPhone

Tom Le

unread,
Oct 26, 2015, 4:45:04 PM10/26/15
to Pat Rohe, hylafa...@hylafax.org, fax...@howardsilvan.com
Hi Pat,

My company is doing IT for healthcare provider, and one of my client is
using AvantFax for faxing, and sometimes the fax failed, which the
client would like know who the recipient is so that they can call them
up. The Yajhfc client does give you the view of failed fax, which I
think AvantFax should be able to do that as well. I found the php file
for AvantFax outbox, but not sure how to get the link in it.

Thanks

David Denney

unread,
Oct 26, 2015, 4:47:17 PM10/26/15
to Lee Howard, hylafa...@hylafax.org
Hello all,
As a follow up, this problem has been solved. My solution was to dump
Ubuntu and install Debian Jessie instead.

I worked on Ubuntu over the weekend and it always wedged the modem on the
first fax. I do think I was running cu under sudo... don't know if that
made a difference or not.

Thank you to everyone who helped.
David

On Fri, Oct 23, 2015 at 11:28 AM, David Denney <dde...@cuttingtoolsinc.net>
wrote:

Tom Le

unread,
Nov 26, 2015, 11:02:29 PM11/26/15
to Pat Rohe, hylafa...@hylafax.org, fax...@howardsilvan.com
Hi Pat, and Lee

Can you guys give me some guidance on how to achieve this? I tried to
change the outbox.php and outbox.tpl to have the download link like the
refax and archive, but i can seem to get the fid correctly. in the
outbox.php/tpl I only get the jid, which does not link to the pdf file
in the pdfpath.

Please advise.

Thanks



On 10/23/2015 07:53 PM, Pat Rohe wrote:

Tom Le

unread,
Nov 27, 2015, 4:03:32 AM11/27/15
to Pat Rohe, hylafa...@hylafax.org, fax...@howardsilvan.com
Hi Pat

I made the few changes to the outbox.tpl and outbox.php to get the
desire result. It may not be elegant but it works. Below are the
changes if someone would like the same thing

========================================
in outbox.tpl,
========================================


<td>{$queue[r].tts}</td>
<td>{$queue[r].status}</td>

#### I added the line below
<td>{$queue[r].docfile}</td>
#########

<td>
<span title="{$LANG.MODIFY_FAXJOB}"><input type="button"
value="&radic;" class="inputsubmit" id="fabtn_{$queue[
r].jid}" onclick="dialogFaxAlter({$queue[r].jid},0,'{$queue[r].owner}')"
/></span>
<span title="{$LANG.KILL_JOB}"><input type="button"
value="X" class="inputsubmit" onclick="if (confirm ('{$LANG
KILL_JOB} {$queue[r].jid}')) {literal}{{/literal}this.disabled = true;
location.href='outbox.php?kill={$queue[r].jid}'{lit
eral}}{/literal}" /></span>
</td>

#### I added the line below
<td align="right">
<a href="{$failed_queue[r].docfile}" target="_blank"><img
src="images/pdf-sm.png" border=0 title="{$LANG.DOWNLOAD_P
DF}" /></a>
</td>
#########
========================================



========================================
in outbox.php
========================================

$failed_faxqueue = array();

if (is_array($failed_queue)) {
foreach ($failed_queue as $q) {
$q['company'] = $q['number'];

if ($addressbook->loadbyfaxnum($q['number'], $mult)) {
$q['company'] = $addressbook->get_company();
}

#### I added the line below

$file = '/var/spool/hylafax/doneq/q' . $q['jid']; // get
the q file associate with the job id
if( file_exists( $file ) )
{

$file = escapeshellarg($file);
$line = `tail -n 1 $file`; // the last line in the q
file so that we can get the pdf file

$q['docfile'] = substr($line, strpos($line, "docq"));
// get the string from docq to the end of line, which reference to pdf file

}
#########

$failed_faxqueue[] = $q;
}
}

$INC_LIST = "<meta http-equiv=\"refresh\"
content=\"$refresh_timeout;URL=outbox.php\" />";

==========================================


And now, my outbox has a link the pdf file that suppose to be send out.
Hope this helps somebody else, that would
like to view the failed fax like me

If there is another way, then please let me know.


Thanks
0 new messages