<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">So how can I stop the music here?<br>
      I'm a little baffled, as I thought that if I did a uuid_bridge of
      that leg and another, it would just join them together, the music
      would stop automatically and allow talking, but it doesn't seem to
      be working out like that!<br>
      <br>
    </div>
    <blockquote
cite="mid:CAFjCFzkaTVCng9xDQjAZE56_nHyyCo7=y10C3EHZS1NX_xMWpw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default"
          style="font-family:verdana,sans-serif;font-size:small;color:#073763">Yeah
          it looks like you're trying to kill the uuid of the JOB rather
          than the UUID of the channel. The uuid of the job only exists
          as a reference so that when the background music task here
          finishes you can match up the UUID's and know which job has
          completed.&nbsp;</div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div dir="ltr">
            <pre style="word-wrap:break-word;white-space:pre-wrap"><font color="#073763"><font face="verdana, sans-serif">______________________________</font><font size="1" face="verdana, sans-serif">

Callum Guy
Senior Developer

X-on
Framlingham Technology Centre
Station Road, Framlingham,
Suffolk, IP13 9EZ

T       0333 332 0116
E       <a moz-do-not-send="true" href="mailto:callum.guy@x-on.co.uk" target="_blank">callum.guy@x-on.co.uk</a>


<img moz-do-not-send="true" src="http://www.x-ondata.com/images/footerv2.jpg">

</font></font></pre>
            <pre style="word-wrap:break-word;white-space:pre-wrap"><font color="#073763"><font size="1" face="verdana, sans-serif">X-on is a trading name of Storacall Technology Ltd a limited company registered in England and Wales
Registered Office : Avaland House, 110 London Road, Apsley, Hemel Hempstead, Herts, HP3 9SD  
Company Registration No. 2578478 

This email has been sent from X-on.The contents and attachments are confidential to the sender and the intended addressees.If the message
is received by anyone other than the addressee please return the message to the sender by replying to it and then delete the message from 
your computer without copying or disclosing the contents to anyone.Opinions, conclusions and statements of intent in this email are those of
the sender and do not bind X-on unless confirmed by authorised representatives independently of this message.While best endeavours have 
been taken to avoid transmission of viruses, it is the responsibility of the recipient to scan for these.Please note emails sent to and from X-on 
are routinely monitored for record keeping and quality control, to ensure regulatory compliance and prevent unauthorised use of our systems.

</font><font size="1" face="verdana, sans-serif">Please consider the environment before printing this email.</font></font></pre>
          </div>
        </div>
        <br>
        <br>
        <div class="gmail_quote">On 20 March 2014 13:41, Alex Lake <span
            dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:alex@digitalmail.com" target="_blank">alex@digitalmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            Is it possible in Lua to do something like....<br>
            <br>
            <br>
            playback_uuid = GetTheUuidFrom(session:execute("bgapi
            uuid_broadcast<br>
            &lt;a-leg uuid&gt; nicemusic.wav"))<br>
            <br>
            Then do some stuff on the b-leg<br>
            <br>
            Then<br>
            <br>
            session:execute("uuid_kill "..playback_uuid)<br>
            <br>
            When I've tried it, I get....<br>
            <br>
            2014-03-20 12:27:07.474905 [INFO] switch_cpp.cpp:1288
            exec_async<br>
            uuid_broadcast 4b0faa1a-6898-438a-8099-8c09eff7d1b0<br>
            local_stream://moh... &nbsp;(dmpx_r27s1_bleg.lua<br>
            uuid:ddde917b-d9df-44b1-9b33-2b46d639f100 [?])<br>
            2014-03-20 12:27:07.474905 [DEBUG]
            switch_core_media_bug.c:532 Attaching<br>
            BUG to sofia/internal/<a moz-do-not-send="true"
              href="mailto:0001302@004-0095.sb12.dmclub.org">0001302@004-0095.sb12.dmclub.org</a><br>
            2014-03-20 12:27:07.474905 [DEBUG]
            switch_core_session.c:1151 Send<br>
            signal sofia/internal/<a moz-do-not-send="true"
              href="mailto:0001302@004-0095.sb12.dmclub.org">0001302@004-0095.sb12.dmclub.org</a>
            [BREAK]<br>
            2014-03-20 12:27:07.474905 [INFO] switch_cpp.cpp:1288
            ...exec_async<br>
            returning +OK Job-UUID: 88727341-5d44-4631-a69a-368df85ebdf0<br>
            ...<br>
            ...<br>
            2014-03-20 12:27:11.244906 [INFO] switch_cpp.cpp:1288 dmExec
            uuid_kill<br>
            88727341-5d44-4631-a69a-368df85ebdf0<br>
            2014-03-20 12:27:11.244906 [INFO] switch_cpp.cpp:1288
            ...dmExec<br>
            returning -ERR No such channel!<br>
            <br>
            <br>
            I can only presume I've got the wrong end of the stick on
            these<br>
            asynchronous jobs!<br>
            <br>
            (BTW, dmExec is a wrapper around api:executeString)<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>
            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>
          </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>

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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <p class="" avgcert""="" color="#000000" align="left">No virus
        found in this message.<br>
        Checked by AVG - <a moz-do-not-send="true"
          href="http://www.avg.com">www.avg.com</a><br>
        Version: 2014.0.4336 / Virus Database: 3722/7203 - Release Date:
        03/16/14</p>
    </blockquote>
    <br>
  </body>
</html>