Trixbox 2.8.0.3 / Asterisk 1.6.0.10
Getting inbound faxing set up using DIDs on a PRI.
It works fine for some faxes, but not all. I've tested inbound faxes with two devices: an HP OfficeJet 6310xi and the American Association for Justice's Fax On Demand service (1-800-976-2190, document 1300--it's a one-page doc).
The AAJ's faxback service works perfectly. The HP OJ6310xi has issues.
Best as I can tell, it's because the HP tends to have a bit of a delay after negotiating/connecting but before it starts scanning and sending the fax. Listening to the fax machine and watching the Asterisk CLI output, it always hangs up after initial negotiation and right as the scanner starts to make its pass down the glass, which is a good 15 seconds after the initial negotiation tone. Adjusting speed or quality settings doesn't do anything.
However, it DOES work when I set the device to "Scan & Fax" mode, which scans the document first and then dials. In this instance, the fax presumably begins being transmitted immediately after the fax negotiation occurs. Without this delay, Asterisk seems quite happy to accept the fax.
Unfortunately, there are a LOT of HP multifunction devices out there (I hate them, but oh well), and we need to be guaranteed to be able to receive from them.
If it is indeed due to the ReceiveFax module not waiting long enough for the fax to begin transmitting, is there an easy way to set this parameter?
Here are a couple of Pastebin logs from a successful fax (first, sent from the HP with "Scan & Fax" mode) and an unsuccessful fax (second, from the HP as normal):

Member Since:
2010-07-24