[Freeswitch-users] uuid_exists - does it still exist?

Phillip Jones pjintheusa at gmail.com
Thu Sep 10 14:24:22 PDT 2009


Strangely - the uuid_getvar <the_uuid_you_are_checking> uuid workaround does
not work for me.

This is the result of:

apiResult = fsApi.ExecuteString(string.Format("uuid_getvar {0} uuid",
call.Uuid));
Log.WriteLine(LogLevel.Alert, "RESULT: uuid_getvar {0} is: {1}", call.Uuid,
apiResult);

returns a different uuid?????

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

the passed uuid is vaild however:

2009-09-10 17:12:26.953125 [ALERT] switch_cpp.cpp:1130 RESULT: uuid_kill
54dd24be-b0da-684f-acee-38c7530b4c2b is: +OK

Can a call leg have two uuids??


On Thu, Sep 3, 2009 at 5:56 PM, Michael Collins <msc at freeswitch.org> wrote:

>
>
> On Thu, Sep 3, 2009 at 2:23 PM, Benedikt Fraunhofer <
> fraunhofer.lists.freeswitch-001 at traced.net> wrote:
>
>> Hi,
>>
>>
>> > Usage: uuid_exists <uuid>
>> > However when I call via an API call I get:
>> > INVALID COMMAND!
>> > I also don't see it in MOD_COMMAND.C
>>
>> As a workaround or if your are unable to upgrade, you can use
>> "uuid_getvar [some_uuid] thisVariableDoesNotExist"
>> ("thisVariableDoesNotExist" is any variable you can think of, a valid
>> one or literally 'thisVariableDoesNotExist' :)
>> You'll either get an error that this channel does not exist any longer
>> or "undef" for the channel variable.
>> The api will return "+OK" in case the channel still exists, and
>> "ERROR" in case it does not.
>>
>> Beni.
>>
>>
> You could even do this:
> uuid_getvar <the_uuid_you_are_checking> uuid
>
> If it exists then the return will be the uuid. :)
>
> Although I must say I recommend this instead:
> make current
>
> :)
> -MC
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090910/cfa30564/attachment-0002.html 


More information about the FreeSWITCH-users mailing list