[Freeswitch-users] My tone_detect doesn't works

Stephen Wilde wstephen80 at gmail.com
Mon Apr 4 23:12:40 MSD 2011


Thank you Michael, yes, I expect that the variable will be in legA.

Stephen


On Mon, Apr 4, 2011 at 8:40 PM, Michael Collins <msc at freeswitch.org> wrote:

>
>
> On Mon, Apr 4, 2011 at 9:49 AM, Stephen Wilde <wstephen80 at gmail.com>wrote:
>
>> I'm trying to do a tone_detect in a bridged session but when the tone is
>> detected, the specified action is not performed.
>>
>> My dialplan is:
>>
>> <action application="set" data="execute_on_media=tone_detect mytone 820 wo
>> +30000 set mytone=true 2" />
>> <action application="bridge" data="${dialstring}" />
>>
>> In the log I see the following rows:
>>
>> 2011-04-04 18:34:24.604908 [DEBUG] mod_dptools.c:1059
>> sofia/external/xxx at yyy SET [execute_on_media]=[tone_detect mytone 820 wo
>> +30000 set mytone=true 2]
>>
>> EXECUTE sofia/external/xxx at yyy tone_detect(mytone 820 wo +30000 set
>> mytone=true 2)
>>
>> 2011-04-04 18:34:24.647971 [NOTICE] mod_dptools.c:1591 Enabling tone
>> detection 'mytone' '820'
>>
>> 2011-04-04 18:34:28.163751 [DEBUG] switch_ivr_async.c:2475 TONE mytone HIT
>> 1/2
>>
>> 2011-04-04 18:34:28.759034 [DEBUG] switch_ivr_async.c:2475 TONE mytone HIT
>> 2/2
>>
>> 2011-04-04 18:34:28.759034 [DEBUG] switch_ivr_async.c:2481 TONE mytone
>> DETECTED
>>
>> but the "set mytone=true" is never executed.
>>
>> Any suggestion?
>>
>
> Where are you looking to see if "mytone" is set to 'true'? Be sure that you
> are looking on the A leg and not the B leg...
> -MC
>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110404/c35a9fdf/attachment-0001.html 


More information about the FreeSWITCH-users mailing list