[Freeswitch-users] Multiple Tone Detect
Antonio
asilva at wirelessmundi.com
Tue Sep 6 13:25:05 MSD 2011
Hi
Using spandsp_start_fax_detect instead tone_detect doesn't work.
I have the latest git head.
My dialplan works whit tone_detect.
<extension name="2103">
<condition field="destination_number" expression="^2103$">
<!--
<action application="answer"/>
<action application="tone_detect" data="fax 1100 r +3000 transfer
2103_rxfax XML default"/>
<action application="sleep" data="3000"/>
-->
<action application="pre_answer"/>
<action application="spandsp_start_fax_detect" data="transfer
'2103_rxfax XML default' 3"/>
<action application="sleep" data="3000"/>
<action application="set" data="ringback=%(1500,3000,425.0)"/>
<action application="bridge"
data="[leg_timeout=60]user/2103 at domain.com"/>
</condition>
</extension>
<extension name="2103_rxfax">
<condition field="destination_number" expression="^2103_rxfax$">
<action application="answer"/>
<action application="playback" data="silence_stream://3000"/>
<action application="lua" data="rxfax.lua ${user_data(2103 at domain.com
var faxbox)} domain.com"/>
</condition>
</extension>
On Mon, 2011-08-29 at 13:13 -0500, Anthony Minessale wrote:
> 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 <msc at freeswitch.org> 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 <justlikeef at gmail.com> 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
> >> (http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_fax_detect) 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
> >> (http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_tone_detect) 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
> >> FreeSWITCH-users at lists.freeswitch.org
> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> >> http://www.freeswitch.org
> >
> >
> >
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> >
> >
>
>
>
--
Un cordial saludo / Best regards,
_________________________
António Silva
E-mail:asilva at wirelessmundi.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110906/52c161d3/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list