<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY>
Hi <BR>
<BR>
Using spandsp_start_fax_detect instead tone_detect doesn't work.<BR>
<BR>
I have the latest git head.<BR>
<BR>
My dialplan works whit tone_detect.<BR>
<BR>
<BR>
<extension name="2103"><BR>
<condition field="destination_number" expression="^2103$"><BR>
<!--<BR>
<action application="answer"/><BR>
<action application="tone_detect" data="fax 1100 r +3000 transfer 2103_rxfax XML default"/><BR>
<action application="sleep" data="3000"/><BR>
--><BR>
<action application="pre_answer"/><BR>
<action application="spandsp_start_fax_detect" data="transfer '2103_rxfax XML default' 3"/><BR>
<action application="sleep" data="3000"/><BR>
<action application="set" data="ringback=%(1500,3000,425.0)"/><BR>
<action application="bridge" data="[leg_timeout=60]user/<A HREF="mailto:2103@madrid.commsmundi.com">2103@domain.com</A>"/><BR>
</condition><BR>
</extension><BR>
<BR>
<BR>
<extension name="2103_rxfax"><BR>
<condition field="destination_number" expression="^2103_rxfax$"><BR>
<action application="answer"/><BR>
<action application="playback" data="silence_stream://3000"/><BR>
<action application="lua" data="rxfax.lua ${user_data(<A HREF="mailto:2103@madrid.commsmundi.com">2103@domain.com</A> var faxbox)} domain.com"/><BR>
</condition><BR>
</extension><BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
On Mon, 2011-08-29 at 13:13 -0500, Anthony Minessale wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
there is a specific app for fax detecting inside mod spandsp called
spandsp_start_fax_detect
it takes about the same input args namely <app> [<arg>][ <timeout>]
It uses the official fax identification code inside spandsp and works
much better than the single tone detect way.
On Mon, Aug 29, 2011 at 12:59 PM, Michael Collins <<A HREF="mailto:msc@freeswitch.org">msc@freeswitch.org</A>> wrote:
> If you need multiple tone detects then definitely use the first method. I've
> done as many as 6 tone_detects on a single call and it works well.
> -MC
>
> On Sun, Aug 28, 2011 at 1:13 PM, Rob Hutton <<A HREF="mailto:justlikeef@gmail.com">justlikeef@gmail.com</A>> wrote:
>>
>> I am trying to get tone detection set up so that a single number can be
>> used for both voice and fax. Tone detection needs to run concurrent to the
>> normal call processing, so that a call proceeds normally unless the fax
>> tones are heard.
>>
>> On this wiki page
>> (<A HREF="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_fax_detect">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_fax_detect</A>) it gives
>> the format:
>>
>> <action application="tone_detect" data="fax 1100 r +5000 transfer fax XML
>> default" />
>>
>> and an associated dialplan entry for the call to be transfered to that
>> actually handles the fax reception.
>>
>> On this wiki page
>> (<A HREF="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect</A>) it says
>> that the format from the first page is not the preferred method, and that
>> the format should be something like:
>>
>> <action application="set" data="execute_on_tone_detect=transfer fax XML
>> default"/>
>> <action application="set" data="tone_detect_hits=1"/>
>> <action application="set" data="execute_on_media=tone_detect mytone 1100 r
>> +5000"/>
>>
>> My question is, using the first format, I could set up multiple
>> detections, eg. one for fax tones that sends/receives a fax, one for
>> answering machines tone that hangs up, etc.
>>
>> Is this possible with the preferred syntax?
>>
>>
>> FreeSWITCH-users mailing list
>> <A HREF="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</A>
>> <A HREF="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A>
>> UNSUBSCRIBE:<A HREF="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</A>
>> <A HREF="http://www.freeswitch.org">http://www.freeswitch.org</A>
>
>
>
> FreeSWITCH-users mailing list
> <A HREF="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</A>
> <A HREF="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A>
> UNSUBSCRIBE:<A HREF="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</A>
> <A HREF="http://www.freeswitch.org">http://www.freeswitch.org</A>
>
>
</PRE>
</BLOCKQUOTE>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
--
Un cordial saludo / Best regards,
_________________________
António Silva
E-mail:<A HREF="mailto:asilva@wirelessmundi.com">asilva@wirelessmundi.com</A>
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>