HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
Re: [hylafax-users] Possible incomplete data reported by ai.record function
Hi Lee
I've done extended debugging and found what was causing my problem:
In the file util/Str.h
there is the definition of fxStr (and status is defined as a fxStr).
The indata field (used to avoid malloc) has fixed dimension of 100.
As you can see the status response:
COMREC invalid response received to PPS. {E146}; Giving up after 3
attempts to send same page
has a length greater than 100.
This would not be a problem, I admit, unless (as was my case) you are
modifying hylafax code to put an extra status information at the
beginning of the string before calling ai.record.
That said, before trying to reproduce the problem on a system with an
unpatched hylafax version, I was not able to understand how the problem
was generated.
What has misleaded me was the fact that I can only use fxStr operation
that has as a second part operator a fxStr of less than 100 bytes.
Sorry for the wrong conclusion.
Anyway, Do you think that I can modify to 200 the indata size without
inappropriate side effect?
I need to keep those status information at the beginning of the status
string.
Regards
Davide
Lee Howard ha scritto:
> Davide Pagnin wrote:
>> I expect a status message like:
>>
>> "Failure to train remote modem at 2400 bps or minimum speed; Giving up
>> after 3 attempts to send same page"
>>
>> A blank string (thus meaning fax sent correctly!) or a string without
>> meaning are present in the log.
>
> I tried to reproduce this on a Fedora Core 2 box running HylaFAX+ 5.2.8...
>
> 02/17/09 21:59 SEND 000002877 iaxmodem1 2761 ""
> root@xxxxxxxxxxxxxxx "400" "NothingSetup" 2170920 0 0:00:19
> 0:00:15 "COMREC invalid response received to PPS. {E146}" ""
> "" "" "root" "00 44 1F 21 01 01 01 01 01 04" 1/1/0/1/12/1/3
> 02/17/09 22:00 SEND 000002879 iaxmodem2 2761 ""
> root@xxxxxxxxxxxxxxx "400" "NothingSetup" 2170920 0 0:00:19
> 0:00:15 "COMREC invalid response received to PPS. {E146}" ""
> "" "" "root" "00 44 1F 21 01 01 01 01 01 04" 1/2/0/2/12/2/3
> 02/17/09 22:01 SEND 000002881 iaxmodem1 2761 ""
> root@xxxxxxxxxxxxxxx "400" "NothingSetup" 2170920 0 0:00:18
> 0:00:15 "COMREC invalid response received to PPS. {E146}; Giving up
> after 3 attempts to send same page" "" "" "" "root"
> "00 44 1F 21 01 01 01 01 01 04" 1/3/0/3/12/3/3
>
> ... and I didn't see the problem.
>
> What operating system are you using?
>
> 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-users-request@xxxxxxxxxxx < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*