I'm trying to do a tone_detect in a bridged session but when the tone is detected, the specified action is not performed.<div><br><div>My dialplan is:</div><div><br></div><div><action application="set" data="execute_on_media=tone_detect mytone 820 wo +30000 set mytone=true 2" /></div>
<div><action application="bridge" data="${dialstring}" /></div><div><br></div><div>In the log I see the following rows:</div><div><br></div><div>2011-04-04 18:34:24.604908 [DEBUG] mod_dptools.c:1059 sofia/external/xxx@yyy SET [execute_on_media]=[tone_detect mytone 820 wo +30000 set mytone=true 2]</div>
<div><br></div><div>EXECUTE sofia/external/xxx@yyy tone_detect(mytone 820 wo +30000 set mytone=true 2)</div><div><br></div><div>2011-04-04 18:34:24.647971 [NOTICE] mod_dptools.c:1591 Enabling tone detection 'mytone' '820'</div>
<div><br></div><div>2011-04-04 18:34:28.163751 [DEBUG] switch_ivr_async.c:2475 TONE mytone HIT 1/2</div><div><br></div><div><div>2011-04-04 18:34:28.759034 [DEBUG] switch_ivr_async.c:2475 TONE mytone HIT 2/2</div><div><br>
</div><div>2011-04-04 18:34:28.759034 [DEBUG] switch_ivr_async.c:2481 TONE mytone DETECTED</div></div><div><br></div><div>but the "set mytone=true" is never executed.</div><div><br></div><div>Any suggestion?</div>
<div><br></div><div>Stephen</div></div>