[asterisk-users] rxfax not receiving faxes

Greg Koch greg at ekingme.com
Mon Jul 7 20:58:42 CDT 2008


I have been using Asterisk with a fax machine flawlessly for quite some 
time, but I want to move to a more digital kind of system.  I want to 
use rxfax to receive the faxes, and then store them on the server in a 
directory to be viewed by domain users via a website I will later 
script.  The problem I am having is that the program does not actually 
answer the fax and receive it.  I have looked just about everywhere for 
ways to setup rxfax, and check for solutions to my problem.  Below you 
will see my extensions.conf and the output from the cli as a fax is sent 
in. 

extensions.conf:
[incomming]
exten => _1XXXXXXXXXX,1,Answer
exten => _1XXXXXXXXXX,2,Playtones(ring)
exten => _1XXXXXXXXXX,3,NVFaxDetect(6)
exten => _1XXXXXXXXXX,4,Dial(SIP/7001,20)
exten => _1XXXXXXXXXX,5,Voicemail(7001 at home)

exten => fax,1,Answer()
exten => fax,2,Playtones(ring)
exten => fax,3,Set(TIMEOUT(absolute)=3600)
exten => 
fax,4,Set(FAXFILE=/var/spool/asterisk-fax/${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${CALL$
exten => fax,5,rxfax(${FAXFILE})
exten => fax,6,Hangup()

CLI output during fax transmission (I have replaced my number with X and 
the calling number with x):
    -- Executing [15058964243 at incomming:1] 
Answer("SIP/1XXXXXXXXXX-007321b0", "") in new stack
    -- Executing [15058964243 at incomming:2] 
PlayTones("SIP/1XXXXXXXXXX-007321b0", "ring") in new stack
    -- Executing [15058964243 at incomming:3] 
NVFaxDetect("SIP/1XXXXXXXXXX-007321b0", "6") in new stack
[Jul  7 19:53:51] NOTICE[16137]: 
/root/asterisk/agx-ast-addons/app_nv_faxdetect.c:219 nv_detectfax_exec: 
Redirecting SIP/1XXXXXXXXXX-007321b0 to fax extension
    -- Executing [fax at incomming:1] Answer("SIP/1XXXXXXXXXX-007321b0", 
"") in new stack
    -- Executing [fax at incomming:2] PlayTones("SIP/1XXXXXXXXXX-007321b0", 
"ring") in new stack
    -- Executing [fax at incomming:3] Set("SIP/1XXXXXXXXXX-007321b0", 
"TIMEOUT(absolute)=3600") in new stack
    -- Channel will hangup at 2008-07-08 02:53:51 UTC.
    -- Executing [fax at incomming:4] Set("SIP/1XXXXXXXXXX-007321b0", 
"FAXFILE=/var/spool/asterisk-fax/20080707-195351-1xxxxxxxxxx.tif") in 
new stack
    -- Executing [fax at incomming:5] RxFAX("SIP/1XXXXXXXXXX-007321b0", 
"/var/spool/asterisk-fax/20080707-195351-1xxxxxxxxxx.tif") in new stack
[Jul  7 19:53:51] NOTICE[16137]: channel.c:2270 __ast_read: Dropping 
incompatible voice frame on SIP/1XXXXXXXXXX-007321b0 of format slin 
since our native format has changed to ulaw

 From what I am seeing here, it answers the call, detects the fax and 
forwards to the fax exten, that exten then answers, plays the ring tone 
until something else happens, sets the timeout, sets the fax file (that 
dir is 755 asterisk asterisk), then it is supposed to receive the fax 
and store it...  The sending machine simply says the call was not 
answered.  It seems like all is going according to plan until it hits 
RxFAX, then it does nothing.  Does anyone have any idea what is going on 
here?  I have SpanDSP and everything compiled in the correct 
directories, I've checked permissions at least a dozen times...  I'm 
running out of ideas...  I still can't figure out what that notice is 
really all about either!

I have tried making an internal extension for me to dial with a phone 
with the same dialplan as the fax extension, the same thing happens.  It 
answers, and then just sits there on RxFAX.

Help!!



More information about the asterisk-users mailing list