In an originated outbound session that is in progressing phase, I do, via esl socket outbound, a &quot;tone_detect&quot;.<div><br><div>When I receive the event &quot;DETECTED_TONE&quot; I do the &quot;stop_tone_detect&quot; but sometimes the stop has no effect and I see in the log the warning:</div>
<div><br></div><div>&quot;switch_core_session.c:1955 Cannot execute app &#39;stop_tone_detect&#39; media required on an outbound channel that does not have media established&quot;</div><div><br></div><div>But the media is present (the tone is correctly detected!).</div>
<div><br></div><div>The event I receive on this channel are (in sequence)</div><div><br></div><div>CHANNEL_UUID</div><div>CHANNEL_OUTGOING</div><div>CHANNEL_ORIGINATE</div><div>CHANNEL_STATE - CS_INIT</div><div>CHANNEL_STATE - CS_ROUTING</div>
<div>CHANNEL_STATE - CS_CONSUME_MEDIA</div><div>CHANNEL_PROGRESS</div><div>CHANNEL_PROGRESS_MEDIA</div><div>CHANNEL_STATE - CS_EXECUTE</div><div>CHANNEL_EXECUTE</div><div>CHANNEL_PARK</div><div><br></div><div>then I do the &quot;tone_detect&quot; and I receive:</div>
<div><br></div><div>CHANNEL_EXECUTE</div><div>MEDIA_BUG_START</div><div>CHANNEL_EXECUTE_COMPLETE</div><div>DETECTED_TONE</div><div><br></div><div>so I do the &quot;stop_tone_detect&quot; that fails in the log</div><div><br>
</div><div>Please, can anyone address me to solve this issue?</div><div><br></div><div><br></div><div><br></div></div>