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">
On Thu, Sep 3, 2009 at 5:56 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;">
<br><br><div class="gmail_quote"><div class="im">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>_______________________________________________<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>