<br><br><div class="gmail_quote">On Mon, Jul 16, 2012 at 1:26 PM, Henry Huang <span dir="ltr">&lt;<a href="mailto:red.rain.seven@gmail.com" target="_blank">red.rain.seven@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<font color="#333333"><font><font face="verdana,sans-serif">Michael, <br><br>I have also been looking into AVMD. The point being that I want to play some pre-recorded message once the phone is answered and start AVMD at the same time, and if the &#39;beep&#39; is detected later during the call(say 10 sec. later). I want to be able to stop the original Playback and start a new Playback. Is there a way to do that? <br>
</font></font></font></blockquote><div>Yes, but &quot;some assembly required&quot; as the saying goes. AVMD only throws events, so whatever solution you are using must be able to consume and react to those events. The OP is using Lua which definitely allows you to consume the events. There&#39;s even a really simple example on the wiki about using the setInputCallback function to look for &quot;events&quot; and then do something once the event comes in. It&#39;s a really sparse example but it demonstrates how to catch an event. From there you&#39;d need to put in your commands. I&#39;m assuming you&#39;ll need a break app or uuid_break API to stop the current playback and then you&#39;ll need to queue up another playback. It&#39;s also good to turn off avmd at this point as well. I&#39;m just throwing this out there off the top of my head, so I highly recommend some hands on tinkering. <br>
<br>Please let us know what you end up doing. :)<br><br>-MC <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font color="#333333"><font><font face="verdana,sans-serif">
<br>Henry<br></font></font></font><br><div class="gmail_quote">On Mon, Jul 16, 2012 at 11:32 AM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ian,<br><br>Just curious - at what point during the call are you currently launching AVMD? In any case, this sounds like a perfect job for &quot;execute_on_answer&quot;:<br>

<a href="http://wiki.freeswitch.org/wiki/Channel_Variables#execute_on_answer" target="_blank">http://wiki.freeswitch.org/wiki/Channel_Variables#execute_on_answer</a><br>
<br>Just be nice and don&#39;t abuse your new found powers! :)<span><font color="#888888"><br><br>-MC<br></font></span><br>P.S. - Welcome to the FreeSWITCH community.<div><div><br>
<br></div></div></blockquote></div><br></blockquote></div><br>