<div dir="ltr">On Tue, Mar 12, 2013 at 11:14 AM, Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">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.</blockquote>
<div><br></div><div style>The script ends with these lines:</div><div style><br></div><div>number = api:executeString("uuid_getvar " .. uuid .. " caller_id_number");</div><div>name = api:executeString("cidlookup " .. number);</div>
<div>api:executeString("uuid_setvar " .. uuid .. " effective_caller_id_name " .. name);</div><div style><br></div><div style>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?</div>
<div style><br></div><div style>-- </div><div style>Steve</div></div></div></div>