[RESOLVED]<br>Hello Andrew and thx you for your response, which led me to the solution.<br>You are right concerning the Ringing() and Answer(), so I put this out of my dialplan.<br>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 :-)
<br>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.<br>I simply removed this ||debug argument, and now when I call the 300 extension, I can hear the CED tone like expected.
<br>Using ||debug acts like if I had used |caller instead. Seems to be a bug.<br>[/RESOLVED]<br><br><div><span class="gmail_quote">2007/9/5, Andrew Joakimsen <<a href="mailto:joakimsen@gmail.com">joakimsen@gmail.com</a>
>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On 9/5/07, Pirlouwi <<a href="mailto:pirlouwi@gmail.com">pirlouwi@gmail.com</a>
> wrote:<br>> Hello,<br>> my configuration is the following:<br>> a TDM400P board with an fxs and fxo daughter boards on it.<br>><br>> I thus connect a fax to my FXS port, after having verified that this port
<br>> was correctly functioning. For this, I had tried before with a simple phone,<br>> and with some basic voicemail exten scripts.<br>><br>> Here is my simple dialplan for my fax reception:<br>> exten => 300,1,Ringing()
<br>> exten => 300,n,Answer()<br>> exten => 300,n,Set(FAXFILE=/tmp/test.tif)<br>> exten => 300,n,rxfax(${FAXFILE}||debug)<br><br>Why? exten => 300,1,rxfax(/tmp/test.tif||debug) would do the same<br>
exact thing. No need to indicate ringing and no need to "answer" the<br>call. Besides that it is just incorrect you are never going to have<br>correct answer supervision on an analog line, so don't even try.
<br><br><br>> I then dialed 300 on my fax machine, and expected to be lucky and to obtain<br>> a /tmp/test.tif file after faxing completion.<br>> But instead, I always got such error in the /var/log/asterisk/full log file:
<br><br>What if you just use a regular analog phone and dial 300? What<br>happens? What if you remove the ||Debug from your RxFax dialstring?<br><br>> [Sep 5 13:42:24] DEBUG[1298] pbx.c: Launching 'Ringing'<br>
> [Sep 5 13:42:24] DEBUG[1298] chan_zap.c: Took Zap/1-1 off hook<br>> [Sep 5 13:42:24] DEBUG[1298] pbx.c: Launching 'Set'<br>> [Sep 5 13:42:24] VERBOSE[1298] logger.c: -- Executing [300@Internal:3]
<br>> Set("Zap/1-1", "FAXFILE=/tmp/test.tif") in new stack<br>> [Sep 5 13:42:24] DEBUG[1298] pbx.c: Launching 'RxFAX'<br><br>Notice how your own logs prove that 0ms elapse between the time you
<br>incorrectly indicate ringing on the channel and the time RxFax begins.<br><br>><br>> I have enabled the #define LOG_FAX_AUDIO inside spandsp library, and two<br>> audio files (fax-rx-audio-b7933500-070905134224 and
<br>> fax-tx-audio-b7933500-070905134224) appeared in /tmp.<br><br>Just listen into the line. When you execute RxFax it will play fax<br>tones just as if another faxmachine answered -- not CNG tones<br><br>> This is not the case in my setup. What did I wrong?
<br>> Thx for your help.<br><br><br>What version of Linux, Asterisk, Zaptel, SpanDSP & app_rxfax are you using?<br></blockquote></div><br>