In an originated outbound session that is in progressing phase, I do, via esl socket outbound, a "tone_detect".<div><br><div>When I receive the event "DETECTED_TONE" I do the "stop_tone_detect" but sometimes the stop has no effect and I see in the log the warning:</div>
<div><br></div><div>"switch_core_session.c:1955 Cannot execute app 'stop_tone_detect' media required on an outbound channel that does not have media established"</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 "tone_detect" 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 "stop_tone_detect" 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>