Yep - I built out a very simple test:<br><br> string uuid = "12345678-1234-4321-123456789012";<br><br> apiResult = fsApi.Execute("originate", string.Format("{{ignore_early_media=false,absolute_codec_string='PCMU'}}[origination_uuid={0},origination_caller_id_number={1}]sofia/gateway/broadvox/{2} &park", uuid, "2129996599", "6093693828"));<br>
<br> Log.WriteLine(LogLevel.Alert, "Originate returns: {0}", apiResult);<br><br> Session.Execute("park", "");<br><br><div class="gmail_quote">relevant log details:<br><br>2009-09-11 11:28:22.750000 [ALERT] switch_cpp.cpp:1130 Originate returns: +OK 12345678-1234-4321-123456789012<br>
<br>uuid_getvar 12345678-1234-4321-123456789012 uuid RETURNS: 3e1ef4ee-8e39-b841-a9a0-6ac997b56275<br><br> uuid _kill 3e1ef4ee-8e39-b841-a9a0-6ac997b56275 -ERR No Such Channel<br><br>However: uuid _kill 12345678-1234-4321-123456789012 RETURNS +OK and drops the call.<br>
<br>I repeated the test and attached the screenshot. Be interested to know where that 3e1ef4ee-8e39-b841-a9a0-6ac997b56275 comes from. <br><br>All academic - just for interest and better understanding.<br><br><br><br><br>
<br><br><br><br><br><br>On Thu, Sep 10, 2009 at 6:01 PM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
As a sanity test, can you bring up a bridged call and run this test directly from the command line and compare the results to what's in your script? <br><font color="#888888">-MC</font><div><div></div><div class="h5">
<br><br><div class="gmail_quote">On Thu, Sep 10, 2009 at 2:24 PM, Phillip Jones <span dir="ltr"><<a href="mailto:pjintheusa@gmail.com" target="_blank">pjintheusa@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Strangely - the uuid_getvar <the_uuid_you_are_checking> uuid workaround does not work for me.<br>
<br>This is the result of:<br><br>apiResult = fsApi.ExecuteString(string.Format("uuid_getvar {0} uuid", call.Uuid));<br>
Log.WriteLine(LogLevel.Alert, "RESULT: uuid_getvar {0} is: {1}", call.Uuid, apiResult);<br><br>returns a different uuid?????<br><br>2009-09-10 17:12:26.953125 [ALERT] switch_cpp.cpp:1130 RESULT: uuid_getvar 54dd24be-b0da-684f-acee-38c7530b4c2b is: 1a0e83db-240c-ac4e-ae45-bf5d5b46f5c3<br>
<br>the passed uuid is vaild however:<br><br>2009-09-10 17:12:26.953125 [ALERT] switch_cpp.cpp:1130 RESULT: uuid_kill 54dd24be-b0da-684f-acee-38c7530b4c2b is: +OK<br><br>Can a call leg have two uuids??<br><br><br><div class="gmail_quote">
<div><div></div><div>
On Thu, Sep 3, 2009 at 5:56 PM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div>
<br><br><div class="gmail_quote"><div>On Thu, Sep 3, 2009 at 2:23 PM, Benedikt Fraunhofer <span dir="ltr"><<a href="mailto:fraunhofer.lists.freeswitch-001@traced.net" target="_blank">fraunhofer.lists.freeswitch-001@traced.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<div><br>
<br>
> Usage: uuid_exists <uuid><br>
> However when I call via an API call I get:<br>
> INVALID COMMAND!<br>
> I also don't see it in MOD_COMMAND.C<br>
<br>
</div>As a workaround or if your are unable to upgrade, you can use<br>
"uuid_getvar [some_uuid] thisVariableDoesNotExist"<br>
("thisVariableDoesNotExist" is any variable you can think of, a valid<br>
one or literally 'thisVariableDoesNotExist' :)<br>
You'll either get an error that this channel does not exist any longer<br>
or "undef" for the channel variable.<br>
The api will return "+OK" in case the channel still exists, and<br>
"ERROR" in case it does not.<br>
<br>
Beni.<br>
<div><div></div><div><br></div></div></blockquote></div><div><br>You could even do this:<br>uuid_getvar <the_uuid_you_are_checking> uuid<br><br>If it exists then the return will be the uuid. :) <br><br>Although I must say I recommend this instead:<br>
make current<br><br>:)<br>-MC<br></div></div><br>
<br></div></div>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
<br></blockquote></div><br>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
<br></blockquote></div><br>
</div></div><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>
<br></blockquote></div><br>