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");
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?