On Tue, Mar 12, 2013 at 11:14 AM, Steven Ayre <steveayre@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