<div>one more question:</div><div><br></div><div>what would also solve my problem if it was possible to know about the re-invite on the event socket (inbound) in some way - then I could switch to rxfax without doing any tone detection at all. But it seems that there is no way that FreeSWITCH lets me know about the re-invite...</div>
<div><br></div><div>greetings,</div><div>roland</div><div><br></div><div><br></div><div><br></div><br><br><div class="gmail_quote">2011/11/29 Roland Hänel <span dir="ltr"><<a href="mailto:roland@haenel.me">roland@haenel.me</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I'm trying to reliably detect whether there is a fax machine on an incoming channel.<div><br></div><div>Right now, it works nicely with the following dial plan:</div>
<div><br></div><div> answer</div><div> spandsp_start_fax_detect</div>
<div> sleep 5000</div><div><span style="background-color:transparent"> spandsp_stop_fax_detect</span></div><div><span style="background-color:transparent"> [... no fax there, so now do stuff that has nothing to do with fax ...]</span></div>
<div><span style="background-color:transparent"><br></span></div><div><span style="background-color:transparent">If the remote end is a PSTN fax, spandsp will fire an event upon detecting the CNG tone, and I will react accordingly.</span></div>
<div><span style="background-color:transparent"><br></span></div><div><span style="background-color:transparent">However, if the remove end is a T.38 fax, which will immediately re-invite after answer, then the following problem occurs:</span></div>
<div><span style="background-color:transparent"><br></span></div><div><span style="background-color:transparent">FreeSWITCH does not answer the re-invite (just says 100 Trying and nothing follows). Even though the remove end fax transmits the CNG tone afterwards, it is not detected by spandsp. I have recorded the call to make sure the CGN tone is there, and it is there. I have even played this tone into another phone call, where it is successfully detected by spandsp. All I can guess is that the non-answered re-invite might block spandsp from detecting the tone?</span></div>
<div><span style="background-color:transparent"><br></span></div><div>Greetings,</div><div>Roland</div><div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Gruß,<div>Roland</div><div><br></div><br>