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

Pirlouwi pirlouwi at gmail.com
Thu Sep 6 09:33:42 CDT 2007


[RESOLVED]
Hello Andrew and thx you for your response, which led me to the solution.
You are right concerning the Ringing() and Answer(), so I put this out of my
dialplan.
The way to test with a std phone is a good idea, and permit me to hear the
spandsp CED tone. Very easy to do, and I'm still asking myself why I did'nt
though to that before :-)
This led me to the conclusion that the ||debug was in cause : when using it,
rxfax() answer a coming fax with a CNG tone instead of a CED tone.
I simply removed this ||debug argument, and now when I call the 300
extension, I can hear the CED tone like expected.
Using ||debug acts like if I had used |caller instead. Seems to be a bug.
[/RESOLVED]

2007/9/5, Andrew Joakimsen <joakimsen at gmail.com>:
>
> 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?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070906/ec20c717/attachment.htm 


More information about the asterisk-users mailing list