[Freeswitch-users] Background threads

Michael Collins msc at freeswitch.org
Tue Mar 12 23:59:02 MSK 2013


That would be okay, although you might want to print a little debug info
somewhere, just in case you need to troubleshoot. In any case, if the uuid
isn't there then the uuid_setvar would return an error and no harm would be
done.

-MC

On Tue, Mar 12, 2013 at 1:03 PM, Steven Schoch <
schoch+freeswitch.org at xwin32.com> wrote:

> On Tue, Mar 12, 2013 at 11:14 AM, Steven Ayre <steveayre at gmail.com> wrote:
>
>> Don't forget to find some way to handle the race condition of the bridge
>> ending before the cidlookup has finished, and to add a note on that when
>> putting the info on the wiki.
>
>
> The script ends with these lines:
>
> number = api:executeString("uuid_getvar " .. uuid .. " caller_id_number");
> name = api:executeString("cidlookup " .. number);
> api:executeString("uuid_setvar " .. uuid .. " effective_caller_id_name "
> .. name);
>
> I'm assuming that if the channel is destroyed while in the middle of the
> cidlookup, that the uuid_setvar call will simply fail.  The script will
> exit in either case.  Am I missing something?
>
> --
> Steve
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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
>
>


-- 
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130312/a40dd3dc/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list