[Freeswitch-users] Using tone_detect application

Patrick Grondin pgrondin at ip5.com
Mon Aug 3 11:53:11 PDT 2009


Hi,

What's the correct way to detect a number changed SIT tone in Freeswitch ?

From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Patrick Grondin
Sent: July-28-09 3:44 PM
To: freeswitch-users at lists.freeswitch.org
Subject: [Freeswitch-users] Using tone_detect application

Hi,

I'm doing some tests between 2 FS to understand how the tone_detect application works.

I'm trying to detect a SIT tone, but I can't seem to detect the 3 tones. I only get the first activated tone.

If I have all tones activated - - - > I detect only the first tone of my wav file.
If I have 2nd segment tones and up activated - - - > I detect only the second tone of my wav file.
If I have the 3rd segment tones activated - - - > I detect only the third tone of my wav file.

I see that tone_detect can detect all 3 tones, but never at the same time. Does anyone have an idea of what I could be doing wrong ? Thanks !

I'm using FreeSWITCH Version 1.0.trunk (14397).

My dialplan looks like this :

    <extension name="incoming">
      <condition field="destination_number" expression="^(514[0-9][0-9][0-9][0-9][0-9][0-9][0-9])$">
        <action application="answer"/>
        <action application="tone_detect" data="SIT1LO 913.8 w +25000 set SIT1LO=true"/>   <!--1st segment low -->
        <action application="tone_detect" data="SIT1HI 985.2 w +25000 set SIT1HI=true"/>   <!--1st segment high -->
        <action application="tone_detect" data="SIT2LO 1370.6 w +25000 set SIT2LO=true"/>   <!--2nd segment low -->
        <action application="tone_detect" data="SIT2HI 1428.5 w +25000 set SIT2HI=true"/>   <!--2nd segment high -->
        <action application="tone_detect" data="SIT3LO 1776.7 w +25000 set SIT3LO=true"/>  <!--3rd segment low -->
        <action application="tone_detect" data="SITITU1 950 w +25000 set SITITU1=true"/>   <!--2nd segment low -->
        <action application="tone_detect" data="SITITU2 1400 w +25000 set SITITU2=true"/>   <!--2nd segment high -->
        <action application="tone_detect" data="SITITU3 1800 w +25000 set SITITU3=true"/>  <!--3rd segment low -->
        <action application="bridge" data="sofia/internal/$1 at 192.168.100.9"/>
      </condition>
    </extension>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090803/284fa9a2/attachment-0002.html 


More information about the FreeSWITCH-users mailing list