Hylafax Mailing List Archives

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

Re: [hylafax-users] JobRetryNoAnswer doesn't work?



To summarize:

For me the RetryNoAnswer setting works now. In Class2Modem.c++, Class2Modem::dialResponse I changed:

case 11: return (NOFCON); // No answer (T.30 timeout)

into:

case 11: return (NOANSWER); // No answer (T.30 timeout)

Is this an error in Hylafax, or gives my modem the wrong error message?
Then, in FaxSend.c++, FaxServer::sendFax I changed:

case ClassModem::NOANSWER: // no answer or ring back
if (!clientInfo.getCalledBefore() && fax.ndials > retryMAX[callstat])
sendFailed(fax, send_failed, notice);


into:

case ClassModem::NOANSWER:    // no answer or ring back
       if (fax.ndials > retryMAX[callstat])
       sendFailed(fax, send_failed, notice);

Apparently Hylafax knows it has called my cell phone before. This is a bit strange behaviour. It has called my cell phone before, but of course it can't have delivered any faxes to it. So IMO that's no reason to ignore RetryNoAnswer and call it over and over again?


Mark Hunting wrote:


I found it! I have now modified FaxServer::sendFax in FaxSend.c++ instead of sendPage in pageSendApp.c++. I think Hylafax called me three times because my mobile phone number was already in it's list of 'known numbers'.

And I used traceServer to log messages into syslog this time, that worked.

Mark Hunting wrote:

Because I changed NOFCON into NOANSWER in Class2Modem::dialResponse, the dial function now gives back a status of 3, which is correct. I see that the dial function is called in pageSendApp::sendPage:

CallStatus callstat = getModem()->dial(number, notice);

callstat will be 3 after I close the connection on my voice phone. However, hylafax still calls my voice phone 3 times. I tried to put things after 'case ClassModem::NOANSWER:' to let it stop after the first call, but without a result. I can't use protoTrace in this function, that's an extra handicap. Is there another function that writes something in a logfile that's available in pageSendApp?

Or can somebody see what's wrong in pageSendApp::sendPage in hylafax 4.2.2? Either case ClassModem::NOANSWER is not true (should be true however), or the sendFailed(req, send_retry, notice, requeueTTS[callstat]); that follows doesn't do the correct job.

Thanks again,
Mark


Mark Hunting wrote:


Ah, protoTrace() writes into the session log.

Mark Hunting wrote:

I thought I found the problem. In Class2Modem::dialResponse is this line:

case 11: return (NOFCON); // No answer (T.30 timeout)

I changed the 'NOFCON' to 'NOANSWER'

case 11: return (NOANSWER); // No answer (T.30 timeout)

Unfortunately, this doesn't give the desired result, Hylafax still calls me three times. I have very little experience in C++, and because the Hylafax source code is a bit too complicated for me I don't know how to get some information into a logfile. This would be handy to see what's happening. How can I write something in a logfile? It doesn't matter if it is syslog or the session log.

Thanks!


____________________ 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*



____________________ 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*



____________________ 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*



____________________ 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*



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services