Receiving faxes config problem [SOLVED]

Have setup a simple extension to email received faxes. The platform is using Trixbox v1.1.1. when I call the extension from outside of the network, I hear the fax tones on the Asterisk box. But the fax does not get transmitted.

I’ve checked the log output and found the following that does not seem to provide me with any indications of problems:

Jul 27 13:52:32 DEBUG[10293] chan_zap.c: Enabled echo cancellation on channel 6 Jul 27 13:52:32 DEBUG[10739] pbx.c: Launching 'Set' Jul 27 13:52:32 DEBUG[10739] pbx.c: Launching 'RxFAX' Jul 27 13:52:32 DEBUG[10739] channel.c: Set channel Zap/6-1 to read format slin Jul 27 13:52:32 DEBUG[10739] channel.c: Set channel Zap/6-1 to write format slin Jul 27 13:52:32 DEBUG[10740] app_queue.c: Device 'Zap/6' changed to state '2' (In use) but we don't care because they're not a member of any queue. Jul 27 13:52:32 DEBUG[10741] app_queue.c: Device 'Zap/6' changed to state '2' (In use) but we don't care because they're not a member of any queue. Jul 27 13:52:49 DEBUG[10739] app_rxfax.c: Got hangup Jul 27 13:52:49 DEBUG[10739] channel.c: Set channel Zap/6-1 to read format alaw Jul 27 13:52:49 DEBUG[10739] channel.c: Set channel Zap/6-1 to write format alaw Jul 27 13:52:49 DEBUG[10739] pbx.c: Extension 23336310, priority 2 returned normally even though call was hung up Jul 27 13:52:49 DEBUG[10739] channel.c: Hanging up channel 'Zap/6-1' Jul 27 13:52:49 DEBUG[10739] chan_zap.c: zt_hangup(Zap/6-1) Jul 27 13:52:49 DEBUG[10739] chan_zap.c: Set option AUDIO MODE, value: ON(1) on Zap/6-1 Jul 27 13:52:49 DEBUG[10739] chan_zap.c: Hangup: channel: 6 index = 0, normal = 23, callwait = -1, thirdcall = -1 Jul 27 13:52:49 DEBUG[10739] chan_zap.c: Not yet hungup... Calling hangup once with icause, and clearing call Jul 27 13:52:49 DEBUG[10739] chan_zap.c: disabled echo cancellation on channel 6 Jul 27 13:52:49 DEBUG[10739] chan_zap.c: Set option TDD MODE, value: OFF(0) on Zap/6-1 Jul 27 13:52:49 DEBUG[10739] chan_zap.c: Updated conferencing on 6, with 0 conference users Jul 27 13:52:49 DEBUG[10739] chan_zap.c: Set option AUDIO MODE, value: OFF(0) on Zap/6-1 Jul 27 13:52:49 DEBUG[10739] chan_zap.c: disabled echo cancellation on channel 6 Jul 27 13:52:49 DEBUG[10744] app_queue.c: Device 'Zap/6' changed to state '0' (Unknown) but we don't care because they're not a member of any queue.
So am wondering if my configuration is correct. Here’s an extract from my dialplan:

exten => 23336310,1,Set(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif) exten => 23336310,2,rxfax(${FAXFILE}) exten => 23336310,3,system(/var/lib/asterisk/bin/fax-process.pl --to "fax23336310@example.com" --from "faxadmin@example.com" --subject "Fax from ${CALLERID(number)} ${CALLERID(name)}" --attachment ${CALLERID(number)}.pdf --type application/pdf --file ${FAXFILE}); exten => 23336310,4,Hangup
Can anyone see why the fax is not being received?

Iain.

Okay, got this sorted out by adding wait(2) before rxfax.

yes, it takes a couple of seconds to sense the fax tones…

Can I get the fax config so I can set mine up. I’m trying to send and receive faxes but have not being able to configure it. Can you please paste the config file entries for fax. thanx.