<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">I've been back and forth on getting the
      book (time to read and blah blah), but you just sold me on it.&nbsp; (:<br>
      <br>
      <pre class="moz-signature" cols="72">'We who cut mere stones must always be envisioning cathedrals.'
Quarry Worker's Creed</pre>
      On 7/16/2012 3:58 PM, Ian Bonham wrote:<br>
    </div>
    <blockquote
cite="mid:CAFz4Gk8kap_tW30cBrnU8sh-HJxi1=+Ut5Oc1DWxsKOxjrHn9Q@mail.gmail.com"
      type="cite">Michael is totally right there! Hands on Tinkering is
      what I've been doing all afternoon and picked up so much. I also
      hit Amazon (Other book shops are available!) and got myself the
      FreeSwitch 1.0.6 book by our Mr Collins himself, Mr Minessale and
      Mr Schriber. A fine read guys, and a good start when you're really
      wanting to get stuck in!&nbsp;
      <div>
        I was thinking, oh great LUA, something else new to learn but
        the book has really got me going in the right direction,
        thanks!&nbsp;</div>
      <div><br>
      </div>
      <div>Bon</div>
      <div><br>
        <br>
        <div class="gmail_quote">On 16 July 2012 22:38, Michael Collins
          <span dir="ltr">&lt;<a moz-do-not-send="true"
              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"><br>
            <br>
            <div class="gmail_quote">
              <div class="im">On Mon, Jul 16, 2012 at 1:26 PM, Henry
                Huang <span dir="ltr">&lt;<a moz-do-not-send="true"
                    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 'beep' 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>
              <div>Yes, but "some assembly required" 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's even a really simple example
                on the wiki about using the setInputCallback function to
                look for "events" and then do something once the event
                comes in. It's a really sparse example but it
                demonstrates how to catch an event. From there you'd
                need to put in your commands. I'm assuming you'll need a
                break app or uuid_break API to stop the current playback
                and then you'll need to queue up another playback. It's
                also good to turn off avmd at this point as well. I'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. :)<span
                  class="HOEnZb"><font color="#888888"><br>
                    <br>
                    -MC <br>
                  </font></span></div>
              <div class="im">
                <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
                        moz-do-not-send="true"
                        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 "execute_on_answer":<br>
                      <a moz-do-not-send="true"
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'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>
            </div>
            <br>
            <br>
_________________________________________________________________________<br>
            Professional FreeSWITCH Consulting Services:<br>
            <a moz-do-not-send="true"
              href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
            <br>
            FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
            <a moz-do-not-send="true" href="http://www.cudatel.com"
              target="_blank">http://www.cudatel.com</a><br>
            <br>
            Official FreeSWITCH Sites<br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              target="_blank">http://www.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://wiki.freeswitch.org"
              target="_blank">http://wiki.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://www.cluecon.com"
              target="_blank">http://www.cluecon.com</a><br>
            <br>
            Join Us At ClueCon - Aug 7-9, 2012<br>
            <br>
            FreeSWITCH-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
            UNSUBSCRIBE:<a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              target="_blank">http://www.freeswitch.org</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

Join Us At ClueCon - Aug 7-9, 2012

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
    <br>
  </body>
</html>