[Freeswitch-users] Background threads

Steven Schoch schoch+freeswitch.org at xwin32.com
Tue Mar 12 23:03:57 MSK 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130312/381d29e6/attachment.html 


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