[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&#39;m still asking myself why I did&#39;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 &lt;<a href="mailto:joakimsen@gmail.com">joakimsen@gmail.com</a>
&gt;:</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 &lt;<a href="mailto:pirlouwi@gmail.com">pirlouwi@gmail.com</a>
&gt; wrote:<br>&gt; Hello,<br>&gt; my configuration is the following:<br>&gt; a TDM400P board with an fxs and fxo daughter boards on it.<br>&gt;<br>&gt; I thus connect a fax to my FXS port, after having verified that this port
<br>&gt; was correctly functioning. For this, I had tried before with a simple phone,<br>&gt; and with some basic voicemail exten scripts.<br>&gt;<br>&gt; Here is my simple dialplan for my fax reception:<br>&gt; exten =&gt; 300,1,Ringing()
<br>&gt; exten =&gt; 300,n,Answer()<br>&gt;&nbsp;&nbsp;exten =&gt; 300,n,Set(FAXFILE=/tmp/test.tif)<br>&gt;&nbsp;&nbsp;exten =&gt; 300,n,rxfax(${FAXFILE}||debug)<br><br>Why? exten =&gt; 300,1,rxfax(/tmp/test.tif||debug) would do the same<br>
exact thing. No need to indicate ringing and no need to &quot;answer&quot; 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&#39;t even try.
<br><br><br>&gt; I then dialed 300 on my fax machine, and expected to be lucky and to obtain<br>&gt; a /tmp/test.tif file after faxing completion.<br>&gt; 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>&gt;&nbsp;&nbsp;[Sep&nbsp;&nbsp;5 13:42:24] DEBUG[1298] pbx.c: Launching &#39;Ringing&#39;<br>
&gt; [Sep&nbsp;&nbsp;5 13:42:24] DEBUG[1298] chan_zap.c: Took Zap/1-1 off hook<br>&gt; [Sep&nbsp;&nbsp;5 13:42:24] DEBUG[1298] pbx.c: Launching &#39;Set&#39;<br>&gt;&nbsp;&nbsp;[Sep&nbsp;&nbsp;5 13:42:24] VERBOSE[1298] logger.c:&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [300@Internal:3]
<br>&gt; Set(&quot;Zap/1-1&quot;, &quot;FAXFILE=/tmp/test.tif&quot;) in new stack<br>&gt;&nbsp;&nbsp;[Sep&nbsp;&nbsp;5 13:42:24] DEBUG[1298] pbx.c: Launching &#39;RxFAX&#39;<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>&gt;<br>&gt; I have enabled the #define LOG_FAX_AUDIO inside spandsp library, and two<br>&gt; audio files (fax-rx-audio-b7933500-070905134224 and
<br>&gt; 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>&gt; This is not the case in my setup. What did I wrong?
<br>&gt; Thx for your help.<br><br><br>What version of Linux, Asterisk, Zaptel, SpanDSP &amp; app_rxfax are you using?<br></blockquote></div><br>