<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. </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 href="mailto:callum.guy@x-on.co.uk" target="_blank">callum.guy@x-on.co.uk</a>
<img src="http://www.x-ondata.com/images/footerv2.jpg">
<br></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"><<a href="mailto:alex@digitalmail.com" target="_blank">alex@digitalmail.com</a>></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>
<a-leg uuid> 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... (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 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 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 href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>