<br><br><div class="gmail_quote">On Thu, Sep 3, 2009 at 2:23 PM, Benedikt Fraunhofer <span dir="ltr"><<a href="mailto:fraunhofer.lists.freeswitch-001@traced.net">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 class="im"><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 class="h5"><br></div></div></blockquote><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>