<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Thanks Michael, I'll take a look and give it a try.<br>
    <br>
    thanks<br>
    Matt<br>
    <br>
    <div class="moz-cite-prefix">On 29/07/2013 16:45, Michael Collins
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAKzWOxWu8LpcVBibmBb6URTb9T1oj12-f11+o7B1Vdm=9sbviA@mail.gmail.com"
      type="cite">
      <div dir="ltr"><br>
        <div class="gmail_extra"><br>
          <br>
          <div class="gmail_quote">On Mon, Jul 29, 2013 at 6:11 AM, Matt
            Broad <span dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:matt@inveroak.com" target="_blank">matt@inveroak.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div text="#000000" bgcolor="#FFFFFF"> Hi Anthony, <br>
                just an update to say that the change you made works
                perfectly!<br>
                <br>
                Just to outline, Using javascript I first set a
                scheduled broadcast for x seconds time (which in this
                case will also end the call).&nbsp; If something occurs
                before this broadcast, the broadcast should be
                canceled.&nbsp; <br>
                <br>
                To do this I used the following javascript:<br>
                <br>
                //set the broadcast to play and then end the call<br>
                session.execute("sched_broadcast", "+60
                playback!normal_clearing::/sounds/callending.mp3 both");<br>
                <br>
                //I now need to get the task ID for this broadcast<br>
                var endCallBroadcastTaskID =
                session.getVariable("last_sched_id");<br>
                <br>
                //now check for something. if something happend then
                cancel the broadcast using the taskid collected
                previously<br>
                if (somethingHappened == true)<br>
                {<br>
                &nbsp;&nbsp;&nbsp;
                session.execute("sched_cancel",endCallBroadcastTaskID);<br>
                }<br>
                <br>
                I will happily add to the wiki to include this
                change/addition, but will need a few pointers in doing
                so.&nbsp; Is there a page on the wiki explaining how to do
                this?<br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>We have an introduction page here: <a
                moz-do-not-send="true"
                href="https://wiki.freeswitch.org/wiki/Documentation_Guidelines">https://wiki.freeswitch.org/wiki/Documentation_Guidelines</a><br>
              <br>
            </div>
            <div>We use Mediawiki which is the same software used by
              Wikipedia. In your case it looks like you just need to
              update an existing page which is easier than trying to
              create a new one from scratch. Be sure to request a wiki
              account from the login screen if you don't already have
              one.&nbsp; <br>
              <br>
            </div>
            <div>-MC<br>
              <br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div text="#000000" bgcolor="#FFFFFF"> <br>
                thanks<span class=""><font color="#888888"><br>
                    Matt</font></span>
                <div>
                  <div class="h5"><br>
                  </div>
                </div>
              </div>
            </blockquote>
            <div><br>
              &nbsp;</div>
          </div>
          -- <br>
          Michael S Collins<br>
          Twitter: @mercutioviz<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://www.ClueCon.com"
            target="_blank">http://www.ClueCon.com</a><br>
          <a moz-do-not-send="true" href="http://www.OSTAG.org"
            target="_blank">http://www.OSTAG.org</a><br>
          <br>
        </div>
      </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>

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>
  </body>
</html>