[asterisk-users] rxfax() problem - fax signal seems to be ignored

Andrew Joakimsen joakimsen at gmail.com
Wed Sep 5 16:21:15 CDT 2007


On 9/5/07, Pirlouwi <pirlouwi at gmail.com> wrote:
> Hello,
> my configuration is the following:
> a TDM400P board with an fxs and fxo daughter boards on it.
>
> I thus connect a fax to my FXS port, after having verified that this port
> was correctly functioning. For this, I had tried before with a simple phone,
> and with some basic voicemail exten scripts.
>
> Here is my simple dialplan for my fax reception:
> exten => 300,1,Ringing()
> exten => 300,n,Answer()
>  exten => 300,n,Set(FAXFILE=/tmp/test.tif)
>  exten => 300,n,rxfax(${FAXFILE}||debug)

Why? exten => 300,1,rxfax(/tmp/test.tif||debug) would do the same
exact thing. No need to indicate ringing and no need to "answer" the
call. Besides that it is just incorrect you are never going to have
correct answer supervision on an analog line, so don't even try.


> I then dialed 300 on my fax machine, and expected to be lucky and to obtain
> a /tmp/test.tif file after faxing completion.
> But instead, I always got such error in the /var/log/asterisk/full log file:

What if you just use a regular analog phone and dial 300? What
happens? What if you remove the ||Debug from your RxFax dialstring?

>  [Sep  5 13:42:24] DEBUG[1298] pbx.c: Launching 'Ringing'
> [Sep  5 13:42:24] DEBUG[1298] chan_zap.c: Took Zap/1-1 off hook
> [Sep  5 13:42:24] DEBUG[1298] pbx.c: Launching 'Set'
>  [Sep  5 13:42:24] VERBOSE[1298] logger.c:     -- Executing [300 at Internal:3]
> Set("Zap/1-1", "FAXFILE=/tmp/test.tif") in new stack
>  [Sep  5 13:42:24] DEBUG[1298] pbx.c: Launching 'RxFAX'

Notice how your own logs prove that 0ms elapse between the time you
incorrectly indicate ringing on the channel and the time RxFax begins.

>
> I have enabled the #define LOG_FAX_AUDIO inside spandsp library, and two
> audio files (fax-rx-audio-b7933500-070905134224 and
> fax-tx-audio-b7933500-070905134224) appeared in /tmp.

Just listen into the line. When you execute RxFax it will play fax
tones just as if another faxmachine answered -- not CNG tones

> This is not the case in my setup. What did I wrong?
> Thx for your help.


What version of Linux, Asterisk, Zaptel, SpanDSP & app_rxfax are you using?



More information about the asterisk-users mailing list